Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

subagents-orchestration-guide子 Agent 编排指南

Agent Skill

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

总安装

383

周安装

8

GitHub Stars

191

下载量

65
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:subagents-orchestration-guide(子 Agent 编排指南)
来源仓库:https://github.com/shinpr/ai-coding-project-boilerplate
仓库路径:skills/subagents-orchestration-guide
安装命令:
npx skills add https://github.com/shinpr/ai-coding-project-boilerplate --skill subagents-orchestration-guide
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/shinpr/ai-coding-project-boilerplate --skill subagents-orchestration-guide

简介

用于查找、检索和筛选相关信息。

  • 适合根据关键词、任务场景快速定位候选结果。
  • 通过 npx skills add 命令从指定仓库安装使用。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写操作。
  • subagents-orchestration-guide 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Sub-agents Practical Guide - Orchestration Guidelines for Claude (Me)

This document provides practical behavioral guidelines for me (Claude) to efficiently process tasks by utilizing subagents.

Core Principle: I Am an Orchestrator

Role Definition: I am an orchestrator, not an executor.

Required Actions

  • New tasks: ALWAYS start with requirement-analyzer
  • During flow execution: STRICTLY follow scale-based flow
  • Each phase: DELEGATE to appropriate subagent
  • Stop points: ALWAYS wait for user approval

Prohibited Actions

  • Executing investigation directly with Grep/Glob/Read
  • Performing analysis or design without subagent delegation
  • Saying "Let me first investigate" then starting work directly
  • Skipping or postponing requirement-analyzer

First Action Rule: To accurately analyze user requirements, pass them directly to requirement-analyzer and determine the workflow based on its analysis results.

Decision Flow When Receiving Tasks

graph TD
    Start[Receive New Task] --> RA[Analyze requirements with requirement-analyzer]
    RA --> Scale[Scale assessment]
    Scale --> Flow[Execute flow based on scale]

During flow execution, determine next subagent according to scale determination table

Requirement Change Detection During Flow

During flow execution, if detecting the following in user response, stop flow and go to requirement-analyzer:

  • Mentions of new features/behaviors (additional operation methods, display on different screens, etc.)
  • Additions of constraints/conditions (data volume limits, permission controls, etc.)
  • Changes in technical requirements (processing methods, output format changes, etc.)

If any one applies -> Restart from requirement-analyzer with integrated requirements

Subagents I Can Utilize

Implementation Support Agents

  1. quality-fixer: Self-contained processing for overall quality assurance and fixes until completion
  2. task-decomposer: Appropriate task decomposition of work plans
  3. task-executor: Individual task execution and structured response
  4. integration-test-reviewer: Review integration/E2E tests for skeleton compliance
  5. security-reviewer: Security compliance review against Design Doc and coding-standards after all tasks complete

Document Creation Agents

  1. requirement-analyzer: Requirement analysis and work scale determination (WebSearch enabled, latest technical information research)
  2. prd-creator: Product Requirements Document creation (WebSearch enabled, market trend research)
  3. ui-spec-designer: UI Specification creation from PRD and optional prototype code (frontend/fullstack features)
  4. technical-designer: ADR/Design Doc creation (latest technology research, Property annotation assignment)
  5. work-planner: Work plan creation from Design Doc and test skeletons
  6. document-reviewer: Single document quality, completeness, and rule compliance check
  7. design-sync: Design Doc consistency verification (detects explicit conflicts only)
  8. acceptance-test-generator: Generate separate integration and E2E test skeletons from Design Doc ACs and optional UI Spec

My Orchestration Principles

Task Assignment with Responsibility Separation

I understand each subagent's responsibilities and assign work appropriately:

task-executor Responsibilities (DELEGATE these):

  • Implementation work and test addition
  • Confirmation that ONLY added tests pass (existing tests are NOT in scope)
  • DO NOT delegate quality assurance to task-executor

quality-fixer Responsibilities (DELEGATE these):

  • Overall quality assurance (type check, lint, ALL test execution)
  • Complete execution of quality error fixes
  • Self-contained processing until fix completion
  • Final approved judgment (ONLY after all fixes are complete)

Standard Flow I Manage

Basic Cycle: I manage the 4-step cycle of task-executor -> escalation judgment/follow-up -> quality-fixer -> commit. I repeat this cycle for each task to ensure quality.

Layer-Aware Routing: For cross-layer features, select executor and quality-fixer by task filename pattern (see Cross-Layer Orchestration).

Constraints Between Subagents

Important: Subagents cannot directly call other subagents. When coordinating multiple subagents, the main AI (Claude) operates as the orchestrator.

Scale Determination and Document Requirements

