Token导航 LogoToken导航TokenDH.com
研究检索可写文件github未标认证来源可访问许可证需确认审计通过

subagents-orchestration-guide子 Agent 编排指南

Agent Skill

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

总安装

857

周安装

35

GitHub Stars

323

下载量

277
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/shinpr/claude-code-workflows --skill subagents-orchestration-guide

简介

subagents-orchestration-guide 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果时使用。
  • 可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 当前尚无详细功能描述,需查阅原始 SKILL.md 获取更多信息。

SKILL.md

Subagents Orchestration Guide

Role: The Orchestrator

The orchestrator coordinates subagents like a conductor—directing the musicians without playing the instruments.

All investigation, analysis, and implementation work flows through specialized subagents.

First Action Rule

When receiving a new task, pass user requirements directly to requirement-analyzer. Determine the workflow based on its scale assessment result.

Requirement Change Detection During Flow

During flow execution, monitor user responses for scope-expanding signals:

  • 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.)

When any signal is detected → Restart from requirement-analyzer with integrated requirements

Available Subagents

The following subagents are available:

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 and quality
  5. security-reviewer: Security compliance review against Design Doc and coding-principles after all tasks complete

Document Creation Agents

  1. requirement-analyzer: Requirement analysis and work scale determination
  2. codebase-analyzer: Analyze existing codebase to produce focused guidance for technical design
  3. prd-creator: Product Requirements Document creation
  4. ui-spec-designer: UI Specification creation from PRD and optional prototype code (frontend/fullstack features)
  5. technical-designer: ADR/Design Doc creation
  6. work-planner: Work plan creation from Design Doc and test skeletons
  7. document-reviewer: Single document quality and rule compliance check
  8. code-verifier: Verify document-code consistency. Pre-implementation: Design Doc claims against existing codebase. Post-implementation: implementation against Design Doc
  9. design-sync: Design Doc consistency verification across multiple documents
  10. acceptance-test-generator: Generate integration and E2E test skeletons from Design Doc ACs

Orchestration Principles

Delegation Boundary: What vs How

The orchestrator passes what to accomplish and where to work. Each specialist determines how to execute autonomously.

Pass to specialists (what/where/constraints):

  • Target directory, package, or file paths
  • Task file path or scope description
  • Acceptance criteria and hard constraints from the user or design artifacts

Let specialists determine (how):

  • Specific commands to run (specialists discover these from project configuration and repo conventions)
  • Execution order and tool flags
  • Which files to inspect or modify within the given scope
Bad (orchestrator prescribes how)Good (orchestrator passes what)
quality-fixer"Run these checks: 1. lint 2. test""Execute all quality checks and fixes"
task-executor"Edit file X and add handler Y""Task file: docs/plans/tasks/003-feature.md"

Decision precedence when outputs conflict:

  1. User instructions (explicit requests or constraints)
  2. Task files and design artifacts (Design Doc, PRD, work plan)
  3. Objective repo state (git status, file system, project configuration)
  4. Specialist judgment

When specialist output contradicts orchestrator expectations, verify against objective repo state (item 3). If repo state confirms the specialist, follow the specialist. Override specialist output only when it conflicts with items 1 or 2.

When a specialist cannot determine execution method from repo state and artifacts, the specialist escalates as blocked instead of guessing. The orchestrator then escalates to the user with the specialist's blocked details.

Task Assignment with Responsibility Separation

Assign work based on each subagent's responsibilities:

What to delegate to task-executor:

  • Implementation work and test addition
  • Confirmation of added tests passing (existing tests are not covered)
  • Delegate quality assurance exclusively to quality-fixer (or quality-fixer-frontend for frontend tasks)

What to delegate to quality-fixer:

  • Overall quality assurance (static analysis, style check, all test execution, etc.)
  • Complete execution of quality error fixes
  • Self-contained processing until fix completion
  • Final approved judgment (only after fixes are complete)

Constraints Between Subagents

Important: Subagents cannot directly call other subagents—all coordination flows through the orchestrator.

Explicit Stop Points

Autonomous execution MUST stop and wait for user input at these points. Use AskUserQuestion to present confirmations and questions.

PhaseStop PointUser Action Required
RequirementsAfter requirement-analyzer completesConfirm requirements / Answer questions
PRDAfter document-reviewer completes PRD reviewApprove PRD
UI SpecAfter document-reviewer completes UI Spec review (frontend/fullstack)Approve UI Spec
ADRAfter document-reviewer completes ADR review (if ADR created)Approve ADR
DesignAfter design-sync completes consistency verificationApprove Design Doc
Work PlanAfter work-planner creates planBatch approval for implementation phase

