Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

subagent-coordination子 Agent 协调

Agent Skill

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

总安装

605

周安装

26

GitHub Stars

公开资料未说明

下载量

212
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add outfitter-dev/agents --skill "subagent-coordination"

简介

subagent-coordination 用于发现并安装 AI 代理技能,增强多智能体协作能力。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中需要动态扩展功能时使用。
  • 通过 npx 命令添加指定技能路径即可完成集成,无需重启宿主程序。
  • 注意部分技能可能存在资源竞争风险,建议测试后再投入生产环境。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Subagent Coordination

Orchestrate baselayer subagents by matching tasks to the right agent + skill combinations.

Orchestration Planning

For complex multi-agent tasks, start with the Plan subagent to research and design the orchestration strategy before execution.

Complex task arrives
    │
    ├─► Plan subagent (research phase)
    │   └─► Explore codebase, gather context
    │   └─► Identify which agents and skills needed
    │   └─► Design execution sequence (sequential, parallel, or hybrid)
    │   └─► Return orchestration plan
    │
    └─► Execute plan (dispatch agents per plan)

Plan subagent benefits:

  • Runs in isolated context — doesn't consume main conversation tokens
  • Can read many files without bloating orchestrator context
  • Returns concise plan for execution

When to use Plan subagent:

  • Task touches multiple domains (auth + performance + testing)
  • Unknown codebase area — needs exploration first
  • Sequence of agents matters (dependencies between steps)
  • High-stakes changes requiring careful coordination

Context Management

For long-running orchestration, load the context-management skill. It teaches:

  • Using TodoWrite as survivable state (persists across compaction)
  • Delegating to subagents to preserve main context
  • Pre-compaction checklists to capture progress
  • Cross-session patterns for multi-day work

Key principle: Main conversation context is precious. Delegate exploration and research to subagents — only their summaries return, keeping main context lean.

Roles and Agents

Coordination uses roles (what function is needed) mapped to agents (who fulfills it). This allows substitution when better-suited agents are available.

Baselayer Agents

RoleAgentPurpose
codingsenior-devBuild, implement, fix, refactor
reviewingrangerEvaluate code, PRs, architecture, security
researchanalystInvestigate, research, explore
debuggingdebuggerDiagnose issues, trace problems
testingtesterValidate, prove, verify behavior
challengingskepticChallenge complexity, question assumptions
specialistspecialistDomain expertise (CI/CD, design, accessibility, etc.)
patternspattern-analyzerExtract reusable patterns from work

Other Available Agents

Additional agents may be available in your environment (user-defined, plugin-provided, or built-in). When dispatching:

  1. Check available agents for best fit to the role
  2. Prefer specialized agents over generalists when they match the task
  3. Fall back to baselayer agents when no better option exists

Examples of role substitution:

  • codingsenior-engineer, developer, senior-dev
  • reviewingsecurity-auditor, code-reviewer, ranger
  • researchresearch-engineer, docs-librarian, analyst
  • specialistcicd-expert, design-agent, accessibility-auditor, bun-expert

Task Routing

Route by role, then select the best available agent for that role:

User request arrives
    │
    ├─► "build/implement/fix/refactor" ──► coding role
    │
    ├─► "review/critique/audit" ──► reviewing role
    │
    ├─► "investigate/research/explore" ──► research role
    │
    ├─► "debug/diagnose/trace" ──► debugging role
    │
    ├─► "test/validate/prove" ──► testing role
    │
    ├─► "simplify/challenge/is this overkill" ──► challenging role
    │
    ├─► "deploy/configure/CI/design/a11y" ──► specialist role
    │
    └─► "capture this workflow/make reusable" ──► patterns role

Workflow Patterns

Sequential Handoff

One agent completes, passes to next:

research (investigate) → coding (implement) → reviewing (verify) → testing (validate)

Use when: Clear phases, each requires different expertise.

Parallel Execution

Multiple agents work simultaneously using run_in_background: true:

┌─► reviewing (code quality)
│
task ──┼─► research (impact analysis)
│
└─► testing (regression tests)

Use when: Independent concerns, time-sensitive, comprehensive coverage needed.

Challenge Loop

Build → challenge → refine:

coding (propose) ←→ challenging (evaluate) → coding (refine)

Use when: Complex architecture, preventing over-engineering, high-stakes decisions.

Investigation Chain

Narrow down, then fix:

research (scope) → debugging (root cause) → coding (fix) → testing (verify)

Use when: Bug reports, production issues, unclear symptoms.

Role + Skill Combinations

Coding Role