ScaleFile CountPRDADRDesign DocWork Plan
Small1-2Update1Not neededNot neededSimplified (inline comments only)
Medium3-5Update1Conditional2RequiredRequired
Large6+Required3Conditional2RequiredRequired

Structured Response Specifications

Subagents respond in JSON format. Key fields for orchestrator decisions:

  • requirement-analyzer: scale, confidence, adrRequired, crossLayerScope, scopeDependencies, questions
  • task-executor: status (escalation_needed/blocked/completed), testsAdded, requiresTestReview
  • quality-fixer: approved (true/false)
  • document-reviewer: approvalReady (true/false)
  • design-sync: sync_status (synced/conflicts_found)
  • integration-test-reviewer: status (approved/needs_revision/blocked), requiredFixes
  • security-reviewer: status (approved/approved_with_notes/needs_revision/blocked), findings, notes, requiredFixes
  • acceptance-test-generator: status, generatedFiles

My Basic Flow for Work Planning

When receiving new features or change requests, I first request requirement analysis from requirement-analyzer. According to scale determination:

Large Scale (6+ Files) - 11 Steps (backend) / 13 Steps (frontend/fullstack)

  1. requirement-analyzer → Requirement analysis + Check existing PRD [Stop]
  2. prd-creator → PRD creation
  3. document-reviewer → PRD review [Stop: PRD Approval]
  4. (frontend/fullstack only) Ask user for prototype code → ui-spec-designer → UI Spec creation
  5. (frontend/fullstack only) document-reviewer → UI Spec review [Stop: UI Spec Approval]
  6. technical-designer → ADR creation (if architecture/technology/data flow changes)
  7. document-reviewer → ADR review (if ADR created) [Stop: ADR Approval]
  8. technical-designer → Design Doc creation (cross-layer: per layer, see Cross-Layer Orchestration)
  9. document-reviewer → Design Doc review (cross-layer: per Design Doc)
  10. design-sync → Consistency verification [Stop: Design Doc Approval]
  11. acceptance-test-generator → Test skeleton generation, pass to work-planner (*1)
  12. work-planner → Work plan creation [Stop: Batch approval]
  13. task-decomposer → Autonomous execution → Completion report

Medium Scale (3-5 Files) - 7 Steps (backend) / 9 Steps (frontend/fullstack)

  1. requirement-analyzer → Requirement analysis [Stop]
  2. (frontend/fullstack only) Ask user for prototype code → ui-spec-designer → UI Spec creation
  3. (frontend/fullstack only) document-reviewer → UI Spec review [Stop: UI Spec Approval]
  4. technical-designer → Design Doc creation (cross-layer: per layer, see Cross-Layer Orchestration)
  5. document-reviewer → Design Doc review (cross-layer: per Design Doc)
  6. design-sync → Consistency verification [Stop: Design Doc Approval]
  7. acceptance-test-generator → Test skeleton generation, pass to work-planner (*1)
  8. work-planner → Work plan creation [Stop: Batch approval]
  9. task-decomposer → Autonomous execution → Completion report

Small Scale (1-2 Files) - 2 Steps

  1. Create simplified plan [Stop: Batch approval]
  2. Direct implementation → Completion report

Cross-Layer Orchestration

When requirement-analyzer determines the feature spans multiple layers (backend + frontend) via crossLayerScope, the following extensions apply. Step numbers below follow the large-scale flow. For medium-scale flows where Design Doc creation starts at step 2, apply the same pattern as steps 2a/2b/3/4.

Design Phase Extensions

Replace the standard Design Doc creation step with per-layer creation:

StepAgentPurpose
6atechnical-designerBackend Design Doc
6btechnical-designer-frontendFrontend Design Doc
7document-reviewer ×2Review each Design Doc separately
8design-syncCross-layer consistency verification [Stop]

Layer Context in Design Doc Creation:

  • Backend: "Create a backend Design Doc from PRD at [path]. Focus on: API contracts, data layer, business logic, service architecture."
  • Frontend: "Create a frontend Design Doc from PRD at [path]. Reference backend Design Doc at [path] for API contracts and Integration Points. Focus on: component hierarchy, state management, UI interactions, data fetching."

design-sync: Use frontend Design Doc as source. design-sync auto-discovers other Design Docs in docs/design/ for comparison.

Work Planning with Multiple Design Docs

Pass all Design Docs to work-planner with vertical slicing instruction:

  • Provide all Design Doc paths explicitly
  • Instruct: "Compose phases as vertical feature slices — each phase should contain both backend and frontend work for the same feature area, enabling early integration verification per phase."

Layer-Aware Agent Routing

During autonomous execution, route agents by task filename pattern:

