/wicked-garden:wicked-garden-memfrom wicked-garden
Routes memory and knowledge actions over wicked-estate: store decisions/patterns/gotchas, recall memories, answer from knowledge base, review coverage, forget scopes, ingest files/directories, and capture session learnings.
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 engine is wicked-estate (its memory.* / knowledge.* tools, reached through the
read-only estate shim the backend script spawns — the one way on every seat); the seam
is one deterministic backend script. Per estate's DEC-R doctrine, the agent
reasons (what to store, how to chunk, what an answer means) and the engine
ranks/persists — the backend only moves JSON. Every action degrades
gracefully: when estate is unreachable the backend returns
{"ok": false, "reason": ...} instead of crashing.
wicked-garden run \
scripts/mem/estate_memory.py <action> '<json-args>'
Long content: pass - as json-args and pipe the JSON via stdin.
Every call from a seat carries --readonly — a governed run's unit, a chat turn, any session
where you are the agent (when in doubt, --readonly):
wicked-garden run scripts/mem/estate_memory.py <action> '<json-args>' --readonly
A human operator at a terminal may omit it to store / ingest / forget. The backend forwards
--readonly to the estate shim (scripts/_estate_client.py), which spawns the estate binary
read-only with the store pinned from
the environment (WICKED_ESTATE_DB / WICKED_HOME / WICKED_MEMORY_DB) or --db <path>; an
unpinned store is refused (ok: false), and store / capture-batch / ingest / write /
forget are refused by the read-only engine — save a learning with propose instead
(§ Propose: one line, the backend builds the proposal), or file knowledge/policy proposals
through the wicked-garden-repo-learn skill's capture contract. recall / review / sources / health
work unchanged. Spell --readonly exactly (--read-only is a usage error). This is the one way
to the stores on every seat and in every session kind: no estate tool is registered on a seat,
nothing to connect, nothing to fall back to.
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 | Use for | How |
|---|---|---|
store | persist one learning (decision, pattern, gotcha, discovery) | § Store |
propose | save one learning from a read-only seat (lands pending for operator approval) | § Propose |
recall | find what is on record ("what do we know about X"): memories and approved knowledge notes, each labelled with its store | § Recall |
answer | grounded, cited answer from the stores, and from a live data source's rows when crew lets the step query it | the wicked-garden-search skill's refs/answer.md |
review | browse what's stored (counts by kind/tier, scope digest) | § Review / Maintain |
forget | erase a scope subtree (kind-guarded) | § Forget |
maintain | reflect + coverage pulse (consolidation runs in-store) | § Review / Maintain |
ingest | file/dir → knowledge chunks (binary documents by path for estate conversion; images via vision) | dispatch wicked-garden-mem-ingest |
capture | end-of-session sweep → memories | dispatch wicked-garden-mem-capture |
Scope conventions, kind/tier vocabulary, and the brain-migration layout: refs/scopes.md.
A chat seat asked by wicked-crew to label the operator's decisions reads refs/decision-report.md and ends its reply with that block.
not a durable learning: don't store, don't
work around it); it stores bodies containing ids, versions or SHAs and
returns warnings naming them, so check those before you store.
Provenance: memory is what we witnessed, were told, or decided. A claim
read from code, docs or the web is knowledge: use write
({"content","class":"concept","source"}) or ingest instead; store
refuses content that carries a source.kind (+ tier defaults): fact → semantic (decisions, gotchas,
stable facts) · skill → procedural (patterns, how-tos; a convention the
team must follow is a rule: propose it as policy:<type>, see the
mem-capture worker's Step 3b) ·
entity → semantic (a person/system profile). Add about tags for
recall hooks.... estate_memory.py store '{"content":"<distilled>","kind":"fact","about":["tag1","tag2"]}'
Scope defaults to project:<cwd-basename>; pass "scope" to override
(see refs/scopes.md).memory_id; on ok: false report the degrade — do
not silently drop the learning.A seat is read-only, so store is refused there. propose is the write it still has:
wicked-garden run scripts/mem/estate_memory.py --readonly propose '<the rule, why it holds, when it applies>'
printf '%s' '<long text>' | wicked-garden run scripts/mem/estate_memory.py --readonly propose -
The backend builds the whole proposal: kind_type: "memory", payload {content, tier}
(fact → semantic; pass {"content": …, "kind": "skill"} for a how-to → procedural),
and facets: a non-blank WICKED_RUN_PROJECT supplies project; repo is the
checkout's name when inside one. Without a run project, a governed run uses the
checkout's own name as project, or has no project facet outside a checkout.
There, pass {"content": …, "facets": {"project": …}}; a proposal without
facets.project is refused. Outside a governed run, project stays the
checkout's parent name (the operator's umbrella), or the cwd name outside a
checkout. The § Store durability test applies and the backend enforces the
same refusals. It answers {"ok": true, "id": …, "facets": …}; the memory is
pending until an operator approves it. On ok: false, report the reason.
... estate_memory.py sources '{"query":"<topic>"}'
Recall reads what is on record: the memories, and the approved knowledge notes (a learning a
person approved, an ingested document). The answer has a knowledge list and a memories
list, and every item is labelled with its store. The script's bare recall verb reads
memories only; capture uses it to dedupe a memory, and it never finds a knowledge note.
By default the memory side searches the current project (project:<checkout name>; outside a
checkout, the run's WICKED_RUN_PROJECT, else the cwd's name)
and its ancestors, so root-scoped memories stay visible and other projects'
memories do not leak in. Operator memories (operator:<id>, how the user
works) are recalled in every project. Pass "scope" to recall another project the same
way. Searching everything, brain-migrated leaves
(brain:<project>/doc:<id>) included, is an explicit opt-in:
"scope_prefix": "" (or "scope_prefix": "project:<name>" for one subtree). Memories return content, scope, tier,
and score, and knowledge notes their source; present the top hits and cite memory_id/scope
or the source when the user needs provenance. For a synthesized, citation-bearing answer use the
answer action instead.
Steering doctrine (the governance rules, 7 steering types) lives in the
knowledge store under wiki: scopes (a historical prefix — e.g.
wiki:architecture: planes, storage doctrine, event grammar, ADR
rationale): recall it with knowledge.recall /
{"scope_prefix": "wiki:"} via answer, and recall the enforceable rules
behind it with the estate rules.recall tool through the read-only shim —
wicked-garden run scripts/_estate_client.py --readonly call '{"tool":"rules.recall","arguments":{…}}' — (faceted, severity-ordered,
each hit citing its source doc). Managing steering (import / chat / edit /
retire) is operator work — see crates/wicked-governance/STEERING.md
in wicked-core.
... estate_memory.py review '{}' # counts by kind/tier
... estate_memory.py review '{"scope":"project:x"}' # + distilled digest
... estate_memory.py maintain '{}' # reflect + coverage
Estate owns the memory lifecycle in-store (decay, promotion, merge — the
consolidate engine); maintain is the user-facing pulse, not a batch job to
schedule. Report total, the kind/tier distribution, and any distilled
facts from reflect.
... estate_memory.py forget '{"scope_prefix":"brain:old-project"}'
Erase is subtree-wide and permanent, so the backend enforces a kind-guard:
the prefix must contain a kind:id segment. Erasing everything requires an
explicit {"scope_prefix": "", "confirm_erase_all": true} — confirm with
the user before ever doing that. Report deleted_count.
Dispatch the wicked-garden-mem-ingest fork worker with the source path
(and optional scope/title). It chunks text deterministically, sends binary
documents as {"title", "path", "scope", "source"} for estate to convert,
and reads images with vision. The document path must be inside the backend's
cwd; run it from the document's directory or a parent. Writes go through
estate knowledge.ingest with source provenance and are verified with a
seeded recall. Report refused files as not ingested with estate's reason;
do not automatically retry them through vision. Estate's embedded method card
(skill://knowledge-ingest/SKILL.md) is the chunking doctrine.
Dispatch the wicked-garden-mem-capture fork worker at session end ("
capture what we learned", before /clear or exit). It sweeps the conversation
for decisions, patterns, gotchas, discoveries, and preferences, classifies
each onto the estate kind/tier vocabulary, and batch-writes them via
capture-batch. A standing rule the user stated ("always…", "never…") is
filed as a policy:<type> proposal for review (reach operator, every
project, unless they named a project), not stored as a memory. How the user
works (style, preferences, standing extra steps) is an operator memory at
operator:local, recalled in every project.
Report what it stored and proposed.
No hook extracts memories from the transcript. The Stop hook used to pattern-match "decided to…" / "going to…" and filled the store with narration, so it was removed; so was the hook that saved each session's first two prompts as working memory. A learning is stored because someone chose to store it. (The pre-compaction hook still writes one short work-in-progress snapshot of open tasks; that is task state, not transcript text.)
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.
Other plugins' skills for the same job