/wicked-garden:wicked-garden-codemod-firstfrom wicked-garden
Enforces a mechanical-first gate before hand-editing during upgrades, migrations, or large-scale code changes. Inventories affected sites, checks for existing recipes/tools, attempts AST codemods, and records the decision.
Ships in wicked-garden. 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.
An agent asked to "upgrade X" tends to open files and start editing. For a change with many
similar sites, that is the slowest and least reviewable way to do it. This skill is the gate in
front of the edit: it makes you decide, and write down, whether a mechanical transform does the
bulk. The how-to is wicked-garden-engineering-large-scale-migration (MAP → TRANSFORM → GATE and
its ranked technique ladder). Follow it for the transform; this skill only makes sure you start
there.
Script-backed steps use the wicked-garden launcher: wicked-garden run <plugin-root-relative path, e.g. scripts/…> [args]. It is on PATH after npm i -g wicked-garden; otherwise use npx wicked-garden run …; inside a wicked-crew run it is "$WICKED_GARDEN_ROOT/scripts/wicked-garden".
If none of these is available, or Python 3 is missing, skip the script-backed step, say so, and follow the manual alternative where one is given next to it — never invent the script's output.
Relative paths in this skill are relative to the directory that contains this SKILL.md.
Run this before the first edit of any change that is:
Not sure? wicked-garden run scripts/engineering/mechanical_first.py applies "<the request>"
prints {"applies": true|false, "matched": [...]}. With no launcher, read the list above and
decide. A one-line bug fix or a new feature does not need it.
rg when the pattern is purely textual. Record the
exact command and the count. An agent's impression of "about 40 places" is not a count.npx @next/codemod, ng update,
npx react-codemod, jscodeshift transforms, OpenRewrite recipes, cargo fix --edition,
cargo clippy --fix, pyupgrade, django-upgrade, ruff check --fix, go fix,
gofmt -r, eslint --fix, dotnet upgrade-assistant, a Renovate or Dependabot preset.
Record what you checked and what you found.Put exactly one decision in the plan, the phase output or the PR description, in the shape
refs/decision-block.md defines:
mechanical-first: and carries inventory,
count, recipe_checked, codemod, gate and residue; ormechanical-first: rejected — <reason> (for example "3 sites, each semantically different").Silence is not a choice: a hand edit with neither is the failure this skill exists to stop.
Check your text before you hand it in:
wicked-garden run scripts/engineering/mechanical_first.py check <file> (or - for stdin)
exits 0 when it holds a valid block or rejection and names what is missing otherwise. With no
launcher, compare it with the template in refs/decision-block.md by hand.
Not here, and not by a hook: hooks run only in one CLI's interactive sessions, and crew seats
carry none. The migrate, modernize and upgrade-shaped build playbooks of
wicked-garden-archetype call this skill before they transform or implement, and the
wicked-garden-governed-worker floor tells every governed seat to. A held steering policy in
wicked-core (the step:mechanical_first obligation adds a mechanical_first plan step) checks
for the block's exact shape, which is why the shape lives in one file.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
codemod, migration, upgrade, ast-transform, mechanical-first
npx claudepluginhub mikeparcewski/wicked-garden --plugin wicked-garden91 skills in this plugin
/wicked-garden-agenticAgentic-systems domain skill: review, design, audit, and framework selection
for AI agent systems. Routes to one of four actions (review | design | audit |
frameworks) backed by the rubrics in refs/.
Use when: "agentic review", "review this agent system", "full agentic codebase
review", "trust and safety audit", "audit my agents for GDPR/HIPAA/SOC2/NIST
compliance", "design an agentic system", "design a multi-agent architecture",
"which agentic framework should I use", "compare LangChain vs CrewAI vs
AutoGen", or any former /wicked-garden:agentic:{review|design|audit|frameworks}
invocation.
Disambiguation: this domain reviews and designs **AI agent systems**. For
ordinary source code use the engineering review; for a binding go/no-go
verdict use the archetype review (see docs/domains.md → "review appears in
three domains").
/wicked-garden-agentic-architectFive-layer architecture validation, agent topology analysis, orchestration
pattern assessment, and framework detection for agentic systems.
Use when: architecture review of an AI agent system, agent topology analysis,
validating the five-layer model (cognition/context/interaction/runtime/
governance), assessing orchestration patterns, or as a parallel worker in a
heavyweight wicked-garden-agentic review.
/wicked-garden-agentic-performance-analystToken optimization, latency budgets, cost analysis, caching strategy, and
parallelization assessment for agentic systems.
Use when: performance optimization of an AI agent system, cost analysis or
token-budget review, latency profiling, cache-strategy assessment,
parallelization opportunities, or as a parallel worker in a heavyweight
wicked-garden-agentic review.
/wicked-garden-agentic-safety-reviewerGuardrails, prompt injection defense, PII protection, human-in-the-loop
gates, and hallucination mitigation for agentic systems.
Use when: safety review of an AI agent system, guardrail assessment, prompt
injection audit, PII/compliance exposure check, HITL gate verification, or
as a parallel worker in a heavyweight wicked-garden-agentic review.
Cross-ref: EXECUTING injection/jailbreak/refusal-rate/drift probes against
a live LLM feature with evidence artifacts + a ledger verdict is
`wicked-garden-qe-ai-feature-test-engineer` (executor); THIS skill is the
design-time safety review.
/wicked-garden-appsChange, review or accept an Apps app: a declarative UI over live data
and the system's knowledge that a person builds in wicked-studio's Apps
section. An app is a spec
(apps.json: pages, components, layout, theme, bindings, queries and
actions) plus query texts under queries/. A turn's builder edits those
two and nothing else, from the data catalog the task names, and never
calls a write tool or an action (a live read goes only through crew's
broker). A distinct reviewer judges the turn's tree. A publish's QE seat
judges the publish check's evidence.
Use when: a phase of the `apps-turn` workflow (build, review) or the
`apps-publish` workflow (qe), "add a KPI to my app", "chart this query",
"add a filter", "add an Assign to me button", "review this app turn".
NOT for running a query, testing a connection, granting an action or
deploying an app (crew and studio do those, behind a person's click),
and NOT for building studio editor plugins (that is
wicked-garden-editor-scaffold).
/wicked-garden-archetypev11 work-shape archetype runner. When a prompt has been routed to one
of the archetypes (triage, explore, specify, decide, ship, review,
incident, build, migrate, modernize), 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 a
direct per-archetype ask — "triage this prompt", "review this PR /
artifact", "build this feature", "decide between these options",
"explore this problem", "handle this incident", "run this migration",
"modernize / port this legacy app", "ship this release", "write
acceptance criteria" (invoke with archetype=<name> plus the user's
args — see the Direct invocation table).
Other plugins' skills for the same job