Help us improve
Share bugs, ideas, or general feedback.
Reads plan documents and generates /orchestrate custom prompts per step from the ECC agent catalogue.
npx claudepluginhub affaan-m/ecc --plugin eccHow this skill is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:plan-orchestrateThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Bridge a plan document to `/orchestrate custom` by emitting one ready-to-paste invocation per step. The skill is generative only — it never executes `/orchestrate`. The user pastes each line when ready.
Orchestrates an adversarial plan-implement-review pipeline by spawning agents with separate context windows. Use after intake skills produce a starting document.
Plans complex multi-step tasks by parsing intent, assessing complexity, selecting agents, and generating structured execution plans. Replaces plan mode for orchestration workflows.
Orchestrates plan-driven builds by reading plan.json or requirements.md and dispatching workers. Use when executing /execute or running a blueprint plan.
Share bugs, ideas, or general feedback.
Bridge a plan document to /orchestrate custom by emitting one ready-to-paste invocation per step. The skill is generative only — it never executes /orchestrate. The user pastes each line when ready.
/orchestrate.Skip when:
/orchestrate custom directly.<plan-doc-path> [--lang=python|typescript|go|rust|cpp|java|kotlin|flutter|auto] [--scope=all|step:<n>|range:<a>-<b>] [--dry-run]
<plan-doc-path> — required; relative or absolute path (@docs/... accepted).--lang — reviewer language variant; defaults to auto (detected from project).--scope — limits emitted steps; defaults to all.--dry-run — print decomposition + chain rationale only; do not emit final prompts./orchestrate shape (do not deviate){ORCH_CMD} custom "<agent1>,<agent2>,...,<agentN>" "<task description>"
Where {ORCH_CMD} is determined in Phase 0 (see below). The command string in the emitted output always uses one concrete form — never both, never a placeholder.
custom is a sequential chain; each agent's HANDOFF feeds the next.--mode / --gate / --agents=... flags exist — never invent them.\".Two install forms determine the prefix on both the slash command and every agent name. The two MUST stay in sync — one form per output, never mixed:
Let <claude-home> denote the Claude Code home directory: ~/.claude on macOS/Linux, %USERPROFILE%\.claude on Windows. Resolve it the way the host platform resolves the user home directory (do not hardcode ~).
| Form | Detection | {ORCH_CMD} | Agent name format |
|---|---|---|---|
| Plugin install (1.9.0+) | <claude-home>/plugins/marketplaces/everything-claude-code/ exists | /everything-claude-code:orchestrate | everything-claude-code:<name> |
| Legacy bare install | Above absent; agent files under <claude-home>/agents/ | /orchestrate | <name> |
Why this matters: under the plugin install, agents register as everything-claude-code:tdd-guide. Bare names force fuzzy matching, which fails intermittently under parallel calls. Under legacy, the prefixed forms are not registered and fail outright.
General:
planner — requirement restatement, risk decomposition, step planningarchitect — architecture, system design, refactor proposalstdd-guide — write tests → implement → 80%+ coveragecode-reviewer — generic code reviewsecurity-reviewer — security audit, OWASP, secret leakagerefactor-cleaner — dead code, duplicates, knip-class cleanupdoc-updater — documentation, codemap, READMEdocs-lookup — third-party library API lookups (Context7)e2e-runner — end-to-end test orchestrationdatabase-reviewer — PostgreSQL schema, migration, performanceharness-optimizer — local agent harness configurationloop-operator — long-running autonomous loopschief-of-staff — multi-channel triage (rarely a fit for plan steps)Build error resolvers:
build-error-resolver (generic) / cpp-build-resolver / go-build-resolver / java-build-resolver / kotlin-build-resolver / rust-build-resolver / pytorch-build-resolverCode reviewers:
python-reviewer / typescript-reviewer / go-reviewer / rust-reviewer / cpp-reviewer / java-reviewer / kotlin-reviewer / flutter-reviewerA misspelled agent name fails /orchestrate. Cross-check against this list before emitting.
Read <plan-doc-path>. If missing or empty, report and stop.
Detect ECC install form once and freeze it into ECC_MODE. Algorithm (run in order, stop at the first match):
<claude-home>/plugins/marketplaces/everything-claude-code/ exists → ECC_MODE=plugin.<claude-home>/agents/ exists and contains at least one ECC agent file (e.g. tdd-guide.md, code-reviewer.md) → ECC_MODE=legacy.ECC_MODE=legacy and emit a one-line warning at the top of the output: > Warning: could not detect ECC install; defaulting to legacy form. If you use the plugin install, edit the prefixes manually.plugin wins — the plugin namespace is the only one that resolves agent names without fuzzy matching.From this point on, every emitted line uses the matching prefix on both the slash command and every agent name. Never emit both forms in the same output.
Resolve --lang. When auto, run a polyglot-aware detection:
pyproject.toml / uv.lock / requirements.txt → python; package.json → typescript; go.mod → go; Cargo.toml → rust; CMakeLists.txt or top-level *.cpp → cpp; pom.xml / build.gradle (Java) → java; build.gradle.kts or top-level Kotlin → kotlin; pubspec.yaml → flutter.git ls-files, excluding vendor/, node_modules/, dist/, build/, .venv/, generated files, and obvious test fixtures). On a tie or when no language exceeds 60% of source files, set lang=unknown.lang=unknown.lang=unknown is a sentinel — it is not an agent name. Phase 2 rules 4 and 5 turn it into code-reviewer / build-error-resolver at chain composition time.Detect a PyTorch sub-profile: when lang=python and any of pyproject.toml / requirements.txt / uv.lock declares a dependency on torch, set pytorch=true. This only affects build chain selection (Phase 2 rule below); the reviewer remains python-reviewer.
Normalize any agent names declared in the plan: if the plan text references agents by their plugin-prefixed form (e.g. everything-claude-code:tdd-guide), strip the prefix to get the bare catalogue name before validating or composing chains. Re-prefixing happens only at output time per ECC_MODE (Phase 4). Never let a pre-prefixed name flow into chain composition — it would double-prefix in plugin mode.
Identify "step units" in priority order:
## Step N / ### Phase N / ## N. ... / top-level ordered list.----separated blocks with verb-led headings.Per step extract id (1-based), title (≤ 80 chars), intent (1–3 sentences), tags.
Tag by intent (multi-tag allowed; chain built from primary + stacked secondaries):
Trigger words below are matched case-insensitively. Multilingual plans are supported by matching the word stems in any language as long as the meaning aligns with the listed English trigger words.
| Tag | Trigger words | Default chain |
|---|---|---|
design | architecture, design, choose, evaluate, RFC | planner,architect |
plan | plan, breakdown, milestone | planner |
impl | implement, build, add, create, port | tdd-guide,<lang>-reviewer |
test | test, coverage, e2e, integration | tdd-guide,e2e-runner |
refactor | refactor, cleanup, dedupe, split | architect,refactor-cleaner,<lang>-reviewer |
migration | migrate, upgrade, rewrite, port | architect,tdd-guide,<lang>-reviewer |
db | schema, migration, index, SQL, Postgres, alembic, sqlmodel | database-reviewer,<lang>-reviewer |
security | encrypt, auth, secret, OWASP, PII | security-reviewer,<lang>-reviewer |
build | build, compile, lint failure, CI | <lang>-build-resolver (falls back to build-error-resolver) |
docs | docs, readme, codemap, changelog | doc-updater |
lookup | lookup, reference, API usage | docs-lookup |
review | review, audit, verify | <lang>-reviewer,code-reviewer |
loop | loop, autonomous, watchdog | loop-operator |
Chain composition rules:
impl + security → tdd-guide,<lang>-reviewer,security-reviewer.impl + db → tdd-guide,database-reviewer,<lang>-reviewer.review + lang=unknown would yield code-reviewer,code-reviewer after rule 5; deduplication collapses it to code-reviewer.<lang>-reviewer resolves to code-reviewer when lang=unknown.<lang>-build-resolver resolves to build-error-resolver when lang=unknown. Special case: if Phase 0 set pytorch=true, use pytorch-build-resolver for build chains regardless of <lang>. There is no python-build-resolver; --lang=python without pytorch=true resolves to build-error-resolver.code-reviewer and write no tag matched; default review-only chain under "Chain rationale".lookup and docs first).planner and architect in an impl chain (token waste). Pair them only on design steps.impl, refactor, or migration end with a reviewer-class agent — any of <lang>-reviewer, code-reviewer, security-reviewer, or database-reviewer. The most domain-specific reviewer wins the tail position (e.g. rule 2's impl+security ends with security-reviewer; rule 3's impl+db ends with <lang>-reviewer because database-reviewer already gates the migration earlier in the chain). test and build steps are gated by their own validators (e2e-runner and the build resolver respectively) and do not require an additional reviewer.Each emitted <task description> must:
[Plan: <path>#step-<id>].Out of scope: ...) only if the plan declares one for this step. Inherit verbatim. If the plan has no out-of-scope statement, omit the clause entirely — do not invent one." escaped as \"; no literal newlines.Emit Markdown using the form determined by ECC_MODE. The output uses one form throughout — every {ORCH_CMD} and every agent name is rendered with the matching prefix from Phase 0. Do not emit both forms; do not include "this is plugin form" / "strip the prefix" instructions in the rendered output.
Concrete rendering rules:
{ORCH_CMD} = /everything-claude-code:orchestrate under plugin, /orchestrate under legacy.{AGENT(name)} = everything-claude-code:<name> under plugin, <name> under legacy.{AGENT(name)} rendering.# plugin form or # legacy form comments — the form is implicit and uniform across the whole output.Output structure:
# Plan-Orchestrate Result
**Plan**: `<path>`
**Lang**: `<detected-or-given>`
**ECC mode**: `<plugin | legacy>`
**Steps**: <N>
**Scope**: <all | step:n | range:a-b>
## Steps overview
| # | Title | Tags | Chain |
|---|---|---|---|
| 1 | ... | impl, db | `{AGENT(tdd-guide)},{AGENT(database-reviewer)},{AGENT(python-reviewer)}` |
| ... | | | |
---
## Step 1 — <title>
**Intent**: <1–3 sentences>
**Tags**: <a, b>
**Chain rationale**: <why this chain; which agent closes the loop>
```bash
{ORCH_CMD} custom "{AGENT(tdd-guide)},{AGENT(database-reviewer)},{AGENT(python-reviewer)}" "[Plan: docs/foo.md#step-1] <compressed task description>; Acceptance: <1–3 items>; Out of scope: <…>"
```
The
{ORCH_CMD}and{AGENT(...)}notation above describes the substitution this skill performs at runtime. The actual emitted Markdown contains the resolved strings, never the placeholders.
Append a final "Batch execution" block aggregating every step's command in order so the user can paste them all at once. Skip the Batch block in overview-only mode (see "Large plan" edge case): when only the overview table is being emitted, there are no per-step commands to aggregate.
everything-claude-code: prefix that appeared in the plan; see Phase 0 step 5).{ORCH_CMD} and every resolved {AGENT(...)} use the same form (plugin or legacy) — never mixed in one output.# plugin form / # legacy form annotations and no "strip the prefix" instructions remain in the rendered output.--mode / --gate / --agents=... fields." escaped.[Plan: <path>#step-<id>] and includes Acceptance (1–3 items). The Out of scope: clause is present only when inherited from the plan.impl/refactor/migration end with a reviewer-class agent (<lang>-reviewer, code-reviewer, security-reviewer, or database-reviewer). test and build are exempt — see Phase 2 rule 10.code-reviewer with the rationale no tag matched; default review-only chain.--scope.--scope (full plan when --scope=all; one block for step:n; range size for range:a-b). In overview-only mode, no per-step blocks and no Batch block are emitted.--scope before re-running for details. In this mode, skip per-step detail blocks and skip the Batch execution block.everything-claude-code: prefix to get the bare catalogue name (Phase 0 step 5), then validate against the catalogue. Replace invalid agents and explain under "Chain rationale". The bare name is re-prefixed at output time per ECC_MODE.--lang=auto cannot pick a winner: set lang=unknown; reviewer resolves to code-reviewer and build resolver to build-error-resolver. Mention the fallback under "Chain rationale".Input:
plan-orchestrate @docs/plan/example-feature.md --lang=python
Excerpt of expected output:
## Step 2 — Encrypt sensitive UserProfile fields
**Intent**: Introduce an `EncryptedString` SQLAlchemy type and AES-GCM encrypt `birth_datetime` / `location` before persistence; load the key from an environment variable.
**Tags**: impl, security, db
**Chain rationale**: Security-sensitive write path, so `security-reviewer` closes the chain; `database-reviewer` validates the alembic migration; `python-reviewer` covers typing and PEP 8.
```bash
/everything-claude-code:orchestrate custom "everything-claude-code:tdd-guide,everything-claude-code:database-reviewer,everything-claude-code:python-reviewer,everything-claude-code:security-reviewer" "[Plan: docs/plan/example-feature.md#step-2] Implement EncryptedString SQLAlchemy type and migrate UserProfile.birth_datetime/location columns; key from ENV APP_DB_KEY; Acceptance: encrypt/decrypt roundtrip tests pass; alembic upgrade/downgrade clean on empty DB; no plaintext in DB after migrate; Out of scope: cross-tenant profile sharing logic"
```
If ECC_MODE=legacy were detected, the same step would be emitted as a single uniform command (no plugin-prefixed forms anywhere in the output):
/orchestrate custom "tdd-guide,database-reviewer,python-reviewer,security-reviewer" "[Plan: docs/plan/example-feature.md#step-2] ..."
The two examples above illustrate the two possible outputs for two different environments. A single skill invocation produces only one of them, end to end.
/orchestrate from inside this skill.