delegate
Skill2 starsChanged 2 months agoMITView on GitHub
把可独立验收的任务交给同事 Agent 在后台并行完成,你只收结果并把关。遇到这些情况时主动使用,不必等用户开口:要读很多文件但只需结论;改动前想要第二意见或独立审查;有两个以上互不依赖、能用命令验收的子任务;需要有人看截图或设计图给意见。同事是 Pi 或 Antigravity CLI(agy,登记为 agy/<模型> 的别名走它),按用途 scout(只读侦察)、review(只读严密审查)、write(写代码带验收)派发;也可用 models 别名与 classModels 指定模型、默认 thinking 与价位 cost;fit 适配卡记录四类任务(build/hard/review/design)的质量与价位,新模型按同题重评。脚本代跑验收命令,只给一行结论与下一步,过程不进主控上下文;容量满会排队,重检查也限流。Use to delegate or parallelize work proactively to Pi or agy (Antigravity CLI) colleagues, and to get a second opinion, code review or image review from another model, judged by results.
97 other projects use a version of this.
Adopted by
Most recently taken up by
- zaherg/chorustheir own version, first seen Nov 29, 2026
- divanc/skillstheir own version, first seen Nov 29, 2026
- awtotty/claude-code-setuptheir own version, first seen Nov 29, 2026
- prograsec/brain-and-handstheir own version, first seen Nov 29, 2026
- andreilungeanu/agy-delegate-mcptheir own version, first seen Nov 29, 2026
- mmgordon82/agent-skillstheir own version, first seen Nov 29, 2026
Used with
Projects with it also use state, ask and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkillstate
Store and query a Microsoft Managed App's built-in state and file attachments with `ms project state` CLI schema commands and generated TypeScript clients. First, with the user signed in to the CLI, run `ms feature status --name state --json`; if `feature.enabled` is not `true`, recommend an alternative connector or data source.
Also in 3 projects that use this
dubwoahSkillask
Answer questions about the codebase without generating or modifying any code. Use when the user wants to understand how something works, find where something is defined, or explore the project structure. Invoked with /ask.
Also in 7 projects that use this
jaaxkSkillafk
Toggle AFK (Away From Keyboard) mode. When enabled, a PostToolUse hook sends a summary of every tool (that involves writing to files or changing settings) Claude runs to a dedicated Slack thread so the user can monitor remotely. Toggle on with /afk, toggle off with /afk again.
Also in 3 projects that use this
kv0906Skillpreview
Render vault notes as styled HTML and open in browser. Turn markdown docs, decisions, progress reports into readable previews. Use for "/preview docs/project-a/checkout-flow.md", "/preview progress all", "/preview decide auth-approach", or when user wants to see a doc before sharing.
Also in 3 projects that use this
GitHubSkillprd
Generate high-quality Product Requirements Documents (PRDs) for software systems and AI-powered features. Includes executive summaries, user stories, technical specifications, and risk analysis.
Also in 5 projects that use this
nicolasestremSkilldocument
Create focused documentation for specific components or features
Also in 3 projects that use this
Other versions97 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 97
- prassanna-ravishankar/repowire★ 280same name
- wlsdks/ontology-atlas★ 173same name
- HurricaHjz/second-yourself★ 157same name
- HurricaHjz/SecondSelf★ 157same name
- pvjbuilds/delegate-router★ 46same name
- spmtitsolution/OpenBA-Kit★ 38same name
- PyModel/claude-architect★ 31same name
- peterpme/skills★ 29same name
- jisuzzzz/haechi★ 17same name
- mhlaghari/stuntman★ 16same name
87 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository7 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-handoffSkill
- agent-interface-designSkill
- iteration-speedSkill
- openai-image-genSkill
- repo-governanceSkill
- scroll-gestureSkill
The file
Files
Delegate(按结果委派)
你是主控:把边界清楚的任务交给同事(Pi 或 agy),自己继续推进,回来看结果、决定是否采纳。同事不能再委派。
用法
D=<本技能目录>/bin/delegate
# 1. 只读侦察 / 审查(看图加 --image shot.png)
$D start --read-only "说明目标与需要核实的结论"
# 2. 改代码(隔离 worktree + 验收命令)
$D start --worktree --accept "测试命令" "说明目标、改动范围与已知事实"
# 3. 等结果(Claude Code 用 Bash 后台;agy 用 run_command WaitMsBeforeAsync=500, IsDaemon=false;
# Codex/pi 无后台唤醒,前台分段 `$D wait --max 5m`,到期后再挂;勿手写 while/sleep 轮询)
$D wait
# 4. 追问 / 回答提问 / 返工(运行中直接追加,已结束自动续接)
$D reply <run> "决定或修改意见"
# 5. 看改动并一站式合入提交(合入 → 验收 → 按全链文件集带 trailer 提交 → 自动清 worktree)
$D card <run> # 完整 diff 用 $D diff <run>
$D land <run> -m "提交说明" # 后续命令用 && 不要用 ;规则
- 默认档位、思考深度、只读探路、基线同步与合入后清理都已自动选好,常规任务不要传额外选项;多行说明用
--prompt-file -加 heredoc。设计稿任务用--class design(或任务路径命中.delegate.jsondesignPaths自动推断),默认high思考并优先走用户配置classModels.design(定稿后产品实现仍走写入档默认模型)。 - 同事看不到你的上下文:写清目标、范围、验收命令和已知事实;看到
提问状态用reply回答(不算返工)。 land/apply最后一行是结论,FAILED(未合入)时按提示处理,不要在旧代码上跑测试;不要给land/apply套短timeout。
快照对象钉在
refs/delegate/<run-id>/*(clean时移除),普通git gc安全;切勿执行git prune或git gc --prune=now|all(见gc.log删该文件即可)。
按需参考
- 命令全表、选项与示例:命令与选项、示例、收结果与状态、目录与产物(全部选项另见
$D --help) - 档位、模型适配卡与配置:模型路由与适配卡、配置、运行与远端、agy 账号与用量
- 审查、合入、工作表与清理:审查卡、预合并与
Fixes-Run漏网记账、审查要点、并行合入、合入员与 Radar、工作表、清理与回收、磁盘健康、容量与工期、续接与长跑、长时间推进
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

