/self-evolving-workflow:ew-odyssey <intent> --mode debug|improve|planex|review|security|defensive|ui|arch [--visual] [-y] [-c]from self-evolving-workflow
Multi-mode iterative campaign for debugging, improving, reviewing, securing, and architecting code. Shares a discovery→audit→fix→verify backbone across eight modes with mode-specific workflows.
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, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
For Evolve Session/Run dispatch, decisions, and recovery, inspect evolve skill workflows show session-run (repo source: skills/ew-orchestrate/references/orchestrator-run-loop.md).
<mode_dispatch>
Mode selection precedence: explicit --mode <name> > intent keyword auto-detection (case-insensitive, whole-word boundary match \b...\b for ASCII tokens and exact phrase match for CJK tokens, evaluated in two passes by table row order top-to-bottom: Pass 1 multi-word / domain phrases — longest match wins on tie, then row order; Pass 2 single-word keywords in row order, with generic error checked only as lowest-priority fallback for debug after all other modes) > structured prompt (Normal) / E000 (-y).
| Keywords in intent | Mode | Discovery / Audit | Fix → Verify |
|---|---|---|---|
| defensive programming, defensive code, exception swallowing, silent failure, fallback risk, default risk, error suppression, 防御性编程, 防御性代码, 异常吞噬, 兜底风险 | defensive | ANCHOR, SLICE / SCAN (8 patterns) + PROPAGATE | (read-only) |
| security audit, OWASP, vulnerability, CVE, secrets scan, STRIDE, threat model, supply chain | security | RECON / SCAN (OWASP+deps+secrets+CI+STRIDE+git) | (read-only) |
| ui, visual, layout, style, component, page, responsive, a11y, design system, design tokens | ui | SURVEY / AUDIT (6 dims) + DIVERGE | FIX → VERIFY |
| architecture, arch, deepen, deep module, shallow module, seam, coupling, dependency cycle, boundary guardrail, module interface, 架构, 深模块, 浅模块, 解耦 | arch | SURVEY (hotspots) / AUDIT (seams) + DESIGN | DEEPEN → VERIFY |
| requirement, implement, build, add feature, deliver feature, user story | planex | — / PLAN + EXECUTE | VERIFY ↔ FIX |
debug, bug, crash, broken, fails, regression, race, leak, "why does", root cause, runtime error (fallback: bare error) | debug | ARCHAEOLOGY, EXPLORE / DIAGNOSE | FIX → CONFIRM (A_ESCALATE_DIAGNOSIS) |
| improve, optimize, performance, refactor quality, reliability, observability | improve | SURVEY / AUDIT (6 dims) + DIAGNOSE | FIX → VERIFY (A_ESCALATE_DIAGNOSIS) |
| code review, review, audit, code check, inspect changes, "look over", zero-residual | review | ARCHAEOLOGY, EXPLORE / REVIEW (4 dims) | FIX → CONFIRM |
(CONFIRM and VERIFY are synonymous post-fix gates. All modes share S_GENERALIZE → S_DISCOVER → S_RECORD → END in shared base §Shared Back-Half.)
ew-odyssey-<mode> + --arg), dispatch evolve run create, and read the selected mode's prepare/odyssey-<mode>.md, odyssey-<mode>.md, shared base, and runtime adapters.ew-odyssey-<mode> command from the Resume Packet (evolve run get), verify skill_ref / required_links, and continue from outputs/session.json (--mode mismatch with -c fails with E003; no prior session starts fresh).</mode_dispatch>
$ARGUMENTSUniversal flags: --mode <name> | --visual (generate a self-contained HTML visual review / before-after architecture or UI comparison report under {run_dir}/outputs/visual-report.html or OS temp per evolve skill workflows show visual-report without touching repo source files) | --skip-fix (skips S_FIX loop in mutable audit/diagnose modes and planex, leaving EXECUTE+VERIFY in planex; combined with --skip-verify in planex, runs PLAN only; rejected/ignored in read-only security/defensive) | --skip-generalize | -y (skip confirmation prompts, log deferred; never bypasses E000, INTAKE blockers, or escalation — i.e., reaching hard fix/iteration/stall caps, 3-strike unresolved diagnosis, or sacred-criteria/cross-module conflicts; under -y, escalations exit cleanly to S_RECORD as INCONCLUSIVE/ESCALATED/PARTIAL rather than continuing auto-fixes or auto-accepting unmet criteria) | -c (resume latest unfinished same-mode Session via evolve session list -> evolve session get -> evolve session resume-view -> evolve run get) | --heartbeat
Mode-scoped flags (inapplicable flag emits W008 and is ignored):
| Flag | Modes | Description | Default |
|---|---|---|---|
--template <name> | debug, planex | Predefined investigation or criteria template | — |
--dimensions <list> | improve, review, ui | Audit dimension subset | all |
--fix-threshold <sev> | improve, review, ui | Severity cutoff (critical|high|medium|low|all) | all |
--tier quick|standard|deep | security, defensive | Audit depth tier | standard |
--sink-depth <list> | defensive | Sink layer focus (1|2|3|all) | all |
--max-iterations N | planex | Max verify-fix cycles before escalation | 3 |
--method agent|cli|auto | planex | Task execution method | auto |
--executor <tool> | planex | Explicit CLI executor (codex|agy|claude) | first available |
--skip-verify | planex | Skip post-execution validation (A_EXECUTE Step 5) & S_VERIFY (with --skip-fix, runs PLAN only) | false |
Run outputs ({run_dir}/outputs/ only): session.json (always required: true) | evidence.ndjson | understanding.md | explore.json (debug/review/arch) | anchors.json (defensive). Slot required flags and _meta fields follow each mode's references/prepare/odyssey-<mode>.md contract.produces and runtime adapters §4 (evidence.ndjson and understanding.md are required: true in debug/security/defensive, and produced during full campaigns while required: false in improve/planex/review/ui/arch). Never write session artifacts outside {run_dir}/outputs/. Keep Run lifecycle state in the Evolve Run store and seal via evolve run complete.
Commit convention (mutable modes only, when workspace source files change in FIX / DEEPEN / EXECUTE): "odyssey-{mode}({slug}): {STATE} — {summary}" (e.g., FIX, DEEPEN, EXECUTE; outputs/* seal via Evolve Run store, never committed to git).
session.json with mode baseline/criteria, phase_goals[], understanding.md §1). Blockers: E000 / E001 / E002.syntax/semantic/structural) attempted and logged in generalization_stats.by_layer unless --skip-generalize.remaining_actionable == 0 or cross_phase_loops >= max_loops with per-item reasons).
<error_codes>
Mode warnings (W001-W007) are owned per mode; shared entry/base errors:
| Code | Condition | Recovery |
|---|---|---|
E000 | Mode unresolved (-y, ambiguous intent, no --mode) | Pass --mode <name> |
E001 | Missing target, requirement (planex), or issue (debug) | Supply target/intent or -c |
E002 | Target path, entry points, or required domain anchor not found in scope | Check target path/scope |
E003 | -c mode mismatch with resumed Session | Match --mode or omit -c |
E004 | Selected mode workflow/prepare document unreadable | Reinstall Skill package or restore Run commit |
W008 | Flag inapplicable to active mode | Warn and ignore flag |
| </error_codes> |
<success_criteria>
--skip-fix or read-only) verified fixes completed cleanlyGENERALIZE + per-item DISCOVER triage completed (unless --skip-generalize)phase_goals[] audited, session.json set to END, sealed via evolve run complete, and reusable findings staged per evolve skill workflows show ew-knowledge
</success_criteria>references/audit-artifacts.md (opens in a new tab)references/odyssey-arch.md (opens in a new tab)references/odyssey-base.md (opens in a new tab)references/odyssey-debug.md (opens in a new tab)references/odyssey-defensive.md (opens in a new tab)references/odyssey-improve.md (opens in a new tab)references/odyssey-planex.md (opens in a new tab)references/odyssey-review.md (opens in a new tab)references/odyssey-security.md (opens in a new tab)references/odyssey-ui.md (opens in a new tab)references/prepare/odyssey-arch.md (opens in a new tab)references/prepare/odyssey-debug.md (opens in a new tab)references/prepare/odyssey-defensive.md (opens in a new tab)references/prepare/odyssey-improve.md (opens in a new tab)references/prepare/odyssey-planex.md (opens in a new tab)references/prepare/odyssey-review.md (opens in a new tab)references/prepare/odyssey-security.md (opens in a new tab)references/prepare/odyssey-ui.md (opens in a new tab)references/runtime-adapters.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub catlog22/self-evolving-workflow --plugin self-evolving-workflow9 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-orchestrateRoute, initialize, brainstorm, grill, blueprint, roadmap, analyze, plan, execute, verify, test, debug, review, retrospect and recover work over one canonical Session/Run chain/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", "蚁群".Other plugins' skills for the same job