/wicked-garden:wicked-garden-searchfrom wicked-garden
Code-intelligence search over a code-relationship graph: index, blast-radius impact analysis, data-flow lineage, path between symbols, PageRank hotspots, service maps, and architecture walkthroughs.
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.
All actions delegate to wicked-estate, which owns the unified static + injected code-relationship
graph as of ADR 0005 (superseding the brain-homed graph of ADR 0004). Garden no longer maintains its own
graph; it consumes estate's. Garden contributes its proprietary archetype edges to estate's graph via
the drop-in TOML rules in .wicked-estate-extractors/archetype.toml (auto-discovered by wicked-estate index).
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 | Answers | Where |
|---|---|---|
index | build/refresh the code-intelligence index | § Index / freshness |
blast-radius | "what breaks if I change X?" (dependents) | § Blast radius |
lineage | "where does this flow from / to?" (data flow) | § Lineage |
path | "how does A reach B?" — the ordered hops between two symbols | § Path |
hotspots | most-central symbols, god-objects | refs/hotspots.md |
service-map | service architecture from infra + code | refs/service-map.md |
narrate | codebase orientation / architecture walkthrough | codebase-narrator/SKILL.md |
answer | cited answer from the estate knowledge/memory stores, and from a live data source's rows when crew lets the step query it | refs/answer.md |
Doctrine / which-rules-apply: Steering (the governance rules, 7 steering types) is in the same stores — the estate knowledge.recall tool through the shim — wicked-garden run scripts/_estate_client.py --readonly call '{"tool":"knowledge.recall","arguments":{"scope_prefix":"wiki:",…}}' (wiki: is a historical prefix) — + the estate rules.recall tool the same way (§ Resolving symbols) (cited, read-only); management: wicked-core crates/wicked-governance/STEERING.md.
The graph lives in wicked-estate (ADR 0005): a 75-language tree-sitter static graph plus injected domain edges, built by the estate binary — no external engine, no Node version floor.
.wicked-estate-extractors/, e.g. garden's archetype rules):
wicked-estate index <path> # DB defaults to .wicked-estate/graph.db
Incremental and idempotent — unchanged files are skipped; editing the extractor
rules forces a full re-extract. The estate binary the shim spawns serves the same DB, so a refresh is
immediately visible to the tools. Freshness is lazy (opt-in wicked-estate watch);
estate prints a STALENESS: N commit(s) since last index marker — re-run when stale.wicked-estate stats reports node/edge counts plus unresolved=N
(references no resolver could bind — a health signal, not an error count); archetype
wiring shows as injected edges (provenance extractor:archetype-*).From a seat — any seat, any session kind (a governed run's unit, a chat turn, any session
where you are the agent): the graph is handed to you already indexed and the write CLI is never
yours: never wicked-estate index, never wicked-estate scip|tfstate|import-telemetry|compact|watch,
never wicked-estate clusters --annotate. A stale graph is reported through its
STALENESS marker, not rebuilt — the shim's call prints it under diagnostics, beside any
CLAMPED: line (a bound the server lowered), so read that list before trusting a result. Binary resolution: WICKED_ESTATE_BIN env → PATH → ~/.local/bin.
The one way to the graph — on every seat, in every session kind (a governed run's unit, a chat
turn, a human session at a terminal): the estate shim in read-only mode, store pinned by the
environment. Every estate tool named in this skill is reachable through its call action:
wicked-garden run scripts/_estate_client.py --readonly call '{"tool":"BlastRadius","arguments":{"symbol":"<name>"}}'
--readonly is literal (the spawned estate binary reads only; WICKED_ESTATE_READONLY=1 rides
every worker so it spawns read-only by default). The store rides WICKED_ESTATE_DB /
WICKED_HOME / WICKED_MEMORY_DB from the environment, or --db <path>. A container seat has
no local store: the same command relays through wicked-crew's broker (the run hands the seat
its address and a unit token), which answers from the run's own graph. With neither, the shim refuses
({"ok": false, "reason": …}). A code-graph read (search, SearchEntity, BlastRadius, …) needs the GRAPH
pinned (--db or WICKED_ESTATE_DB naming the repo's graph, or ./.wicked-estate/graph.db): WICKED_HOME pins
only memory and knowledge, so without a graph pin the shim refuses instead of answering empty (under
WICKED_RUNTIME=team, WICKED_STORE_URL names the team graph; with neither it refuses the same way); a relayed call the broker refused names why in
broker_refusal — report either, never guess a store. There is no other transport: no estate
tool is registered on any seat, so there is nothing to "connect", nothing to fall back to, and
no second rung — a grep is not the graph.
Resolve the symbol. Estate tools take symbol names directly (a file node's name is its
repo-relative path, e.g. scripts/_bus.py); when a name is ambiguous or you need the node id,
resolve it first:
wicked-garden run scripts/_estate_client.py --readonly call '{"tool":"SearchEntity","arguments":{"name":"<symbol>"}}'
name is the exact / substring symbol match; query is full-text over the knowledge stores and
answers matches: [] for a code symbol — a 0-hit query does not mean the graph is empty.
resolved: false is a miss, not an answer. When estate cannot resolve the target (a name or
path the graph does not hold), BlastRadius, Lineage, TraverseGraph and Path answer
resolved: false with ranked suggestions (Path also names the operand in unresolved), and
the shim adds an UNRESOLVED: diagnostic (a joined BlastRadius / Lineage answer also says
complete: false). Check resolved before reading rows, found or cut flags. Zero rows there
never mean "no dependents": re-query with a SymbolId from suggestions or SearchEntity, and if
none fits, report the target as not in the graph. (Estate before 0.32.1 resolved names only in
Path: if it answers resolved: false for a name SearchEntity finds, pass that SymbolId.)
Name the path that answered (shim or ungrounded) in every result. If the shim answers
{"ok": false, …} or the fence denies the call, write estate: not available (<reason>) in your
output and continue UNGROUNDED — report the gap; do not substitute grep for the graph. A
denied call is final: record it — no variants, no wrappers, no retry
(wicked-garden-governed-worker A2/A5). The wicked-estate CLI is not a rung: its write verbs
are never run from a seat (§ Index / freshness) and its read verbs are not how a seat grounds.
Analyze what would be affected if you changed a symbol — traces dependents
(what uses this) over the code-relationship graph, including injected edges
(bus/dispatch/capability/archetype) that grep and a static call-graph cannot see.
For data-flow tracing (UI field → DB column or reverse) use the lineage action.
Arguments: symbol (required — a file path like src/app.py, or a symbol
name); --depth (optional traversal depth; estate default 8, max 24).
Starting from a file path returns its importer files as dependents
(File→File import edges), so blast-radius scripts/_bus.py answers "which
files import this file" — no longer an empty "no resolved dependents".
STALENESS marker and report it; never
rebuild from a seat.BlastRadius
tool with {"symbol": "<name-or-path>", "depth": <n>} through the shim (§ Resolving symbols).
The dependents array includes relationships grep can't see: a command that
dispatches an agent, a consumer that subscribes to an event, an agent that
declares a capability — and archetype→playbook relationships via garden's
.wicked-estate-extractors/archetype.toml (provenance extractor:archetype-playbook).
The whole answer, not page 1 (estate#279): estate pages a wide answer (next_cursor), and
the shim's call follows every cursor and joins the pages. Claim the full blast radius only
when complete is true. resolved: false is a miss (see above), not a partial answer;
otherwise complete: false means a page failed or a depth/node cap cut the walk (see
diagnostics), and you report it as partial. A missing complete (an older estate) means
read truncated and next_cursor yourself. RPC failure is {"ok": false, "reason": …}
with exit 1; a tool error is {"error": …, "diagnostics": [...]} with exit 1.
Relay refusals on call still return "result": null with broker_refusal and exit 0.
Results carry confidence + provenance per edge and an unresolved_callers count —
reference sites no resolver could bind (repeat call sites of a bound relationship
are NOT counted, so 0 is legitimate for a fully-resolved hot symbol).ungrounded, said so.shim / ungrounded).Examples: blast-radius scripts/_bus.py · blast-radius UserService --depth 3.
Trace flow through the code-relationship graph. Downstream = what the symbol depends on; upstream = what depends on it. Includes injected edges grep can't see.
For pure "what breaks if I change X?" use the blast-radius action.
Arguments: symbol (required — a file path or symbol name);
--direction (optional, default downstream): downstream (dependencies),
upstream (dependents), or both; --depth (optional traversal depth;
estate default 24 for Lineage and 8 for BlastRadius, max 24).
STALENESS marker; never rebuild from a seat.Lineage tool with
{"symbol": "<name>"} → dependencies (with "relation": "flows_to", value flow →
dependencies are the consumers and flows the hops). Lineage's default depth is its
ceiling (24), and the shim follows next_cursor to the end of the answer (estate#279):
check resolved first (false is a miss, above), then complete, and report a false as
partial (a missing complete, RPC failure, tool error or relay refusal: see § Blast radius step 3).BlastRadius tool with
{"symbol": "<name>"} → dependents.TraverseGraph tool.)path
action (§ Path) — never hand-assemble it from TraverseGraph edge lists.
Each result includes injected edges (e.g. a consumer reached via a bus
rule, an archetype via extractor:archetype-playbook) with confidence +
provenance per edge.ungrounded, said so.shim / ungrounded).Examples: lineage scripts/_bus.py --direction upstream · lineage User.email --direction both.
The ordered hops from one symbol to another — the route itself, not a reachability set you
search by hand. Use it whenever the question names two ends ("how does this handler reach the
DB write?", "does A ever call B, and through what?"); never reassemble a route from
TraverseGraph's edge list.
Arguments: from and to (required — an exact symbol name, or a SymbolId as handed back
by SearchEntity / TraverseGraph); depth (optional; estate default 8, max 16); max_nodes
(optional; estate default 1000, max 5000).
STALENESS marker; never rebuild from a seat.Path tool through the shim:
wicked-garden run scripts/_estate_client.py --readonly call '{"tool":"Path","arguments":{"from":"<symbol-A>","to":"<symbol-B>","depth":8}}'
hops[] is the route in order; each hop carries kind, confidence, provenance and
resolved_by, with both endpoints denormalized (name, file, line) — name the
intermediate functions and open only those files.found together with its bound flags — a bounded absence is not proof of absence.
found: false with depth_bounded: false AND node_bounded: false is a proven absence
in the indexed graph. found: false with depth_bounded or node_bounded set means the
search hit its depth or node budget: report "no route within depth N / M nodes", never "A
never reaches B"; widen depth / max_nodes (within the caps) or try the reverse direction
before concluding. unresolved: "from" / "to" names an operand estate could not resolve —
an input problem, not a route verdict: resolve the name (§ Resolving symbols) and retry.
A hop with low confidence is heuristic — say so when you report it.ungrounded, said so.shim / ungrounded).Examples: path handle_request write_row · path scripts/_bus.py scripts/_estate_client.py --depth 12.
Rank symbols by PageRank centrality to expose god-objects, coupling
hotspots, and high-impact refactor targets — the estate RankHotspots
tool through the shim. → Full procedure: refs/hotspots.md
Detect services and their connections from infrastructure config (docker-compose/k8s/helm) plus code patterns; report as table, json, or mermaid. → Full procedure: refs/service-map.md
For "give me an architecture walkthrough" / "narrate this codebase" / "where should I start reading", use the nested skill: codebase-narrator/SKILL.md — produces a guided reading order, annotated directory map, data-flow diagram, and gotchas list.
For "answer this from the knowledge base" / "what does the record say about X", load
refs/answer.md — synthesizes an answer strictly from wicked-estate knowledge.recall +
memory.recall results, citing each claim's source. Shared with the wicked-garden-mem skill's answer action.
What SKILL.md sets; muted values are Claude Code's defaults
91 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.
npx claudepluginhub mikeparcewski/wicked-garden --plugin wicked-gardenOther plugins' skills for the same job