Agent Skills › chrisbanes/skills › implement-with-subagents

implement-with-subagents

GitHub

协调子代理执行任务,支持审查编排或实施工作。通过隔离工作树并行处理独立任务,按依赖顺序集成代码,确保所有权分离与验证闭环。

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

Trigger Scenarios

需要协调多个子代理实现任务时 审查任务编排与调度逻辑时

Install

npx skills add chrisbanes/skills --skill implement-with-subagents -g -y
More Options

Use without installing

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 supplied tickets or plan tasks through worker-owned bounded implementation and lead integration, or when reviewing that orchestration.",
    "compatibility": "Review mode has no external skill dependency. Implementation mode uses Matt Pocock's separately installed `tdd` for behavior changes and one fresh independent read-only reviewer for the final joined branch.",
    "disable-model-invocation": true
}

Implement with subagents

Use this workflow whenever a delivery lead coordinates settled implementation tasks, including one task and sequential work. Assign one worker per supplied work item; do not split a single task into artificial pieces. Reuse a bounded pool of worker checkouts. The lead validates the task graph, dispatches the independent ready frontier with disjoint write sets by default, accepts each task once before integration, and integrates accepted commits in dependency order. After an ordinary integration, rerun affected checks and release dependents without a second lead sign-off. Retire eligible surplus checkouts, preserve task refs, and account for checkout dispositions at completion or interruption. Keep the lead out of task-owned code and return implementation repairs to the original worker.

Select the mode

  • Use review only to assess supplied orchestration without running it; it has no external dependency.
  • Use implement only to execute supplied tickets or plan tasks. This mode does not invoke the separate /implement skill.

Review procedure

  1. Inspect only permitted repository and orchestration state. Do not start an agent, edit, commit, change branches, perform worktree lifecycle operations, or contact a remote service.
  2. Assess the task graph, safe concurrency, implementation ownership, task-scoped commits, owner self-review, focused validation, and controller acceptance before integration. An owner's report alone does not satisfy task acceptance. Separate worktrees do not make shared-file edits or work depending on unintegrated code independent. Treat supplied readiness, independence and capacity as authoritative: dispatch the whole ready frontier concurrently. A prerequisite the state does not show missing, including test seams, tdd and reviewer capability, is an execution-time check, not a dispatch hold. Check reuse-first allocation, distinct slots for active writers, and existing-checkout access for read-only helpers.
  3. Release a dependent only after each prerequisite's task commit is accepted, integrated without conflicts, and its affected checks rerun and pass at that exact integrated head; a passing task branch is not enough. Do not require a second discretionary lead acceptance after an ordinary merge; inspect the joined diff when cross-file interactions, changed shared interfaces, or merge resolutions can change meaning. Reuse a passing check only when inspection shows its inputs and environment unchanged at the integrated head. An accepted item is complete, not assignable again.
  4. Report the next action, evidence, and any acceptance gap. Stop before implementation. Check release eligibility, safe retirement, and checkout dispositions without mutating them. For an invalid dependency graph or unsafe overlap, hold dispatch and return the specific defects to the plan owner; do not invent ordering or remove tasks or dependencies. Name any affected check that must be rerun at the integrated head, even when another blocker also prevents dispatch.

Implementation mode

Prerequisites

Identify the behavior-changing items and their user-approved test seams before delegation. Their owners use the separately installed tdd skill directly. If a behavior item has no approved seam, obtain agreement before dispatch; if tdd is unavailable, stop before dispatching that item. Documentation and other items without a meaningful test seam use focused validation instead. Never install a dependency implicitly.

Resolve one independent read-only reviewer before delegation. Use a fresh agent that makes no writes and does not inherit the implementation conversation, with a self-contained brief: approved source, plan, repository standards, fixed base, and exact candidate head. Require findings with evidence and a ship, fix-first, or rethink verdict against both requirements and standards, with the coverage account under Behavioral review and repair. Apply that reference during implementation for related boundary repairs and browser failure diagnostics; PR feedback remains outside this workflow. No external review skill or tracker setup is required. If independent review cannot run, report the missing capability; never waive final review. Add reviewers only for distinct risks or substantial scope that justify separate assignments.

Before delegation, read the implementation-mode procedure completely. It owns preflight, dispatch, owner packets, task acceptance, integration, repairs, and final validation. Stop when a dependency, task-scoped commit, or capability gate cannot be satisfied; never implement an item in the controller.

Finish gate

In review, finish only with the non-mutating assessment, evidence, and any acceptance gap. In implement, finish only when every queued item has a task-scoped, self-reviewed commit accepted before integration, all affected checks and the full required suite pass at the final integrated head, the joined review is current, and the integration checkout is clean. Preserve any unrelated user work from the starting checkout. Account for every run-created worker checkout as retired with verified readback or retained with a reason, and preserve task branch refs. Eligible retirement failure or missing cleanup capability leaves the workflow incomplete even when code verification passed. Report the item-to-commit mapping, exact integrated head, final validation and review evidence, checkout dispositions, and any blocker; otherwise stop at the first incomplete gate. PR and tracker delivery are outside this skill.

Version History

  • 2026.10.18 Current 2026-10-19 03:05

    修复Claude Code环境下的静默失败,统一交接简报与返回格式,规范模型选择及嵌套代理限制。

  • 2026.9.25 2026-09-27 20:23

    增强对任务ID和依赖边的显式支持,优化并发调度逻辑,细化依赖感知下的工作树隔离与集成验证流程。

  • 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

Same Skill Collection

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/deliver-spec/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

Metadata

Files
0
Version
2026.10.18
Hash
bde11e15
Indexed
2026-08-19 19:31

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-10-29 09:30
浙ICP备14020137号-1