/self-evolving-workflow:ew-orchestrate <intent> [--goal <goal>] [--auto] [--resume <session-id>] [-y] [-c] [--amend]from self-evolving-workflow
Routes user intents to the lightest sufficient task execution path, driving multi-step work through a canonical session chain with planning, execution, verification, and recovery.
Ships in self-evolving-workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
<deferred_reading>
--auto and --goal long-chain stage mapping, decision gates, and retry guards.--amend pending-tail change protocol.evolve CLI dispatch, CLI reads, host mapping, and recovery.evolve agent CLI options, prompt contract, worktree isolation, and retry rules.--visual).ew-companion fast path.<goal_long_chain>
--goal <goal> selects long-chain mode. Read references/auto-policy.md (and references/goal.md when --amend is present) to map <goal> to Session.objective and derive --definition-of-done, boundary_contract, and observable goals persisted on evolve session create (--boundary-contract, --goals, --goal-mode, --auto), binding post-goal-audit before session complete. Child steps under steps/ remain steps of this Session rather than standalone Skill invocations.
</goal_long_chain>
<companion_route>
Inside an Evolve-initialized workspace (or an explicit /ew-orchestrate task), raise the bar before opening a new Session:
END threshold: pure read-only Q&A, status/CLI queries, read-only diagnostics / probe scripts / parameter calculations that do not modify production source or project deliverables, trivial single-turn edits (e.g., 1–2 line config/doc/test tweaks needing no durable Run audit or artifact handoff), and standalone edits in projects that have not adopted Evolve Session/Run orchestration exit via END without opening a Session (record non-obvious lessons directly via evolve kb add --kind episodic).ew-companion threshold & Topic Session reuse: route non-trivial single-concern deliverable/source edits (or explicit /ew-orchestrate requests) that warrant durable Run tracking — when scope is localizable and no multi-phase architecture decomposition, downstream typed artifact handoff (current-plan / current-execution), or formal decision gate (--goal / post-*) is required — to references/companion-route.md (ew-companion on the canonical Session/Run lifecycle), regardless of file count. Check evolve session list --status open first: if an open Session on the same topic/module scope already exists (even if prior steps completed), append a step with evolve session step add (and evolve session amend if needed) rather than opening a duplicate Session. For ongoing multi-turn topic work, seal each turn with evolve run complete and keep the Topic Session open until the topic milestone finishes (closing with evolve session complete at topic wrap-up); simple deliverable fixes skip outputs/companion-log.md and knowledge-reads.json ceremony unless needed. Execute directly with full model capability in the single Run (no ew-analyze/ew-plan ceremony and no default subagent fan-out), escalating in the same Session (run cancel -> session step delete -> session step add for ew-analyze/ew-debug -> ew-plan -> ew-execute -> ew-verify/ew-review) only if unexpected cross-module coupling or root-cause ambiguity emerges.
</companion_route>-y — auto-confirm low-risk classification and proposals; NEVER bypasses high risk, confidence < 60, ambiguity requiring user input, failed gates, or drift escalation (and NEVER authorizes Wiki publication).-c — continue the unique live compatible open Session via evolve session list --status open (if 0 match, run cold-start fallback; if >1 match, ask the user to select).--resume <session-id> — resume exact Session via evolve session get / evolve run get.--auto — sets policy.auto_mode (continuation.authority = automatic) with bounded retries (default --retry-max 3 attached via session step add|replace) and recovery policy (auto-policy.md).--goal <goal> — durable outcome-driven chain (--goal-mode, auto-policy.md); <goal> becomes Session.objective and drives --definition-of-done, --boundary-contract, and --goals JSON.--amend — amend live Session objective/--definition-of-done and pending-tail chain (references/goal.md; Runtime appends CHG-NNN automatically).<state_machine>
S_PARSE:
-> S_AMEND WHEN --amend (follow references/goal.md)
-> S_CONTINUE WHEN --resume <id> OR -c (resolve live Session)
-> S_CLASSIFY WHEN intent present (follow references/ew-orchestrate.md + planning.md)
-> S_FALLBACK OTHERWISE (ask for intent / disambiguation)
# Evaluate S_CLASSIFY guards in exact priority order per references/planning.md:
S_CLASSIFY:
-> END WHEN `status` / `状态` / `dashboard` read-only short-circuit (present status and stop)
-> END WHEN pure read-only Q&A, read-only diagnostics/probes/calculations (zero deliverable mutation), or trivial 1-turn micro-edits needing no durable Run audit
-> S_CONTINUE WHEN `continue` / `next` / `go` / `继续` / `下一步`
-> S_RUN_LOOP WHEN existing compatible open Session found (reuse via `session step add` + `run create` when continuing the same topic)
-> S_FALLBACK WHEN confidence < 60 or target/intent remains ambiguous
-> S_DECOMPOSE -> S_CREATE WHEN --goal/--auto long-chain OR broad/cross-boundary (`>= 3` coupled modules or cross-package interfaces or `>= 2` open scope/constraint/DoD questions) OR explicit multi-phase pipeline requested
-> S_CREATE WHEN explicit typed step/gate requested (e.g. `analyze`/`plan`/`review`/`verify`/`test`/`blueprint`/`brainstorm`/`grill`, bound `current-plan` for `ew-execute`, tracked issue `--gaps` needing DAG, or UI design/polish routing to `ew-impeccable`)
-> S_COMPANION WHEN non-trivial single-concern deliverable/source change or verifiable fix warrants durable Run tracking without typed handoff or decision gate — file count irrelevant (references/companion-route.md)
S_AMEND:
-> S_RUN_LOOP WHEN amendment committed and pending chain valid
-> S_FALLBACK WHEN 0 or >1 open Sessions match, or goals/boundary change requires user decision
-> END WHEN cancelled
S_CONTINUE:
-> S_RECOVER WHEN active Run is blocked/stuck/failed
-> S_RUN_LOOP WHEN unique compatible open Session has next/decide/complete action
-> S_CLASSIFY WHEN 0 open Sessions match (cold-start fallback)
-> S_FALLBACK WHEN >1 open Sessions match (ask user to choose)
S_RECOVER:
-> S_RUN_LOOP WHEN Run transitioned/cancelled/unblocked or escalate resolved
-> END WHEN aborted or escalated awaiting user action
S_CREATE -> S_RUN_LOOP WHEN -y AND risk != high AND confidence >= 60 (else S_CONFIRM)
S_CONFIRM -> S_RUN_LOOP (confirmed) | S_CLASSIFY (revised) | END (cancelled)
S_RUN_LOOP -> END (session complete / closeout via ew-knowledge) | S_RECOVER (Run blocked/failed/retry exhausted/escalated) | S_CONFIRM (high-risk amendment)
S_COMPANION -> END (verified) | S_CLASSIFY (scope expands / self-check fails -> cancel active run if any, `session step delete`, and `session step add` in same Session)
S_FALLBACK -> S_CLASSIFY (intent clarified) | S_CONTINUE (Session selected) | END (cancelled)
</state_machine>
<task_tracking>
Keep any host UI plan mirrored (never authoritative over SQLite Session state): initialize steps after session create, mark in_progress on run create, completed on run complete, and record failure reason on run transition failed. At Run/phase boundaries (never mid-phase), apply the Continue -> /clear -> /handoff -> Subagent -> /compact context hygiene tree in references/orchestrator-run-loop.md.
</task_tracking>
<success_criteria>
ew-orchestrate.md) and Session exists before step execution.run create (or run complete --next), seal via run complete, decide via run decide, and recover via run check / run get / run transition.session step add|update|delete; post-session closeout and Wiki governance hand off to ew-knowledge.
</success_criteria>references/agent-usage.md (opens in a new tab)references/auto-policy.md (opens in a new tab)references/boundary-grill.md (opens in a new tab)references/companion-route.md (opens in a new tab)references/ew-orchestrate.md (opens in a new tab)references/goal.md (opens in a new tab)references/orchestrator-run-loop.md (opens in a new tab)references/planning.md (opens in a new tab)references/visual-report.md (opens in a new tab)steps/ew-analyze/references/issue-gaps-analyze.md (opens in a new tab)steps/ew-analyze/references/prepare.md (opens in a new tab)steps/ew-analyze/references/workflow.md (opens in a new tab)steps/ew-auto-test/references/prepare.md (opens in a new tab)steps/ew-auto-test/references/workflow.md (opens in a new tab)steps/ew-blueprint/references/prepare.md (opens in a new tab)steps/ew-blueprint/references/workflow.md (opens in a new tab)steps/ew-debug/references/prepare.md (opens in a new tab)steps/ew-debug/references/workflow.md (opens in a new tab)steps/ew-execute/references/prepare.md (opens in a new tab)steps/ew-execute/references/workflow.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/ew-impeccableUse when the user wants single-pass frontend design, redesign, shape, critique, audit, polish, simplify, harden, animate, or otherwise improve a frontend interface: websites, landing pages, dashboards, product UI, components, forms, settings, onboarding, empty states, and native iOS or Android screens. Handles UX review, hierarchy, layout, typography, color, motion, UX copy, accessibility, responsive behavior, edge cases, and capturing or documenting design systems (DESIGN.md, tokens). Also for making bland UI bolder, loud UI quieter, live browser iteration on UI elements, or ambitious visual effects. Not for backend-only, non-UI tasks, or multi-round iterative UI audit/fix campaigns (route those to ew-odyssey / ew-odyssey-ui)./ew-knowledgeUnified project knowledge governance — Knowledge Gate retrieval, working memory sync, Session closeout status and recovery, candidate governance, feedback, diagnostics, and migration./ew-odysseyLong-running iterative cycle — one entry, eight modes (debug|improve|planex|review|security|defensive|ui|arch). Shared archaeology/audit → fix → verify → generalize → discover → persist skeleton with mode-specific dimensions. User-invoked multi-iteration campaign entry; single-pass review/debug or bounded orchestration chains route via /ew-orchestrate and single-pass UI work via /ew-impeccable/ew-prototypeBuild a throwaway prototype to settle an open design question before writing production code. Use when sanity-checking whether a logic/state model feels right, or exploring structurally different UI variants./ew-skill-designAuthor, package, consolidate, or validate an Evolve Skill package (`skills/<id>/SKILL.md` or `skills/ew-orchestrate/steps/<id>/SKILL.md`)./ew-swarmSwarm intelligence team skill — ACO-driven multi-agent exploration with hybrid LLM coordinator and Python optimization controller. Coordinator translates the task into swarm-config.json and runs K iterations of N parallel ants guided by pheromone state. Triggers on "ew-swarm", "team swarm", "swarm intelligence", "蚁群".npx claudepluginhub catlog22/self-evolving-workflow --plugin self-evolving-workflowOther plugins' skills for the same job