agentleFS
s977043s977043/PlanGate/.agents/skills/subagent-driven-development/SKILL.md

subagent-driven-development

Skill3 starsChanged 11 days agoMITView on GitHub

実装計画のタスクをサブエージェントに委譲し、spec準拠+品質の2段階レビューで品質を担保する。Use when: 「この実装をエージェントに任せたい」「サブエージェントで実装して」「タスクを分割して並列実行したい」「大きな実装タスクの分割実行」「並列開発」。計画作成にはai-dev-workflowを使用。

190 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use chinese-code-review, chinese-commit-conventions and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Leodorareluctant259Skill

    chinese-code-review

    中文代码审查规范——在保持专业严谨的同时,用符合国内团队文化的方式给出有效反馈

    Also in 8 projects that use this

  • Leodorareluctant259Skill

    chinese-commit-conventions

    中文 Git 提交规范 — 适配国内团队的 commit message 规范和 changelog 自动化

    Also in 8 projects that use this

  • obraSkill

    diagnosing-superpowers

    Use when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.

    Also in 19 projects that use this

  • Tommy-ywSkill

    webhook-subscriptions

    Create and manage webhook subscriptions for event-driven agent activation, or for direct push notifications (zero LLM cost). Use when the user wants external services to trigger agent runs OR push notifications to chats.

    Also in 5 projects that use this

  • math-incSkill

    minecraft-modpack-server

    Set up a modded Minecraft server from a CurseForge/Modrinth server pack zip. Covers NeoForge/Forge install, Java version, JVM tuning, firewall, LAN config, backups, and launch scripts.

    Also in 5 projects that use this

  • math-incSkill

    pokemon-player

    Play Pokemon games autonomously via headless emulation. Starts a game server, reads structured game state from RAM, makes strategic decisions, and sends button inputs — all from the terminal.

    Also in 5 projects that use this

  • +3 more from Leodorareluctant259
  • +2 more from math-inc

The file

Files
SKILL.md

Subagent-Driven Development

実装計画の各タスクを専門サブエージェントに委譲し、2段階レビュー(spec準拠+品質)で高品質な実装を高速に回す。

Iron Law

NO MERGE WITHOUT TWO-STAGE REVIEW

Spec Reviewerによる仕様準拠確認とQuality Reviewerによる品質確認の両方を通過しない限り、タスクを完了としない。

Common Rationalizations

こう思ったら現実
「Spec Reviewは実装者を信頼してスキップ」信頼とレビューは別。2段階は必須
「小さい修正だからQuality Review不要」小さい修正こそバグが潜む。スキップ禁止
「前のタスクと同じパターンだからレビュー軽め」各タスクは独立評価。前回の結果は根拠にならない

核心原則: Fresh subagent per task + two-stage review = high quality, fast iteration


プロセス概要

Plan読み込み → タスク抽出 → 各タスクについて:
  1. Implementerサブエージェント派遣
  2. Spec Reviewerサブエージェント派遣
  3. (問題あれば) Implementer修正 → 再レビュー
  4. Quality Reviewerサブエージェント派遣
  5. (問題あれば) Implementer修正 → 再レビュー
  6. タスク完了 → 次のタスクへ
→ 全タスク完了後、最終統合レビュー

Step 1: 計画読み込みとタスク抽出

  1. plan.md と todo.md を読む
  2. 各タスクに以下の情報を付与:
    • 変更対象ファイル
    • 受入基準(specから該当部分を抽出)
    • 依存関係(前のタスクの完了が必要か)
    • 推奨モデル(複雑度に応じて選択)

モデル選択ガイド

タスク複雑度推奨例
低(機械的)haiku単純なCRUD、テンプレート適用
中(統合)sonnetAPI連携、コンポーネント結合
高(設計判断)opusアーキテクチャ決定、複雑なロジック

Step 2: Implementerサブエージェント派遣

各タスクに対して、以下の情報を含むプロンプトでサブエージェントを起動:

タスク: {タスク名}
スコープ: {変更対象ファイル}
受入基準: {具体的な基準}
既存パターン: {プロジェクトの既存実装パターン}
制約: {アーキテクチャ構造、依存方向、命名規則}

Implementerのルール:

  • 不明点があれば実装前に質問する(推測で進めない)
  • 既存パターンに従う
  • テストを含める
  • 実装後にセルフレビューを行う

Step 3: Spec Reviewerサブエージェント派遣

Implementerの成果物に対して、spec準拠レビューを実施:

チェック項目:
□ 受入基準を全て満たしているか
□ スコープ外の変更がないか
□ 既存のAPIコントラクトを破壊していないか
□ テストが受入基準をカバーしているか

判定: PASS / FAIL(修正必須箇所を明示)

FAIL → Implementerに差し戻し → 修正 → 再レビュー

Step 4: Quality Reviewerサブエージェント派遣

Spec PASSした成果物に対して、コード品質レビューを実施:

チェック項目:
□ アーキテクチャ原則の遵守(レイヤー間依存方向)
□ 命名の一貫性
□ エラーハンドリング
□ パフォーマンス(N+1クエリ、不要なデータ取得)
□ セキュリティ(入力バリデーション、認証・認可)
□ テスト品質(境界値、異常系)

判定: PASS / WARN(改善提案)/ FAIL(修正必須)

FAIL → Implementerに差し戻し → 修正 → 再レビュー

Step 5: 最終統合レビュー

全タスク完了後:

  1. 全変更ファイルの統合的なレビュー
  2. コンフリクトの確認
  3. プロジェクトの検証コマンド実行(lint/test/typecheck)
  4. todo.md の全チェック更新

重要ルール

  • レビューをスキップしない: 「close enough」でspec準拠を妥協しない
  • ブロッカーは即停止: 依存関係の問題、テスト失敗、不明点は即座にユーザーに報告
  • worktreeで隔離: 可能な場合はgit worktreeで作業を隔離する
  • mainブランチでは作業しない: ユーザー同意なしにmainで作業開始しない

関連スキル

  • ai-dev-workflow: 計画生成(plan/todo)に使用
  • brainstorming: 要件整理に使用
  • find-bugs: 最終品質チェックに使用

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.