Agent Skillschrisbanes/skills › implement-with-subagents

implement-with-subagents

GitHub

该技能用于通过独立子代理执行或审查任务编排。支持审查模式评估队列原子性与依赖,以及实施模式利用指定子代理按序处理工作项、提交并接受变更,确保所有权分离与修复闭环。

skills/implement-with-subagents/SKILL.md chrisbanes/skills

触发场景

需要执行或审查基于计划的任务编排时 需要评估多步骤任务的队列原子性、依赖顺序及子代理分配策略时

安装

npx skills add chrisbanes/skills --skill implement-with-subagents -g -y
更多选项

不安装直接使用

npx skills use chrisbanes/skills@implement-with-subagents

指定 Agent (Claude Code)

npx skills add chrisbanes/skills --skill implement-with-subagents -a claude-code -g -y

安装 repo 全部 skill

npx skills add chrisbanes/skills --all -g -y

预览 repo 内 skill

npx skills add chrisbanes/skills --list

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.",
    "compatibility": "Review mode has no external skill dependency. Implementation mode requires Matt Pocock's separately installed `implement` workflow; its current contract also invokes `tdd` and `code-review`.",
    "disable-model-invocation": true
}

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.

Check The Prerequisite

Review mode has no external skill dependency. Implementation mode requires the implement skill from Matt Pocock's skill set, which is not bundled with this repository. Install it with npx skills add mattpocock/skills, selecting implement, tdd, and code-review as required by the current upstream contract. Never install it implicitly.

Select the mode

  • Use review only when the user asks to assess supplied orchestration without running it.
  • Use implement when the user asks to execute the supplied tickets or plan tasks.

Review procedure

  1. 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.
  2. 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.
  3. 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

  1. 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.
  2. Resolve and read the installed implement skill. Treat it as a required dependency. If it is unavailable, stop before making changes. Report that it comes from mattpocock/skills, provide npx skills add mattpocock/skills, and state that the user must select implement, tdd, and code-review. Never install them implicitly or reproduce the procedure from memory.
  3. 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.
  4. Process one item at a time. Record HEAD and the pre-existing worktree state before each item; accept the preceding item before starting the next.
  5. Select one implementation-capable subagent using the runtime mapping below. Verify that it can edit, run validation, create the task-scoped commit, and continue the same owner session for repairs. Honour applicable user and repository agent selections and configured models. If the required capability is unavailable, stop and report the missing capability; do not install an extension or fall back to controller implementation. If capacity is only temporarily unavailable, wait. Spawn one owner and retain its session handle. Give it explicit ownership of the work item and affected files, tell it that other agents may be editing the codebase, and require it to preserve and accommodate unrelated changes. Do not implement any part of the item in the controller.
  6. 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 implement skill; and
    • an instruction to return the commit, the evidence required by the installed implement skill's current finish contract, and any unresolved blocker.
  7. 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.
  8. Independently accept the item before advancing; an owner's report is not acceptance evidence. Verify:
    • verify HEAD advanced by at least one task-scoped commit;
    • inspect the complete commit range and diff from the recorded HEAD to the current HEAD for the work item's acceptance criteria and scope;
    • inspect the returned command, complete result, tested revision, and relevant input and environment identity;
    • reuse a requested check only when its complete evidence shows success, the relevant environment remains unchanged, and neither the user nor repository requires a fresh independent run. Also require either the tested revision to equal current HEAD, or current HEAD to be a descendant of the tested revision whose independently inspected diff leaves the check's relevant inputs unchanged;
    • repeat each affected check when its evidence is missing, failed, tied to an unexplained older revision, affected by a changed relevant input, or subject to an explicit freshness or independent-run requirement;
    • confirm the returned evidence satisfies the installed implement skill's current finish contract; and
    • verify the task-owned diff is empty relative to the recorded pre-existing state.
  9. After every repair, repeat the independent commit and diff inspection, then reassess the evidence under step 8. Reuse only checks whose relevant inputs and environment remain unchanged across the inspected descendant diff; repeat affected checks. An unexplained older revision is stale evidence. 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.

Runtime mapping

Default implementation agents by runtime; apply the capability checks in step 5.

Runtime Implementation owner
Codex worker
Claude Code general-purpose
OpenCode general subagent; build is a primary agent
Pi No built-in subagent role. Inspect the installed delegation extension or package and its agent definitions. The upstream example extension supplies a sample worker, not a core role; verify same-session continuation before using it.
Other runtimes An exposed implementation-capable subagent that satisfies step 5

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.9.21 当前 2026-09-22 08:34

    实现子代理选择的跨运行时可移植性,适配 Codex、Claude Code 和 OpenCode 等环境的能力映射,并更新相关文档与测试用例。

  • 2026.9.2 2026-09-09 02:59

    明确implement为外部工作流并使其要求可操作;记录所有外部提供者;为implement-with-subagents添加缺失提供者的校准用例

  • 2026.9.2 2026-09-03 04:30

    将高级工作流技能标记为显式仅用,更新UI元数据和SKILL.md前置信息,调整自动评估排除规则。

  • 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

依赖关系

  • suggested mattpocock/skills

同 Skill 集合

skills/android-benchmark-comparison/SKILL.md
skills/compose-animations/SKILL.md
skills/compose-component-design/SKILL.md
skills/compose-focus-navigation/SKILL.md
skills/compose-modifier-and-layout-style/SKILL.md
skills/compose-performance/SKILL.md
skills/compose-recomposition-performance/SKILL.md
skills/compose-side-effects/SKILL.md
skills/compose-slot-api-pattern/SKILL.md
skills/compose-stability-diagnostics/SKILL.md
skills/compose-state-and-effects/SKILL.md
skills/compose-state-authoring/SKILL.md
skills/compose-state-deferred-reads/SKILL.md
skills/compose-state-hoisting/SKILL.md
skills/compose-state-holder-ui-split/SKILL.md
skills/compose-ui-testing-patterns/SKILL.md
skills/gradle-run/SKILL.md
skills/grounded-writing/SKILL.md
skills/implement-issue/SKILL.md
skills/kotlin-api-design/SKILL.md
skills/kotlin-concurrency-and-flow/SKILL.md
skills/kotlin-control-flow/SKILL.md
skills/kotlin-coroutines-structured-concurrency/SKILL.md
skills/kotlin-flow-state-event-modeling/SKILL.md
skills/kotlin-functions/SKILL.md
skills/kotlin-multiplatform-expect-actual/SKILL.md
skills/kotlin-types-value-class/SKILL.md
skills/release-kotlin-library/SKILL.md
skills/run-github-project/SKILL.md
skills/shepherd/SKILL.md
skills/to-plan/SKILL.md
skills/using-chrisbanes-skills/SKILL.md

元信息

文件数
0
版本
2026.9.21
Hash
c092e018
收录时间
2026-08-19 19:31

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-22 13:12
浙ICP备14020137号-1