Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计异常

subagent-driven-development子 Agent 驱动开发

Agent Skill

subagent-driven-development 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

212

周安装

9

GitHub Stars

17

下载量

74
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:subagent-driven-development(子 Agent 驱动开发)
来源仓库:https://github.com/codingcossack/agent-skills-library
仓库路径:skills/subagent-driven-development
安装命令:
npx skills add https://github.com/codingcossack/agent-skills-library --skill subagent-driven-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/codingcossack/agent-skills-library --skill subagent-driven-development

简介

subagent-driven-development 采用子代理驱动开发模式,每个任务独立分配代理并执行两阶段评审。

  • 核心流程包括任务分解、差异验证和质量检查,确保输出一致性。
  • 适用于需要高可靠性的复杂系统开发,支持模板化实现和规格审查。
  • 安装前请确认是否已部署相关评审模板和 BASE_SHA 管理机制。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Subagent-Driven Development

Dispatch fresh subagent per task with two-stage review after each.

Core principle: Fresh subagent per task + two-stage review (spec then quality) + diff-based validation = high quality, fast iteration

Quick Reference

PhaseActorActionExit Condition
1ControllerRead plan, extract tasks, capture BASE_SHA, create task listAll tasks tracked with BASE_SHA
2SubagentImplement (templates/implementer.md)Commit exists + tests pass + report includes HEAD_SHA
3SubagentSpec review (templates/spec-reviewer.md)Reviewer checked diff(BASE..HEAD) and returned ✅ or file:line issues
4SubagentQuality review (templates/code-quality-reviewer.md)Reviewer approved diff or returned severity-tagged issues
5ControllerUpdate state, mark complete, loop to step 2All tasks done
6SubagentFinal review of entire implementationApproved
7ControllerUse finishing-a-development-branchBranch complete

Task Contract

Every task must satisfy these constraints:

Scope:

  • One task = one commit (or tight commit stack)
  • No drive-by refactors; no formatting churn
  • No unrelated file changes

Verification:

  • All tests pass (run full suite or affected subset)
  • Lint/typecheck pass (if applicable)
  • Commands actually executed (not assumed)

Report must include:

  • BASE_SHA (from controller)
  • HEAD_SHA (after commit)
  • Commands run (exact, copy-pasteable)
  • Test output summary (pass/fail + counts)
  • Files changed (list)
  • Scope confirmation ("No unrelated changes")

State Tracking

Controller maintains per-task record:

{
  task_id: string,
  base_sha: string,      # Captured before implementer starts
  head_sha: string,      # From implementer report after commit
  status: pending|in_progress|spec_review|quality_review|complete,
  spec_review_cycles: number,
  quality_review_cycles: number
}

Update state after each phase transition.

Process

Setup (Once)

  1. Read plan file once
  2. Extract all tasks with full text and context
  3. Capture current HEAD as BASE_SHA for first task
  4. Create task list with all tasks (status: pending)

Per Task Loop

  1. Record BASE_SHA for this task (current HEAD)
  2. Dispatch implementer with full task text + context + BASE_SHA
  3. If questions: Answer completely, re-dispatch with answers
  4. Implementer completes: implements, tests, commits, reports HEAD_SHA
  5. Update state: Record HEAD_SHA, set status to spec_review
  6. Dispatch spec reviewer with task requirements + diff(BASE_SHA..HEAD_SHA)
  7. If spec issues: Implementer fixes → spec reviewer re-reviews → increment cycle count → repeat until ✅
  8. Update state: Set status to quality_review
  9. Dispatch code quality reviewer with BASE_SHA, HEAD_SHA
  10. If quality issues: Implementer fixes → quality reviewer re-reviews → increment cycle count → repeat until ✅
  11. Update state: Set status to complete, BASE_SHA for next task = current HEAD_SHA

Completion

  1. Dispatch final code reviewer for entire implementation (first BASE_SHA to final HEAD_SHA)
  2. Use finishing-a-development-branch skill

Prompt Templates

  • templates/implementer.md — Implementation subagent
  • templates/spec-reviewer.md — Spec compliance verification (diff-based)
  • templates/code-quality-reviewer.md — Code quality assessment (diff-based)

See references/example-workflow.md for complete walkthrough with SHA tracking.

Red Flags

Never:

  • Skip reviews (spec compliance OR code quality)
  • Proceed with unfixed issues
  • Dispatch parallel implementers in same working tree (conflicts)
  • Make subagent read plan file (provide full text)
  • Skip BASE_SHA/HEAD_SHA tracking
  • Let reviewers assess "the repo" instead of the specific diff
  • Accept reports without required fields (SHA, commands, test output)

Parallel clarification: "Parallel sessions" (separate branches/worktrees) is fine via executing-plans. "Parallel implementers" touching same working tree is forbidden.

If subagent asks questions: Answer clearly and completely before they proceed.

If reviewer finds issues: Implementer fixes → reviewer re-reviews specific diff → repeat until approved.

If implementer discovers required refactor: Stop, report to controller, request plan amendment. Don't bulldoze.

Dependencies

Requires: writing-plans (creates the plan)

Subagents use: test-driven-development, requesting-code-review (template)

Completes with: finishing-a-development-branch

Alternative: executing-plans (for parallel sessions/branches, not parallel implementers)

Environment notes: This skill assumes availability of: git (for SHA tracking), a task list tool (TodoWrite or equivalent), and ability to dispatch subagents. Adapt tool names to your environment.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.89%
按下载量换算25

Claude

31.55%
按下载量换算23

Cursor

18.43%
按下载量换算14

Gemini CLI

10.49%
按下载量换算8

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills