skills/classify/SKILL.md
v11 LLM-based work-shape classifier. Replaces the regex archetype detector with the model's own reasoning. Reads the user's prompt, picks the right archetype(s) from the catalog, identifies signals (blast_radius, novelty, reversibility, etc.), and persists to SessionState so subsequent turns steer correctly. Use when: the prompt_submit hook emitted a `<wg classify-due />` directive, OR explicitly invoked at session start, OR when re-classifying after the user changes scope mid-session.
npx skillsauth add mikeparcewski/wicked-garden wicked-garden:classifyInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are classifying a prompt into a v11 work-shape archetype. Your output drives downstream archetype routing for the rest of the session (until the user changes scope or invokes this skill again).
The v11 hook auto-classifier is a regex + boolean-signal heuristic. It works for prompts whose vocabulary matches the catalog phrase lists, but it misses paraphrases and underuses signals. You are a better classifier than regex. This skill is the path to use the model's full reasoning on the classification step, then persist the result so the rest of the session benefits without re-running classification on every turn.
.claude-plugin/archetypes.json defines 9 archetypes. Read it once at the
start of this skill. Summary table:
| Archetype | Phases | Use when | |-----------|-----------------------------------------------|---------------------------------------------------| | triage | classify | prompt is genuinely ambiguous; ask for clarification | | explore | frame → diverge → converge | open problem space, multiple paths, brainstorm | | specify | elicit → structure → validate | requirements / acceptance criteria need writing | | decide | brief → options → score → record | 2+ viable options, need an ADR | | ship | canary → ramp → full → soak | already-built change being rolled out | | review | scope → assess → findings → remediate-or-accept | independent assessment of an artifact | | incident | triage → investigate → mitigate → resolve → followup | live production failure | | build | plan → implement → test → review | implement a feature or fix (most common) | | migrate | plan → expand → backfill → cutover → contract | shape change with rollback proof |
What is the user actually asking for? Restate in one sentence in your own words. If you can't, the prompt is genuinely ambiguous → triage.
Archetypes are NOT mutually exclusive. Pick a SET. Common combinations:
build + migratereview + shipdecide (and
possibly build if they want you to also implement it)Score each match between 0.0 and 1.0. Use these calibration anchors:
If nothing scores ≥ 0.5, return triage only — that's the signal to ask
for clarification before doing work.
Boolean flags that downstream archetypes use to scale rigor. Mark TRUE only when the prompt clearly implies it:
blast_radius_high — change affects production traffic / many users / many systems.novelty_high — pattern not yet in this codebase.state_complexity_high — touches data shape, migrations, persistent state.reversibility_low — undoing is expensive (data migrations, destructive ops).reversibility_medium_or_low — undoing is non-trivial (config changes, breaking APIs).production_impact — production users / systems affected right now.compliance_scope — GDPR / SOC2 / HIPAA / PCI surface.ambiguity_high — multiple plausible reads.spec_ambiguity_high — success criteria are fuzzy.scope_unclear — boundary of work is undefined.multiple_viable_options — 2+ paths with no obvious winner.post_build — change is already implemented; this is about deployment.code_change — implementation work involved.independent_assessment_needed — someone else's work needs review.Default any flag you didn't explicitly mark to FALSE. Do not over-tag.
Intent is coarser than archetype — used by the hook to gate directive emission. One of:
simple-edit — typo, comment, formatting, single-line fix. Hook stays silent.feature — most non-trivial work (default for build/migrate/ship).rigor — high stakes (compliance, security, blast_radius_high).research — exploratory (explore, decide).Emit a JSON object with the four keys above and pipe to the persist script. Use this exact shape — extras get dropped:
echo '{
"intent": "feature",
"archetypes": [
{"name": "build", "score": 0.85, "evidence": ["implement keyword + code_change signal"]},
{"name": "migrate", "score": 0.65, "evidence": ["schema change + state_complexity signal"]}
],
"signals": {
"code_change": true,
"state_complexity_high": true,
"reversibility_low": true
}
}' | sh "${CLAUDE_PLUGIN_ROOT}/scripts/_python.sh" \
"${CLAUDE_PLUGIN_ROOT}/scripts/classify/persist.py"
The script normalises and writes to SessionState. Confirm the response
shows "ok": true, then return control.
After persisting, look at the top archetype's playbook
(skills/archetype/refs/{name}.md) and start running it. Do not re-run
classification mid-session unless the user explicitly changes scope.
/wicked-garden:archetype:<name> directly — they
already classified.classified_at set for this session and the
prompt fits the existing classification. Re-classifying on every turn
is exactly the cost we're trying to avoid.development
--- name: large-scale-migration description: How to execute a LARGE MECHANICAL change across any codebase with LEVERAGE instead of an agent-grind or hand-edits — a cross-cutting migration, refactor, rename, dialect/framework/DB port, library adoption, or bulk transform. The map→transform→gate pattern: a deterministic transform driven by a source-of-truth map, proven by a differential-equivalence gate. Use when the work is "migrate all X to Y", "rename Z everywhere", "port to a new DB/dialect/fra
tools
v11 work-shape archetype runner. When a prompt has been routed to one of the 9 archetypes (triage, explore, specify, decide, ship, review, incident, build, migrate), this skill is the entry point. It picks the right per-archetype playbook from refs/ and executes the phase shape declared in `.claude-plugin/archetypes.json`. Use when: a `<wg archetype="X">` or `<wg archetypes>` system-reminder tag appears, an explicit "let's run the X archetype" request, or when one of the per-archetype slash commands resolves to this skill.
development
Show or set the session intent variable. Intent gates how loud the framework is — simple-edit (silent), feature/research (synthesis directive), rigor (full crew context). Auto-detected on turn 1; this skill overrides explicitly. Sticky for the session. Use when: "set intent", "intent override", "/wicked-garden:intent", "make the framework quiet", "force rigor", "what's my intent".
development
Git worktree hygiene — when to create, how to clean up, and what fails silently. Captures three classes of bug that recur with worktree-based agent isolation: subagent dangling commits, orphan branches with unique work, and time-sensitive dangling-commit garbage collection. Includes detection commands, the salvage decision flow, and the trust-but-verify rule for subagent commit reports. Use when: a subagent reports a commit SHA, after a worktree-based agent finishes, cleaning up `.claude/worktrees/`, salvaging old crew worktrees, "is this branch in main?", verifying agent-claimed commits actually landed, planning multi-agent parallel work in worktrees.