AGENT SKILL

orchestrate

Coordinate multiple subagents/worktrees for parallel workstreams. Decomposes larger tasks into independent sub-tasks, dispatches each to a dedicated agent. Use for a multi-agent task or parallel workstreams.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 1
Forks
1

01 前言 Front Matter

name
orchestrate
triggers
[ "orchestrate parallel work", "coordinate subagents", "multi-agent task", "parallel workstreams" ]
description
Coordinate multiple subagents/worktrees for parallel workstreams. Decomposes larger tasks into independent sub-tasks, dispatches each to a dedicated agent. Use for a multi-agent task or parallel workstreams.

02 资源文件 1

03 SKILL.md 正文

Orchestrate

Coordinate multiple subagents/worktrees for parallel workstreams. Decomposes a larger task into independent sub-tasks, dispatches each to a dedicated agent in its own worktree, awaits completion, integrates results.

Purpose

Break large tasks into parallel tracks. Use when a single agent working linearly would be too slow or when domain separation improves clarity (e.g., frontend + backend + infra as separate workstreams).

When to use

  • "Split this full-stack feature across 3 agents: frontend, API, database"
  • "I need 4 concurrent code reviews on different modules"
  • "Deploy 5 microservices in parallel, each with its own setup"

Workflow

  1. Decompose — Parse task, identify independent sub-tasks with clear boundaries.
  2. Spawn agents — Create 1 worktree per sub-task; seed each with context + instructions.
  3. Dispatch — Send each sub-task to a dedicated agent (up to 5 parallel, staggered start to avoid resource contention).
  4. Monitor — Poll each agent for completion; log progress.
  5. Integrate — Merge sub-task results (code, configs, docs) into main branch; resolve conflicts if any.

Example Workflow

User: "Orchestrate: Add OAuth2 to the monorepo (frontend, API, database)"

Decompose:
  - Sub-task 1: Frontend OAuth UI + login flow
  - Sub-task 2: API endpoint + JWT validation
  - Sub-task 3: Database user/session schema

Spawn 3 worktrees, each with dedicated agent:
  - Agent A (worktree-1): frontend-oauth
  - Agent B (worktree-2): api-oauth
  - Agent C (worktree-3): db-oauth

Dispatch: "Implement OAuth login component" → Agent A
          "Add /auth/token endpoint" → Agent B
          "Create user_sessions table" → Agent C

Monitor: Poll every 30s; print status
Integrate: Merge all 3 PRs, run e2e test

Safety Checks

  • Each agent works in isolated worktree (no merge conflicts mid-flight).
  • Central agent monitors and integrates; reports blockers immediately.
  • If any sub-task fails: pause others, diagnose, offer fallback (sequential execution or help-wanted).

References

  • Git worktrees: using-git-worktrees skill
  • Dispatcher: dispatch skill (single-agent routing)
  • Parallel agents: dispatching-parallel-agents pattern

04 同仓库更多 Skills

LucasSantana-Dev
LucasSantana-Dev/forgekit

token-audit

Audit historical Claude Code token usage from JSONL session files — shows total spend, cache hit rates, top costly sessions, weekly trends, and where tokens are going. Run after heavy sessions or weekly to measure optimization impact. Answers how many tokens a session used, how expensive was that session, session cost, and token usage report.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

smart-model-route

Auto-classify prompt complexity via Haiku (with heuristic fallback) and inject model routing hints for Agent tool calls. Wired as a UserPromptSubmit hook — fires on every prompt, routes low tasks to Haiku, standard to Sonnet, complex to Sonnet with thorough reasoning, and critical (security/arch/migrations) to Opus. Handles model selection, for example choose model by task complexity.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

smart-commands

Decision guide for when to proactively use Claude Code slash commands — /think, /model, /compact, /clear. Use when choosing whether to invoke a command before or during a task, or when a complexity-classifier hook has flagged a task as high or critical. Pairs with the complexity-classifier UserPromptSubmit hook. Answers when to compact, should I switch models, and whether to use extended thinking. Use to pick the right /model command and switch model.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

spec-ship

暂无简介

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

spec-new

Create a committed per-feature spec under `docs/specs/YYYY-MM-DD-<slug>/{spec,tasks}.md` with frontmatter (status, created, owner, pr, tags). Promotes an ephemeral `.claude/plans/<name>.md` into a persistent, searchable artifact. Use when starting a feature that's larger than a one-shot PR.

★ 1
LucasSantana-Dev
LucasSantana-Dev/forgekit

roadmap-refresh

Regenerate `docs/roadmap.md` for a repo from all specs under `docs/specs/` + their frontmatter (status, tags, pr). Produces Now/Next/Recently-shipped sections. Run after creating / shipping a spec, or at the start of a new session for orientation.

★ 1