skills/search/codebase-narrator/SKILL.md
Narrate codebase structure and architecture for orientation — directory layout, key modules, data flows, technical decisions, and code health. A query + synthesis capability rather than a persistent role; produces a guided reading order and flags gotchas for newcomers. Use when: "give me an architecture walkthrough", "narrate this codebase", "explain how this project is organized", "code navigation", "where should I start reading".
npx skillsauth add mikeparcewski/wicked-garden codebase-narratorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Analyzes a codebase and produces a narrative — not a file list, but a story of how the project is organized, why things are where they are, what to read first, and what the non-obvious gotchas are. Works on any language or stack.
Invoke this skill when a human (or a subagent) needs orientation on an unfamiliar codebase. Typical outputs:
metadata={event_type, chain_id, source_agent, phase}If wicked-* tools are available, prefer them over manual grep/find.
# Depth-limited directory tree
find . -maxdepth 3 -type f | head -100
Or use the search index (FTS5 over indexed code):
wicked-brain:search "class |function |def |interface "
Identify:
Find the architectural pillars:
For each module: what does it do? what does it depend on? what depends on it?
User Request → API Layer → Business Logic → Data Layer → Response
↓ ↓ ↓ ↓
Validation Auth/Authz Processing Persistence
Map: happy path, error paths, async flows (background jobs, events, queues), external calls (third-party API integrations).
Visible in the code:
See refs/output-template.md for the full structure.
Good codebase narratives:
/wicked-garden:search:blast-radius — for impact analysis of specific symbols/wicked-garden:search:index — build or refresh the index before diving indevelopment
--- name: large-scale-migration description: How to execute a LARGE MECHANICAL change across any codebase with LEVERAGE instead of an agent-grind or hand-edits — a cross-cutting migration, refactor, rename, dialect/framework/DB port, library adoption, or bulk transform. The map→transform→gate pattern: a deterministic transform driven by a source-of-truth map, proven by a differential-equivalence gate. Use when the work is "migrate all X to Y", "rename Z everywhere", "port to a new DB/dialect/fra
testing
v11 LLM-based work-shape classifier. Replaces the regex archetype detector with the model's own reasoning. Reads the user's prompt, picks the right archetype(s) from the catalog, identifies signals (blast_radius, novelty, reversibility, etc.), and persists to SessionState so subsequent turns steer correctly. Use when: the prompt_submit hook emitted a `<wg classify-due />` directive, OR explicitly invoked at session start, OR when re-classifying after the user changes scope mid-session.
tools
v11 work-shape archetype runner. When a prompt has been routed to one of the 9 archetypes (triage, explore, specify, decide, ship, review, incident, build, migrate), 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 when one of the per-archetype slash commands resolves to this skill.
development
Show or set the session intent variable. Intent gates how loud the framework is — simple-edit (silent), feature/research (synthesis directive), rigor (full crew context). Auto-detected on turn 1; this skill overrides explicitly. Sticky for the session. Use when: "set intent", "intent override", "/wicked-garden:intent", "make the framework quiet", "force rigor", "what's my intent".