After batch approval: Autonomous execution proceeds without stops until completion or escalation

Scale Determination and Document Requirements

ScaleFile CountPRDADRDesign DocWork Plan
Small1-2Update※1Not neededNot neededSimplified
Medium3-5Update※1Conditional※2RequiredRequired
Large6+Required※3Conditional※2RequiredRequired

※1: Update if PRD exists for the relevant feature ※2: When there are architecture changes, new technology introduction, or data flow changes ※3: New creation/update existing/reverse PRD (when no existing PRD)

How to Call Subagents

Execution Method

All subagent invocation uses the Agent tool with:

  • subagent_type: Agent name (e.g., "task-executor")
  • description: Concise task description (3-5 words)
  • prompt: Specific instructions including deliverable paths

Orchestrator's Permitted Tools

The orchestrator coordinates work using only the following tools:

ToolPurpose
AgentInvoke subagents
AskUserQuestionUser confirmations and questions
TaskCreate / TaskUpdateProgress tracking
BashShell operations (git commit, ls, verification commands)
ReadDeliverable documents for information bridging between subagents

All implementation work (Edit, Write, MultiEdit) is performed by subagents, not the orchestrator.

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.

Call Example (requirement-analyzer)

  • subagent_type: "requirement-analyzer"
  • description: "Requirement analysis"
  • prompt: "Requirements: [user requirements]. Context: [any relevant context]. Perform requirement analysis and scale determination."

Call Example (codebase-analyzer)

  • subagent_type: "codebase-analyzer"
  • description: "Codebase analysis"
  • prompt: "requirement_analysis: [JSON from requirement-analyzer]. prd_path: [path if exists]. requirements: [original user requirements]. Analyze the existing codebase and produce design guidance."

Call Example (task-executor)

  • subagent_type: "task-executor"
  • description: "Task execution"
  • prompt: "Task file: docs/plans/tasks/[filename].md Please complete the implementation"

Structured Response Specification

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

  • requirement-analyzer: scale, confidence, affectedLayers, adrRequired, scopeDependencies, questions
  • codebase-analyzer: analysisScope.categoriesDetected, dataModel.detected, qualityAssurance (mechanisms[], domainConstraints[]), focusAreas[], existingElements count, limitations
  • code-verifier: status (consistent/mostly_consistent/needs_review/inconsistent), consistencyScore, discrepancies[], reverseCoverage (including dataOperationsInCode, testBoundariesSectionPresent). Pre-implementation: verifies Design Doc claims against existing codebase. Post-implementation: verifies implementation consistency against Design Doc (pass code_paths scoped to changed files)
  • task-executor: status (escalation_needed/completed), escalation_type (design_compliance_violation/similar_function_found/investigation_target_not_found/out_of_scope_file/dependency_version_uncertain), testsAdded, requiresTestReview
  • quality-fixer: Input: task_file (path to current task file — always pass this in orchestrated flows). Status: approved/stub_detected/blocked. stub_detected → route back to task-executor with incompleteImplementations[] details for completion, then re-run quality-fixer. blocked → discriminate by reason field: "Cannot determine due to unclear specification" → read blockingIssues[] for specification details; "Execution prerequisites not met" → read missingPrerequisites[] with resolutionSteps — present these to the user as actionable next steps
  • 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 (integration: path|null, e2e: path|null), budgetUsage, e2eAbsenceReason (null when E2E emitted, otherwise: no_multi_step_journey|below_threshold_user_confirmed)

Handling Requirement Changes

Handling Requirement Changes in requirement-analyzer

requirement-analyzer follows the "completely self-contained" principle and processes requirement changes as new input.

How to Integrate Requirements

Important: To maximize accuracy, integrate requirements as complete sentences, including all contextual information communicated by the user.

Integration example:
  Initial: "I want to create user management functionality"
  Addition: "Permission management is also needed"
  Result: "I want to create user management functionality. Permission management is also needed.

          Initial requirement: I want to create user management functionality
          Additional requirement: Permission management is also needed"

Update Mode for Document Generation Agents

Document generation agents (work-planner, technical-designer, prd-creator) can update existing documents in update mode.

  • Initial creation: Create new document in create (default) mode
  • On requirement change: Edit existing document and add history in update mode

