/wicked-garden:wicked-garden-mem-capturefrom wicked-garden
Sweeps conversation for durable learnings (decisions, patterns, gotchas, preferences) and writes them to wicked-estate memory. Run at session end or on 'capture what we learned'.
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.
None: SKILL.md is the whole skill.
This skill is designed to run as an isolated worker; when your harness cannot fork, run it inline and keep its output separate from the caller's.
You capture session learnings as wicked-estate memories before the session ends (FOLD-3, Phase 5-S7 — the port of brain's session-teardown). You run in a fork context: review the conversation, distill, and persist through the mem backend. Estate owns everything after the write (salience, decay, consolidation) — your job is selection and distillation, not lifecycle.
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.
Look for things the session learned, not things it did:
Then apply the provenance test: memory is what we witnessed, were
told, or decided. What was read out of code, docs or the web is
acquired, which makes it knowledge: write it with the wicked-garden-mem
write action ({"content": …, "class": "concept", "source": …}), or drop it
when the code graph re-derives it. Split a mixed finding: "we chose
fail-closed because of incident X" is memory; "the implementation fails
closed" is knowledge. The backend refuses a memory that carries a source.
Would this help a fresh session, on a different task, three months from now? It states the rule, why it holds, and when it applies.
Reject, and do not rephrase into something that sneaks past:
A version constraint ("needs SQLite >= 3.35.0 because …") and a fixed constant
(a CRC polynomial, a colour) are durable; keep them.
The test above is YOUR judgment; the backend only backs it up. It refuses
(not a durable learning) a body under 40 characters, a bare id / SHA /
version, and first-person progress narration ("I'll retry", "We shipped …"):
drop those. Ids, versions, SHAs, PIDs or dates inside a body are allowed (a
version constraint or a fixed constant is a real rule); the backend stores
the memory and returns warnings naming them. Check for them yourself
before the write, since the warning arrives after it, and report any
warning with the memory it was attached to.
If nothing passes, store nothing and say so. An empty capture is a valid
result, and the usual one.
Write each survivor as 1–3 sentences (the rule, why it holds, when it
applies), then map it onto the estate vocabulary
(full table: skills/mem/refs/scopes.md):
| Finding | kind | tier (default) |
|---|---|---|
| decision, preference, gotcha, stable fact | fact | semantic |
| pattern, how-to | skill | procedural |
A standing rule is not in this table: it goes to Step 3b, never to the memory batch.
Events ("X happened when Y") are not memories. Keep only the rule the event
taught, as a fact.
Add 2–5 about tags per memory (systems, components, topics mentioned) so
recall has hooks.
Scope follows what the memory is about:
project:<cwd-basename>)."scope": "operator:local". Every project's recall includes the
operator scope, so the memory follows the user everywhere. Never pin an
operator memory to one project.A rule the user stated for the work ("always use X", "never do Y", "the
convention is Z") is enforceable: a reviewer can judge a change against it.
That makes it steering, and steering is approved by a person before it
applies. Do not write it as a memory. File one proposal per rule through the
estate shim's propose action (the review queue; nothing applies until the
user approves it):
wicked-garden run scripts/_estate_client.py --readonly propose '{"kind_type":"policy:development","payload":{"rule":"<imperative: what must hold>","severity":"warn","capture":"rule","reach":"operator"},"facets":{"project":"<project>"}}'
kind_type is policy:<type>, with <type> exactly one of
architecture, development, security, testing, operations,
compliance or design-ux.severity is exactly one of info, warn, error or critical.reach says where the rule applies. A rule the user states is theirs
for every project: "reach": "operator". Use "reach": "project"
only when they named this project or one of its repos (add repo to the
facets for a repo). The reviewer sees the reach and can change it; never
leave it out.facets.project is required (the shim refuses a proposal without it). It
records where the rule was said; with "reach": "operator" it does not
narrow the rule.provenance.Store a pointer memory only when the reason for the rule is worth
recalling on its own ("we ban X because incident Y"). The rule itself lives
in the proposal. If the shim answers ok: false, report the rule text and
the degrade; never fall back to storing it as a memory.
One backend call, JSON on stdin (never argv — summaries contain quotes):
printf '%s' '{"memories":[
{"content":"<summary 1>","kind":"fact","about":["tag1","tag2"]},
{"content":"<summary 2>","kind":"skill","about":["tag3"]},
{"content":"<how the user works>","kind":"fact","about":["style"],"scope":"operator:local"}
]}' | wicked-garden run \
scripts/mem/estate_memory.py capture-batch -
Build the JSON with real encoding discipline (escape newlines/quotes); a
malformed payload aborts before any write. The backend returns
{stored, failed, ids, failures} — treat failed > 0 as a partial result
and say which items were dropped and why.
Recall the most important stored memory to prove the round-trip:
wicked-garden run \
scripts/mem/estate_memory.py recall '{"query":"<key phrase from it>"}'
{N} memories stored (+ {K} failed if any, with each refusal reason), with kinds{P} rules proposed for review (Step 3b), with each proposal idok: false): report the degrade explicitly so
the learnings can be re-captured later — never claim success on a
fail-open response.recall first when unsure.What SKILL.md sets; muted values are Claude Code's defaults
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