subagent-dispatch
Skill3 starsChanged 11 days agoMITView on GitHub
high-risk/critical モードでタスクをロール別エージェントに分配する。依存関係グラフを生成し、並列実行可能タスクを特定して Allowed Context と共に dispatch する。
2 other projects use a version of this.
Adopted by
Most recently taken up by
- dagarre00/claude-code-templatetheir own version, first seen Oct 15, 2026
- rakaadi/agent-kittheir own version, first seen Aug 29, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- dagarre00/claude-code-template★ 1same name
- rakaadi/agent-kit★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository75 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/plangate.mdcCursor rule
- acceptance-criteria-buildSkill
- acceptance-reviewSkill
- ai-dev-brainstormSkill
- ai-dev-execSkill
- ai-dev-planSkill
- ai-dev-verifySkill
- ai-loop-cycleSkill
- architecture-sketchSkill
- brainstormingSkill
- breakdown-gateSkill
- codex-multi-agentSkill
- codex-mvp-splitSkill
- context-loadSkill
- context-packagerSkill
- design-gateSkill
- diff-auditSkill
- edgecase-enumerationSkill
- evidence-ledgerSkill
- feature-implementSkill
- ho-apply-scriptSkill
- instruction-debt-auditSkill
- intent-classifierSkill
- known-issues-logSkill
- local-exec-handoffSkill
- manual-cloud-taskSkill
- nonfunctional-checkSkill
- plangate-setupSkill
- plan-normalizationSkill
- plan-review-gateSkill
- pr-decisionSkill
- ref-integrity-scanSkill
- requirement-gap-scanSkill
- review-gateSkill
- risk-assessmentSkill
- skill-creatorSkill
- skill-policy-routerSkill
- subagent-delegation-briefSkill
- subagent-driven-developmentSkill
- subagent-team-designSkill
- systematic-debuggingSkill
- working-contextSkill
- acceptance-criteria-buildSkill
- acceptance-reviewSkill
- ai-loop-cycleSkill
- architecture-sketchSkill
- brainstormingSkill
- breakdown-gateSkill
- codex-multi-agentSkill
- context-loadSkill
- diff-auditSkill
- edgecase-enumerationSkill
- feature-implementSkill
- ho-apply-scriptSkill
- hypothesis-loggerSkill
- instruction-debt-auditSkill
- intent-classifierSkill
- known-issues-logSkill
- The first 60 shown.
The file
Files
Subagent Dispatch
high-risk/critical モードでタスクをロール別エージェントに分配するスキル。 依存関係グラフを生成し、並列実行可能なタスクを特定する。
目的
マルチエージェント実行を安全に行うために、以下を保証する。
- 各エージェントが適切なロールを担う(
subagent-team-designSkill のロール定義に基づく) - 並列実行による競合(同一ファイルの同時変更)を防ぐ
- 依存関係のある処理が正しい順序で実行される
手順(5 ステップ)
plan.mdの Work Breakdown からタスクを列挙する- 各タスクに
subagent-team-designSkill のロール定義(6 ロール)からロールを割り当てる - タスク間の依存関係を特定し、依存関係グラフを生成する
- 依存がないタスクを「並列実行可能」としてグループ化する
- 各タスクに
context-packagerを適用して Allowed Context を生成する
並列実行判定基準
| 条件 | 判定 |
| Allowed Context(Target Files)が重複しない | 並列可 |
| 共有状態(同一ファイル)を変更する | 逐次 |
| reviewee が実装完了するまで reviewer は待機 | 逐次 |
| 同一 pbi-input.md への仕様参照のみ | 並列可 |
入力
- 実行モード(high-risk / critical)
docs/working/TASK-XXXX/plan.md(Work Breakdown)docs/working/TASK-XXXX/test-cases.md.agents/skills/subagent-team-design/SKILL.md§ステップ 2(6 ロール定義)
出力: Dispatch パッケージ
## Dispatch パッケージ
### Mode: {high-risk | critical}
### フェーズ構成
#### Phase A(並列実行可能)
| エージェント | ロール | 担当タスク | Allowed Context |
|------------|--------|----------|----------------|
| Agent-1 | implementer | {タスク名} | {context-packager 出力へのリンク} |
| Agent-2 | implementer | {タスク名} | {context-packager 出力へのリンク} |
#### Phase B(Phase A 完了後)
| エージェント | ロール | 担当タスク | 入力 |
|------------|--------|----------|-----|
| Agent-3 | reviewer | 全実装のレビュー | Phase A の出力 |
| Agent-4 | security-reviewer | セキュリティレビュー | Phase A の出力 |
### 依存関係グラフ(Mermaid)
\`\`\`mermaid
graph TD
A[planner] --> B[implementer-1]
A --> C[implementer-2]
B --> D[reviewer]
C --> D
D --> E[Completion Gate]
\`\`\`
### 並列実行判定結果
- Agent-1 と Agent-2: Target Files が重複しない → 並列可
- Agent-3 と Agent-4: 同じ実装を入力として受け取る → 並列可
- Agent-1/2 → Agent-3/4: 実装完了後にレビュー開始 → 逐次想定 phase
- WF-03 Solution Design(マルチエージェント設計時)
- WF-04 Build & Refine(実行前)
カテゴリ
- multi-agent
- orchestration
ファイルベース受け渡し(#581 要素3)
subagent へは会話履歴でなく dispatch/ 配下のファイルで渡す:
- task brief:
dispatch/task-NNN-brief.md(context-packager の Allowed Context) - report:
dispatch/task-NNN-report.md(実行コマンド・テスト結果・変更サマリ・懸念) - review package:
dispatch/task-NNN-review-package.md(reviewer 入力を brief/report/diff/evidence へのリンクで固定) - progress ledger:
dispatch/progress-ledger.md(進捗。compaction・モデル切替後はここから再開)
reviewer は review-package ファイルのみを入力とし、会話履歴は渡さない。テンプレは docs/working/templates/dispatch/。
参照解決順(導入先で必ずこの順に探す): 本 Skill が参照する
docs/**は上流リポジトリ基準の相対パスであり、install.sh --claude/ plugin(Claude marketplace)/ Codex の 3 経路とも配布対象外(解決不可)。(1) 導入先リポジトリの同名パスを探す → (2) 見つからなければ 「正本<path>を参照できなかった」と明示し、本 Skill 内の記述を代替正本として扱い、推測で内容を補わない。plugin root 配下の探索はdocs/**には適用しない: plugin が配布するのはagents/commands/skills/rules等の定義ディレクトリのみでdocs/を配布対象として認識せず、plugin root 配下に相当する配布物が存在しないため、plugin root 段を置いても必ず空振りする(クラス A の rules 参照が plugin root 配下で解決できるのはrules/が実際に配布されるからであり、この非対称をdocs/**に持ち込まない)。
関連
- Skill:
context-packager(各エージェントへの Allowed Context 生成) - Skill:
subagent-team-design§ステップ 2(6 ロール定義の正本) - Skill:
pr-decision(Gate / Evidence / Review を集約した最終 go/no-go 判定)
旧
plugin/plangate/rules/subagent-roles.md/plugin/plangate/rules/completion-gate.mdは 削除済み(TASK-0124 /2645848, 2026-06-02 の plugin 初回同期適用)。 ロール定義はsubagent-team-designSkill が引き継いだ。 Completion Gate の 5 条件チェックポイントを定義した正本は後継なしであり、 実務上の統合判定はpr-decisionSkill が担う(本 Skill の Mermaid 図中のCompletion Gateは概念ノードであり、参照可能な正本ファイルは存在しない)。
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
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.