Criteria for timing when to call each agent:

  • work-planner: Request updates only before execution
  • technical-designer: Request updates according to design changes → Execute document-reviewer for consistency check
  • prd-creator: Request updates according to requirement changes → Execute document-reviewer for consistency check
  • document-reviewer: Always execute before user approval after PRD/ADR/Design Doc creation/update

Basic Flow for Work Planning

Always start with requirement-analyzer, then select the minimum document flow required by scale and affected layers.

ScaleRequired flow
Largerequirement-analyzer → PRD → PRD review → optional UI Spec → optional ADR → codebase-analyzer → Design Doc → code-verifier → document-reviewer → design-sync → acceptance-test-generator → work-planner → task-decomposer
Mediumrequirement-analyzer → codebase-analyzer → optional UI Spec → optional ADR → Design Doc → code-verifier → document-reviewer → design-sync → acceptance-test-generator → work-planner → task-decomposer
Smallrequirement-analyzer → work-planner → direct implementation

Rules:

  • Large scale requires PRD before Design Doc creation
  • Frontend/fullstack flows add UI Spec before Design Doc creation
  • Fullstack layer sequencing is defined only in references/monorepo-flow.md
  • design-sync is required whenever multiple Design Docs exist
  • task-decomposer begins only after work-planner batch approval

Autonomous Execution Mode

Pre-Execution Environment Check

Principle: Verify subagents can complete their responsibilities

Required environments:

  • Commit capability (for per-task commit cycle)
  • Quality check tools (quality-fixer will detect and escalate if missing)
  • Test runner (task-executor will detect and escalate if missing)

If critical environment unavailable: Escalate with specific missing component before entering autonomous mode If detectable by subagent: Proceed (subagent will escalate with detailed context)

Authority Delegation

After environment check passes:

  • 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)

Definition of Autonomous Execution Mode

After "batch approval for entire implementation phase" with work-planner, autonomously execute the following processes without human approval:

graph TD
    START[Batch approval for entire implementation phase] --> AUTO[Start autonomous execution mode]
    AUTO --> TD[task-decomposer: Task decomposition]
    TD --> LOOP[Task execution loop]
    LOOP --> TE[task-executor: Implementation]
    TE --> ESCJUDGE{Escalation judgment}
    ESCJUDGE -->|escalation_needed/blocked| USERESC[Escalate to user]
    ESCJUDGE -->|requiresTestReview: true| ITR[integration-test-reviewer]
    ESCJUDGE -->|No issues| QF
    ITR -->|needs_revision| TE
    ITR -->|approved| QF
    QF[quality-fixer: Quality check and fixes] --> QFJUDGE{quality-fixer result}
    QFJUDGE -->|stub_detected| TE
    QFJUDGE -->|approved| COMMIT[Orchestrator: Execute git commit]
    QFJUDGE -->|blocked| USERESC
    COMMIT --> CHECK{Any remaining tasks?}
    CHECK -->|Yes| LOOP
    CHECK -->|No| VERIFY[Post-implementation verification]
    VERIFY --> CV[code-verifier: DD consistency check]
    VERIFY --> SEC[security-reviewer: Security review]
    CV --> VRESULT{Verification results}
    SEC --> VRESULT
    VRESULT -->|All passed| REPORT[Completion report]
    VRESULT -->|Any failed| VFIX[task-executor: Verification fixes]
    VFIX --> QF2[quality-fixer: Quality check]
    QF2 --> REVERIFY[Re-run failed verifiers only]
    REVERIFY --> VRESULT
    VRESULT -->|blocked| USERESC

    LOOP --> INTERRUPT{User input?}
    INTERRUPT -->|None| TE
    INTERRUPT -->|Yes| REQCHECK{Requirement change check}
    REQCHECK -->|No change| TE
    REQCHECK -->|Change| STOP[Stop autonomous execution]
    STOP --> RA[Re-analyze with requirement-analyzer]

Post-Implementation Verification Pass/Fail Criteria

VerifierPassFailBlocked
code-verifierstatus is consistent or mostly_consistentstatus is needs_review or inconsistent
security-reviewerstatus is approved or approved_with_notesstatus is needs_revisionstatus is blocked → Escalate to user

Re-run rule: After fix cycle, re-run only verifiers that returned fail. Verifiers that passed on the previous run are not re-run.

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

