/wicked-garden:wicked-garden-build-guidefrom wicked-garden
Discovers how a repo builds and tests, then writes a structured build/test guide (`.wicked/build-guide.json`) that the wicked-core floor reads. Reads CI config, manifests, and runner metadata; writes text parsers only when needed; validates with a mutation probe.
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.
The floor decides by exit codes and excludes only the base's own failures. To do that for any
runner without runner names in engine code, it reads a per-repo guide that says how this repo
runs its tests, how to read their results, and how to list, run one or deselect a test. The floor
reads .wicked/build-guide.json from the base tree, so a head edit never applies to its own
run. Every piece is checked against reality by wicked-core floor probe. A piece whose probe did
not pass is not used, and that check runs exit-code only.
This skill discovers, drafts, validates and proposes the guide. It never decides "verified".
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.
| Action | When | How |
|---|---|---|
discover (default) | the repo has no guide | steps 1 to 6 below |
refresh | the guide is stale (a derivedFrom file or the runner version changed), a probe failed, or crew dispatched re-onboarding | start from the committed guide; if a derivedFrom file changed, redo step 1; otherwise revise only the failing piece; then steps 4 to 6 |
check | validate a guide file someone wrote | wicked-garden run scripts/build_guide/check.py --guide <file> --repo <dir> [--schema <file>]. For a test check (one with list), it flags what the floor needs before it will use it: a non-empty failedExit, alone, deselect, two mutations, and a text or junit results kind. It warns when the version piece is missing. With --repo, it warns for every CI step no check declares. On a probed guide, it flags any required probe that did not pass. |
The contract is fixed (DES-BUILD-GUIDE, "Contract v1"). Its schema is wicked-core's
schemas/build-guide.v1.json, which the scripts carry as a vendored copy. Produce exactly that
shape, and add no fields. refs/contract-notes.md lists what core's schema adds to the DES text,
how this skill reads it, and the open questions. To check against a newer core schema, pass it
as --schema.
Pinned semantics (core's interpreter):
{id}/{q} fill whole argv elements, so no quoting is needed;
{q} is allowed in alone and deselect. {files} expands to one argv element per file.
When a token is a regex for the runner, use {id:re} (the id regex-escaped, per id) or
{ids:re|} (every id regex-escaped and joined with |, in a single token).{id}, {q}, {id:re}) are added once (a
leading -- only when the argv has none). The tokens through the last one repeat per id, and
the rest are added once. So a flag and its value are one token (--skip={id}). A runner that
takes one exclusion pattern gets one {ids:re|} token instead.results.how.path, the mutation files) are relative to cwd. invalidatedBy globs
are matched against the files the change touched.<testcase> is judged on its own. A <skipped/> one neither passed nor failed, and
multi needs two distinct failures. The results kind is text or junit; json-lines and
tap are reserved. results.how.env applies only to runs whose results are read, not to
list or version.affected runs the full check whenever the change deletes a file or renames one away.run, a stage other than
creator/verify, a list without failedExit, a 0 in failedExit, a cwd that is
not . or plain relative segments (absolute, climbing, an empty or . segment, \ or :),
a name that is not 1-64 of A-Z a-z 0-9 . _ - (or is ./..), a results.how.env name
that is not [A-Z_][A-Z0-9_]* or is a loader/shell hook (LD_*, DYLD_*, BASH_ENV, …), or
{ids:re|} among the per-id tokens or together with {q} in one deselect. Then detection is
the whole floor.install is the floor's install step. The probe runs it first, in every fresh
copy, for checks in the same cwd, so declare it whenever a runner comes from the install.failedExit with parsed failures is
tests failing. A failedExit code with no parsed failure is base_red_unseparated on the
base and new_failure on the head. Any other non-zero code is could_not_run.cwds), a usable guide's checks ARE the floor's checks, run at the stages they declare
(absent means both). A package no check covers keeps its detected checks, judged by exit code.
So declare EVERY step the repo's CI gates on (install, build, format, lint, typecheck and test),
each with the cwd CI runs it in, sub-packages included. Give an expensive gate
stage: ["verify"]. A check with no list
is a gate (name, cwd, run, and a failedExit where the tool documents one; no
results, no version). Its exit code alone decides it, and it is not probed. Only a test
check (with list, and so results) carries the pieces and probes below.version: {run: argv} is the runner's own version command. The probe records its first output
line as runnerVersion and adds a required version probe; the floor treats a different
version as stale. When any probe fails, the whole probe re-runs once on a fresh copy, and
that retry's results are recorded, each marked (retried). pass (retried) counts as a pass;
fail: … (retried) leaves the guide unverified. A failure for a missing piece is not retried.run fails with "needs a green base". If the repo's tests are red, say so and
ask for a green commit (or a fix) before you probe. Don't relax the guide to fit a red suite.wicked-garden run scripts/build_guide/discover.py --repo <dir>
It reads CI config first (.github/workflows/*, .gitlab-ci.yml, Makefile, justfile), then
the manifests (Cargo.toml, package.json scripts, pyproject/setup.cfg/tox.ini, go.mod,
gradle/maven). It follows make test, just test and npm test one level into what they run,
and lists every test candidate with its file:line. It also lists ciSteps: every command CI
runs. Each one becomes a check, a gate unless it is the test run. It runs nothing. Manual alternative:
read those files yourself, in that order.
Then interrogate each candidate's runner: run its --version and --help, and any sub-help it
points to (for example cargo test -- --help). From the runner's own words, learn its result
formats, how it lists tests, how it runs one test, how it deselects exact tests, and which exit
code means "tests failed". Record the version command as the check's version piece
({"run": ["<runner>", "--version"]}). refs/discover.md has the checklist. Record every file you derived
the guide from in derivedFrom.
verdict: no-test-command → go to step 6.
Use JUnit if the runner already emits it through a flag, a reporter or a plugin it has (JSON
lines and TAP are reserved in v1). Set results.id/idJoin so the ids are the ones the list
prints, and set results.how.merge/list.merge when the runner names scopes on stderr. Put the flag in results.how.argvAppend and the file in results.how.path. Only
when none exists, write a text parser: line regexes, an optional section qualifier and summary
blocks. Learn them from real output of this repo's runner, captured by running it on a
scratch copy with the mutation probe in it. Base the parser on the runner's own final summary
where one exists, not on per-test lines interleaved with test output. refs/results.md has the
rules (RE2 only, every regex ^…$), the id round-trip test, and worked examples. The starting
points in assets/seeds/ (cargo, pytest, vitest) are drafts too: probe them like anything else.
probes.mutation and probes.mutation2 are two minimal, deliberately failing tests in the
repo's own language and test framework. Each goes in its own new file that the runner's
normal discovery picks up, with a different id, and each carries the id the parser must name
(expectId, plus expectQ when ids are qualified). One proves that the parser, the ids and
deselect agree. Both together prove that two failures are both parsed and both deselected.
The alone probe runs the mutated test alone (it must fail, naming exactly it), and then a
passing test under the same qualifier (it must run green). When each test file is its own
qualifier (cargo: one binary per integration-test file), put a passing test beside the failing
one in the mutation file (fn floor_probe_mutation_beside() {}). Never edit an existing test
file.
wicked-garden run scripts/build_guide/check.py --guide <draft> --repo <dir> --draft
wicked-garden run scripts/build_guide/rehearse.py --repo <dir> --guide <draft>
wicked-garden run scripts/build_guide/probe.py --repo <dir> --guide <draft>
check --draft validates the shape and refuses a draft that carries verified.rehearse mirrors the core probes (list, run, mutation, ids, alone, deselect,
multi, plus affected and version when present, retried as core retries) in a scratch
copy, so you can iterate quickly. It composes argvs around -- as core does, and it skips
gates. It is not evidence and writes nothing.probe runs wicked-core floor probe --repo <dir> --guide <file>. Only that command writes
verified, including runnerVersion from the version piece you wrote (for example
{"run": ["cargo", "--version"]}). Never hand-write verified (runnerVersion
included), and never edit what the probe wrote.A failed probe names a piece. Revise that piece's argv, parser or template and probe again. Stop after 3 probe attempts for a check, and report each attempt's results. Do not keep tuning.
Probe unavailable (probe.py exits 3, because wicked-core is missing or has no
floor probe): say exactly "probe unavailable: the guide is unverified, so the floor will not
use it for exclusion". You may still propose the draft, labelled unverified, with the rehearsal
results. It is not verified, and the floor will run that check exit-code only until a probe
passes it.
The guide lands through the approve queue, never as a silent write. refs/propose.md has the
steps and the PR body template.
.wicked/build-guide.json in the run's worktree. The run's
deliver gate is the proposal. Do not open a second PR.wicked/build-guide) and commit only the guide. Open a PR
(draft when any probe failed or was unavailable). Its description holds the probe results:
the markdown table that probe.py prints, or the rehearsal results labelled "rehearsal,
unverified". Also give the runner version and the derivedFrom list.If the repo has no tests, or no candidate survives step 4 within the attempts, say so plainly: "no build/test guide: the floor will run this repo's checks exit-code only", and give the reason (no test command; a runner that names no failures; ids that do not round-trip). Propose no file.
Give the check names with their run argv, the result kind (and why text, if text), the
per-probe results with attempt count, any known limit (for example, multi failed because the
runner rejects a repeated deselect flag), the runnerVersion, and the PR link or "no guide". Report a failure exactly as it happened.
assets/seeds/cargo-libtest.json (opens in a new tab)assets/seeds/pytest-short-summary.json (opens in a new tab)assets/seeds/vitest-junit.json (opens in a new tab)refs/contract-notes.md (opens in a new tab)refs/discover.md (opens in a new tab)refs/propose.md (opens in a new tab)refs/results.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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.
Other plugins' skills for the same job