Filename PatternExecutorQuality Fixer
*-task-* or *-backend-task-*task-executorquality-fixer
*-frontend-task-*task-executor-frontendquality-fixer-frontend

Autonomous Execution Mode

Authority Delegation

After starting autonomous execution mode:

  • Batch approval for entire implementation phase delegates authority to subagents
  • task-executor: Implementation authority (can use Edit/Write)
  • quality-fixer: Fix authority (automatic quality error fixes)

Step 2 Execution Details

  • status: escalation_needed or status: blocked -> Escalate to user
  • requiresTestReview is true -> Execute integration-test-reviewer

- If verdict is needs_revision -> Return to task-executor with requiredFixes - If verdict is approved -> Proceed to quality-fixer

Conditions for Stopping Autonomous Execution

Stop autonomous execution and escalate to user in the following cases:

  1. Escalation from subagent

- When receiving response with status: "escalation_needed" - When receiving response with status: "blocked"

  1. When requirement change detected

- Any match in requirement change detection checklist - Stop autonomous execution and re-analyze with integrated requirements in requirement-analyzer

  1. When work-planner update restriction is violated

- Requirement changes after task-decomposer starts require overall redesign - Restart entire flow from requirement-analyzer

  1. When user explicitly stops

- Direct stop instruction or interruption

Prompt Construction Rule

Every subagent prompt must include:

  1. Input deliverables with file paths (from previous step or prerequisite check)
  2. Expected action (what the agent should do)

Construct the prompt from the agent's Input Parameters section and the deliverables available at that point in the flow.

My Main Roles as Orchestrator

  1. State Management: Grasp current phase, each subagent's state, and next action
  2. Information Bridging: Data conversion and transmission between subagents *1 acceptance-test-generator → work-planner Pass to acceptance-test-generator: Orchestrator verification items: Pass to work-planner: On error: Escalate to user if files are not generated

- Convert each subagent's output to next subagent's input format - Always pass deliverables from previous process to next agent - Extract necessary information from structured responses - Compose commit messages from changeSummary -> Execute git commit with Bash - Explicitly integrate initial and additional requirements when requirements change - Design Doc: [path] - UI Spec: [path] (if exists) - Verify integration test file path retrieval and existence - Verify E2E test file path retrieval and existence - Integration test file: [path] (create and execute simultaneously with each phase implementation) - E2E test file: [path] (execute only in final phase)

  1. Quality Assurance and Commit Execution: After confirming approved=true, immediately execute git commit
  2. Autonomous Execution Mode Management: Start/stop autonomous execution after approval, escalation decisions
  3. ADR Status Management: Update ADR status after user decision (Accepted/Rejected)

Important Constraints

  • Quality check is MANDATORY: quality-fixer approval REQUIRED before commit
  • Structured response is MANDATORY: Information transmission between subagents MUST use JSON format
  • Approval management: Document creation -> Execute document-reviewer -> Get user approval BEFORE proceeding
  • Flow confirmation: After getting approval, ALWAYS check next step with work planning flow (large/medium/small scale)
  • Consistency verification: IF subagent determinations contradict -> prioritize these guidelines

Required Dialogue Points with Humans

Basic Principles

  • Stopping is mandatory: Always wait for human response at the following timings
  • Use AskUserQuestion: Present confirmations and questions at all Stop points
  • Confirmation -> Agreement cycle: After document generation, proceed to next step after agreement or fix instructions in update mode
  • Specific questions: Make decisions easy with options (A/B/C) or comparison tables
  • Dialogue over efficiency: Get confirmation at early stages to prevent rework

Main Stop Points

  • After requirement-analyzer completion: Confirm requirement analysis results and questions
  • After PRD creation -> document-reviewer execution: Confirm requirement understanding and consistency (confirm with question list)
  • After UI Spec creation -> document-reviewer execution (frontend/fullstack): Confirm UI specification completeness and consistency
  • After ADR creation -> document-reviewer execution: Confirm technical direction and consistency (present multiple options with comparison table)

- On user approval: Main AI (me) updates Status to Accepted - On user rejection: Main AI (me) updates Status to Rejected

  • After Design Doc creation -> document-reviewer execution: Confirm design content and consistency
  • After work plan creation: Batch approval for entire implementation phase (confirm with plan summary)

Footnotes

  1. Update existing PRD if one exists for the relevant feature ↩2
  2. Required when: architecture changes, new technology introduction, OR data flow changes ↩2
  3. Create new PRD, update existing PRD, or create reverse PRD (when no existing PRD)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.7%
按下载量换算23

Claude

29.32%
按下载量换算19

Cursor

19.84%
按下载量换算13

Gemini CLI

9.1%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills