agentleFS
zji996zji996/AIA-skills/skills/delegate/SKILL.md

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

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.
  • MicrosoftSkill

    state

    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

  • dubwoahSkill

    ask

    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

  • jaaxkSkill

    afk

    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

  • kv0906Skill

    preview

    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

  • GitHubSkill

    prd

    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

  • nicolasestremSkill

    document

    Create focused documentation for specific components or features

    Also in 3 projects that use this

The file

Files
SKILL.md

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 "提交说明"                    # 后续命令用 && 不要用 ;

规则

  1. 默认档位、思考深度、只读探路、基线同步与合入后清理都已自动选好,常规任务不要传额外选项;多行说明用 --prompt-file - 加 heredoc。设计稿任务用 --class design(或任务路径命中 .delegate.json designPaths 自动推断),默认 high 思考并优先走用户配置 classModels.design(定稿后产品实现仍走写入档默认模型)。
  2. 同事看不到你的上下文:写清目标、范围、验收命令和已知事实;看到 提问 状态用 reply 回答(不算返工)。
  3. 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、工作表、清理与回收、磁盘健康、容量与工期、续接与长跑、长时间推进

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.