implement-with-subagents
GitHub用于通过独立子代理协调和执行任务计划,确保编排与实现分离。支持审查队列原子性、依赖顺序及修复责任,并严格按序处理工作项,保障变更隔离与任务级提交验证。
触发场景
安装
npx skills add chrisbanes/skills --skill implement-with-subagents -g -y
SKILL.md
Frontmatter
{
"name": "implement-with-subagents",
"description": "Use when implementing or reviewing the orchestration of supplied tickets or plan tasks through separate implementation subagents, including queue atomicity, task-scoped commit acceptance, and repair ownership, with an installed implement skill."
}
Implement with subagents
Keep orchestration and implementation ownership separate: the controller schedules, and one implementation subagent owns each independent work item through completion. Keep changes that cannot validate apart in one item, accept its task-scoped commit before advancing, and return failed acceptance evidence to that same owner rather than repairing it in the controller or reassigning it.
Select the mode
- Use
reviewonly when the user asks to assess supplied orchestration without running it. - Use
implementwhen the user asks to execute the supplied tickets or plan tasks.
Review procedure
- Inspect only the repository and supplied orchestration state that the user permits. Do not start a subagent, edit files, create a commit, or contact a remote service.
- Assess queue atomicity, dependency order, implementation ownership, task-scoped acceptance, repair ownership, and controller mutation boundaries. Treat an already accepted item as complete rather than assigning it again.
- Report the next orchestration action, or that no action is needed, with the evidence and any unresolved acceptance gap. Stop before the implementation procedure.
Implementation procedure
- Read the repository instructions and inspect the current branch and worktree. Preserve unrelated changes. Stop before delegation when a task-scoped commit cannot be produced safely from the current state.
- Resolve and read the installed
implementskill. Treat it as a required dependency. If it is unavailable, stop before making changes and report the missing dependency; never reproduce its procedure from memory. - Build a dependency-ordered queue. Keep an unsplit request and its checklist in one work item; group supplied items only when they cannot validate in separate behavior-preserving commits.
- Process one item at a time. Record
HEADand the pre-existing worktree state before each item; accept the preceding item before starting the next. - Select the portable Solver role and map it to the runtime's implementation-capable subagent type. Record the portable role and actual runtime selection when the environment exposes it. Spawn one owner. Do not implement any part of the item in the controller. If an implementation slot is temporarily unavailable, wait for capacity. If subagents cannot be started, stop and report the blocker rather than falling back to controller implementation.
- Give that owner a decision-complete packet containing:
- the exact ticket or plan task and its acceptance criteria;
- the relevant specification and repository instructions;
- exclusive ownership of that work item on the current branch;
- the pre-existing worktree state that must be preserved;
- an instruction to invoke the installed
implementskill; and - an instruction to return the commit, the evidence required by the installed
implementskill's current finish contract, and any unresolved blocker.
- Wait for that owner before starting another. Do not split its implementation across agents. If the result is incomplete, dirty, uncommitted, or fails a required check, return the evidence to the same owner. Stop on a material blocker it cannot resolve within the supplied contract.
- Independently accept the item before advancing; an owner's report is not
acceptance evidence. Verify:
- verify
HEADadvanced by at least one task-scoped commit; - inspect the complete commit range and diff from the recorded
HEADto the currentHEADfor the work item's acceptance criteria and scope; - rerun the verification requested by the user and repository for this item;
- confirm the returned evidence satisfies the installed
implementskill's current finish contract; and - verify the task-owned diff is empty relative to the recorded pre-existing state.
- verify
- Repeat step 8 after every repair. After the last accepted item, run any final user- or repository-required verification. If a later action changes files, return them to their owner for validation and commit.
Ownership boundaries
- Keep remote mutations with the controller unless the user explicitly grants a different owner and repository instructions permit it.
- Reuse the owning subagent for review repairs and follow-up checks; do not pay a second context-transfer cost for the same item.
- Use read-only helpers only when the owner needs genuinely independent discovery. They do not edit, commit, or replace the implementation owner.
- Never absorb another item's edits or pre-existing user changes into the current owner's commit.
Finish gate
In review, finish only after reporting the non-mutating assessment, its
evidence, and any acceptance gap without starting implementation. In
implement, finish only when every queued item has a task-scoped, reviewed,
verified commit, the final worktree matches the recorded pre-existing state,
and no owner-reported blocker remains. Report the item-to-commit mapping and the
final validation result. Otherwise finish blocked and name the first incomplete
gate.
版本历史
-
2026.8.27
当前 2026-08-28 05:51
恢复技能评估行为,增加遥测数据捕获(如令牌、工具调用、耗时),对比基线与自动效率,并同步结果表至根目录和 README。
-
2026.8.24
2026-08-27 17:15
减少技能指令的冗余度
- 2026.8.16 2026-08-19 19:31


