一键导入
subagent-file-handoff
Use when preparing to dispatch or chain subagents whose detailed intermediate output should be read by another subagent
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when preparing to dispatch or chain subagents whose detailed intermediate output should be read by another subagent
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when testing, validating, pressure-testing, or iterating an agent skill by having subagents use it
Use when creating, editing, reviewing, or testing agent skills, skill repositories, SKILL.md files, bootstrap skills, or skill discovery rules
Use when adding backend feature modules, creating tRPC routers, writing Drizzle adapters, defining domain ports or services, or diagnosing backend layer-boundary issues
Use when cleaning, deleting, pruning, or removing files from the repository root `.handoff/` directory
Use when adding a new React TypeScript frontend app to an existing pnpm monorepo or wiring a new app to package/ui
Use when creating a new TypeScript monorepo, initializing a fresh workspace, or bootstrapping apps and packages from an empty directory
| name | subagent-file-handoff |
| description | Use when preparing to dispatch or chain subagents whose detailed intermediate output should be read by another subagent |
Use this skill before creating, dispatching, or chaining subagents when one subagent will produce detailed intermediate output that another subagent should read, and the main agent does not need to inspect or summarize those details.
Do not use it when the main agent must review the details before deciding the next step, when the intermediate output is short enough to pass directly, or when the result is the final answer to the user.
Decide on file handoff before dispatching the producer subagent. All handoff files must live under the repository root .handoff/ directory, and the producer subagent must be told the exact path, required content, and response limit before it starts work.
The producer subagent still replies to the main agent, but the reply must be extremely brief: no more than 100 characters, usually status plus the .handoff/ path.
The main agent must pass the handoff path to the consumer subagent, not the handoff file contents, copied excerpts, or a summary of the producer's long output. If a producer already returned a long result before handoff was planned, do not use that long result as consumer input; ask the producer to write or rewrite the details into .handoff/, then pass only the path forward.
.gitignore ignores .handoff/; add .handoff/ if it is missing..handoff/ using task, producer role, and round when helpful, such as .handoff/monorepo-audit-reviewer-round-1.md..handoff/ file path to write..handoff/ file contains the details..handoff/ path and instruct it to read that file as its source of detailed input.A useful handoff file should include only what the next subagent needs to continue independently:
.handoff/ directory..handoff/ is ignored by Git..handoff/ file..handoff/output.md when several subagents or rounds are involved.Before finishing work that used this skill, confirm:
.handoff/..handoff/ was ignored by Git or added to .gitignore.pressure-scenario.md for behavior validation.