Not loaded · from Wayfinder Maps
Scans a codebase for architectural friction, identifies shallow modules and deepening opportunities, and presents candidates as a visual HTML report with before/after diagrams.
Claude Code won't load this skill
It ships in Wayfinder Maps at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Surface architectural friction and propose deepening opportunities — refactors that turn shallow modules into deep ones. The aim is testability and AI-navigability.
This command is informed by the project's domain model and built on a shared design vocabulary:
codebase-design skill for the architecture vocabulary (module, interface, depth, seam, adapter, leverage, locality) and its principles (the deletion test, "the interface is the test surface", "one adapter = hypothetical seam, two = real"). Use these terms exactly in every suggestion — don't drift into "component," "service," "API," or "boundary."CONTEXT.md gives names to good seams; ADRs in docs/adr/ record decisions this command should not re-litigate. If neither exists, proceed silently.Read the project's domain glossary (CONTEXT.md) and any ADRs in the area you're touching first, if they exist.
Then walk the codebase — via a read-only exploration subagent if your environment supports spawning one, otherwise directly. Don't follow rigid heuristics — explore organically and note where you experience friction:
Apply the deletion test to anything you suspect is shallow: would deleting it concentrate complexity, or just move it? A "yes, concentrates" is the signal you want.
Write a self-contained HTML file to the OS temp directory so nothing lands in the repo. Resolve the temp dir from $TMPDIR, falling back to /tmp (or %TEMP% on Windows), and write to <tmpdir>/architecture-review-<timestamp>.html so each run gets a fresh file. Open it for the user — xdg-open <path> on Linux, open <path> on macOS, start <path> on Windows — and tell them the absolute path.
The report uses Tailwind via CDN for layout and styling, and Mermaid via CDN for diagrams where a graph/flow/sequence reliably communicates the structure. Mix Mermaid with hand-crafted CSS/SVG visuals — use Mermaid when relationships are graph-shaped (call graphs, dependencies, sequences), and hand-built divs/SVG when you want something more editorial (mass diagrams, cross-sections, collapse animations). Each candidate gets a before/after visualisation. Be visual.
For each candidate, render a card with:
Strong, Worth exploring, Speculative, rendered as a badgeEnd the report with a Top recommendation section: which candidate you'd tackle first and why.
Use CONTEXT.md vocabulary for the domain, and the codebase-design vocabulary for the architecture. If CONTEXT.md defines "Order," talk about "the Order intake module" — not "the FooBarHandler," and not "the Order service."
ADR conflicts: if a candidate contradicts an existing ADR, only surface it when the friction is real enough to warrant revisiting the ADR. Mark it clearly in the card (e.g. a warning callout: "contradicts ADR-0007 — but worth reopening because…"). Don't list every theoretical refactor an ADR forbids.
See HTML-REPORT.md for the full HTML scaffold, diagram patterns, and styling guidance.
Do NOT propose interfaces yet. After the file is written, ask the user: "Which of these would you like to explore?"
Once the user picks a candidate, interview them relentlessly to walk the design tree — one question at a time, a recommended answer offered with each, decision branches resolved one by one: constraints, dependencies, the shape of the deepened module, what sits behind the seam, what tests survive. Look facts up in the codebase; put the decisions to the user and wait for each answer.
Side effects happen inline as decisions crystallize — apply the domain-modeling skill to keep the domain model current as you go:
CONTEXT.md? Add the term to CONTEXT.md. Create the file lazily if it doesn't exist.CONTEXT.md right there.codebase-design skill's design-it-twice pattern (parallel subagents where the environment supports them, sequential independent designs otherwise).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rengwu/wayfinder-maps --plugin wayfinder-maps13 skills in this plugin
/codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./domain-modelingBuild and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model./grill-meA relentless interview to sharpen a plan or design — one question at a time until every branch of the decision tree is resolved./grill-with-docsA relentless interview to sharpen a plan or design, which also creates docs (ADRs and glossary) as we go./handoffCompact the current conversation into a handoff document so a fresh agent can continue the work./prototypeBuild a throwaway prototype to answer a design question. Use when the user wants to sanity-check whether a state model or logic feels right, or explore what a UI should look like.Other plugins' skills for the same job