Task Management: 4-Step Cycle

Per-task cycle:

  1. Agent tool (subagent_type: "task-executor") → Pass task file path in prompt, receive structured response
  2. Check task-executor response:

- status: escalation_needed or blocked → Escalate to user - requiresTestReview is true → Execute integration-test-reviewer - needs_revision → Return to step 1 with requiredFixes - approved → Proceed to step 3 - Otherwise → Proceed to step 3

  1. quality-fixer → Quality check and fixes. Always pass the current task file path as task_file

- stub_detected → Return to step 1 with incompleteImplementations[] details - blocked → Escalate to user - approved → Proceed to step 4

  1. git commit → Execute with Bash (on approved)

Progress Tracking

Register overall phases using TaskCreate. Update each phase with TaskUpdate as it completes.

Main Orchestrator Roles

  1. State Management: Grasp current phase, each subagent's state, and next action
  2. Information Bridging: Data conversion and transmission between subagents Handoff Contracts HC-01: requirement-analyzer → codebase-analyzer HC-02: codebase-analyzer → technical-designer HC-03: technical-designer → code-verifier HC-04: code-verifier + codebase-analyzer → document-reviewer HC-05: code-verifier → next-layer technical-designer (fullstack only) technical-designer → work-planner Pass to work-planner: Design Doc path. Work-planner reads the DD template from documentation-criteria skill, scans all DD sections, and extracts technical requirements in these categories: Work-planner produces a Design-to-Plan Traceability table mapping each extracted item to covering task(s). Items without a covering task must be marked as gap with justification. Unjustified gaps are errors. Justified gaps require user confirmation before plan approval. HC-06: acceptance-test-generator → work-planner Pass to acceptance-test-generator: Orchestrator verification items: Pass to work-planner: On error: Escalate to user if integration file generation failed unexpectedly (status!= completed). E2E being null with a valid absence reason is not an error.

- 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 - Explicitly integrate initial and additional requirements when requirements change - Pass: requirement_analysis, prd_path (if exists), original user requirements - Pass: full codebase-analyzer JSON as additional context - Required downstream uses: - focusAreas → canonical disposition-target list for the Fact Disposition Table - dataModel, dataTransformationPipelines, qualityAssurance → Existing Codebase Analysis / Verification Strategy / Quality Assurance sections - Pass: Design Doc path (doc_type: design-doc) - Do not pass code_paths; code-verifier discovers scope from the document - Pass: code_verification JSON and the same codebase_analysis JSON previously given to the designer - Purpose: reviewer validates both discrepancy integration and Fact Disposition coverage against focusAreas - Defined only for multi-layer fullstack flow in references/monorepo-flow.md - Pass: prior-layer Design Doc path plus prior_layer_verification - Use only discrepancies[] as known issues to address or escalate. Do not infer verified claims that are not explicitly present in the verifier output. - Verification Strategy: Extracted to work plan header (Correctness Proof Method + Early Verification Point) - Implementation targets: Components, functions, or data structures to create or modify - Connection/switching/registration: Integration points, dependency wiring, switching methods - Contract changes and propagation: Interface changes, data contracts, field propagation across boundaries - Verification requirements: Verification methods, test boundaries, integration verification points - Prerequisite work: Migration steps, security measures, environment setup - Design Doc: [path] - UI Spec: [path] (if exists) - Verify generatedFiles.integration is a valid path (when not null) and the file exists - Verify generatedFiles.e2e is a valid path (when not null) and the file exists - When generatedFiles.e2e is null, verify e2eAbsenceReason is present — this is intentional absence, not an error - Integration test file: [path] (create and execute simultaneously with each phase implementation) - E2E test file: [path] or null (execute only in final phase, when provided) - E2E absence reason: [reason] (when E2E is null — pass this so work-planner can skip E2E Gap Check for intentional absence)

  1. ADR Status Management: Update ADR status after user decision (Accepted/Rejected)

Important Constraints

  • Quality check is mandatory: quality-fixer approval needed before commit
  • Structured response mandatory: Information transmission between subagents in 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: Resolve subagent conflicts per Decision precedence (see Delegation Boundary section)

References

  • references/monorepo-flow.md: Fullstack (monorepo) orchestration flow

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.27%
按下载量换算95

Claude

31.33%
按下载量换算87

Cursor

21.58%
按下载量换算60

Gemini CLI

9.6%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

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

来源信息

继续浏览同类 Skills