worker-contract

仓库创建 2026年4月30日最近提交 21 天前SkillHot 收录 20 天前
▸ 精选理由

防止并发代理相互覆盖或删除文件,保障多代理协作安全可靠。

这个 Skill 做什么

为并行运行的工作代理定义角色、文件所有权白名单与不得回退他人改动的契约。

为并行运行的工作代理设定标准契约,规定角色分工、文件所有权白名单、不得回退他人改动的规则和结构化上报格式。用在启动 2 个以上同时触及同一代码库的 Codex 会话或 Claude 子代理时,防止并发代理互删互覆造成严重事故。把协作规则注入每个 agent 的 prompt,能大幅降低冲突、回滚和修复成本。

▸ 展开 SKILL.md 英文原文

Standard prompt contract for parallel worker agents sharing a codebase — role, file-ownership allowlist, do-not-revert-others rule, and structured findings format. Use when spawning 2+ concurrent implementation agents (Codex sessions, Claude subagents) that touch the same repository, or when the user asks for 並列worker / worker を分けて / サブエージェント最大展開.

Skill 开发管理并行代理文件所有权协作规则通用
0
Stars
0
Forks
16
仓库内 Skill
+0
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/Eotel/skills/main/worker-contract/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/Eotel/skills/main/worker-contract/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Worker Contract

The standard contract for any concurrently-running worker that edits a shared
codebase. Retyped near-verbatim dozens of times before codification; its absence
produced the worst incidents on record (concurrent agents deleting each other's
files — three severity-3 corrections in one session).

## The contract (inject into every worker prompt)

```
You are <Worker NAME> working on <one-line role>.

OWNERSHIP — you may create/edit ONLY these files:
- <explicit path list — derive programmatically: git status --porcelain + prefix
  filter, or the topic's planned file set. Hand-enumeration misses entries.>

YOU ARE NOT ALONE IN THE CODEBASE:
- Other agents are editing other file
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有