TaskSkills
New featuresoftware-engineering, test-driven-development
Bug fixdebugging-and-diagnosis → software-engineering
Refactorsoftware-engineering + complexity-analysis
API endpointhono-dev, software-engineering
React componentreact-dev, software-engineering
AI featureai-sdk, software-engineering

Reviewing Role

TaskSkills
PR reviewcode-review
Architecture reviewsoftware-architecture
Performance auditperformance-engineering
Security auditsecurity-engineering
Pre-merge checkcode-review + scenario-testing

Research Role

TaskSkills
Codebase explorationcodebase-analysis
Research questionresearch-and-report
Unclear requirementspathfinding
Status reportstatus-reporting, report-findings

Testing Role

TaskSkills
Feature validationscenario-testing
TDD implementationtest-driven-development
Integration testingscenario-testing

Advanced Execution Patterns

Background Execution

Run agents asynchronously for parallel work:

{
  "description": "Security review",
  "prompt": "Review auth module for vulnerabilities",
  "subagent_type": "ranger",
  "run_in_background": true
}

Retrieve results with TaskOutput:

{
  "task_id": "agent-abc123",
  "block": true
}

Chaining Subagents

Sequence agents for complex workflows — each agent's output informs the next:

research agent → "Found 3 auth patterns in use"
    ↓
coding agent → "Implementing refresh token flow using pattern A"
    ↓
reviewing agent → "Verified implementation, found 1 issue"
    ↓
coding agent → "Fixed issue, ready for merge"

Pass context explicitly between agents via prompt.

Resumable Sessions

Continue long-running work across invocations:

{
  "description": "Continue security analysis",
  "prompt": "Now examine session management",
  "subagent_type": "ranger",
  "resume": "agent-abc123"
}

Agent preserves full context from previous execution.

Use cases:

  • Multi-phase research spanning topics
  • Iterative refinement without re-explaining context
  • Long debugging sessions with incremental discoveries

Model Selection

Override model for specific needs:

{
  "subagent_type": "analyst",
  "model": "haiku"  // Fast, cheap for exploration
}
  • haiku: Fast exploration, simple queries
  • sonnet: Balanced reasoning (default)
  • opus: Complex analysis, nuanced judgment

Coordination Rules

  1. Single owner: One role owns each task phase
  2. Clear handoffs: Explicit deliverables between agents
  3. Skill loading: Agent loads only needed skills
  4. User prefs first: Check CLAUDE.md before applying defaults
  5. Minimal agents: Don't parallelize what can be sequential

Decision Framework

When agents face implementation choices:

  1. Favor existing patterns — Match what's already in the codebase
  2. Prefer simplicity — Cleverness is a liability; simple is maintainable
  3. Optimize for maintainability — Next developer (or agent) must understand it
  4. Consider backward compatibility — Breaking changes require explicit approval
  5. Document trade-offs — When choosing between options, record why

These principles apply across all roles. Agents should surface decisions to the orchestrator when trade-offs are significant.

Communication Style

Orchestrators and agents should:

  • Report progress at each major step (don't go silent)
  • Flag blockers immediately — don't spin on unsolvable problems
  • Provide clear summaries of delegated work (what was done, what remains)
  • Include file paths and line numbers when referencing code

Progress format:

░░░░░░░░░░ [1/5] research: Exploring auth patterns
▓▓▓▓░░░░░░ [2/5] coding: Implementing refresh token flow

When to Escalate

  • Blocked: Agent can't proceed → route to research role
  • Conflicting findings: Multiple agents disagree → surface to user
  • Scope creep: Task expands beyond role's domain → re-route
  • Missing context: Not enough info → research role with pathfinding skill

Anti-Patterns

  • Running all agents on every task (wasteful)
  • Skipping reviewing role for "small changes" (risk)
  • Coding role debugging without debugging skills (inefficient)
  • Parallel agents with dependencies (race conditions)
  • Not challenging complex proposals (over-engineering)

Quick Reference

"I need to build X" → coding role + TDD skills

"Review this PR" → reviewing role + code-review

"Why is this broken?" → debugging role + debugging-and-diagnosis

"Is this approach overkill?" → challenging role + complexity-analysis

"Prove this works" → testing role + scenario-testing

"What's the codebase doing?" → research role + codebase-analysis

"Deploy to production" → specialist role + domain skills

"Make this workflow reusable" → patterns role + patternify

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

Claude Code

32.05%
按下载量换算68

windsurf

22.73%
按下载量换算48

OpenCode

17.02%
按下载量换算36

Cursor

11.7%
按下载量换算25

Codex

8.58%
按下载量换算18

Antigravity

3.46%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills