/fulls1z3-skills:improve-codebase-architecturefrom fulls1z3-skills
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
Ships in fulls1z3-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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:
GLOSSARY.md gives names to good seams; ADRs in docs/adr/ record decisions this command should not re-litigate.Scope before you scan: YAGNI. Deepening a module pays off by making future changes to it easier, so put extra weight on the parts of the codebase that have recently changed. Decide where to look before you look:
git log --oneline) to find the codebase's hot spots, the files and areas that keep coming up, and let those paths pull your attention first. If the changes are scattered with no clear hot spot, widen the net.Read the project's domain glossary (GLOSSARY.md) and any ADRs in the area you're touching first.
Then spawn a sub-agent with a fresh context window to walk the codebase. Don't follow rigid heuristics; explore organically and note where you experience friction:
Imagine removing the module. If its complexity disappears, investigate a pass-through. If the complexity spreads across callers, identify what the module already hides before proposing a change.
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.
Give each candidate a before/after diagram. Embed CSS and static SVG in the report so it renders offline. Use call graphs for dependencies, sequence diagrams for round trips, and cross-sections for module depth.
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 GLOSSARY.md vocabulary for the domain, and the /codebase-design vocabulary for the architecture. If GLOSSARY.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.
Load the sibling grill-with-docs workflow. Use its first question card to choose a candidate from the report. Defer interface proposals until the user makes that choice. Explore the chosen module's constraints, seam, hidden implementation and surviving tests through the same interview. Use its glossary and ADR rules when a term changes or a candidate is rejected for a lasting architectural reason.
When alternative interfaces would clarify the trade-off, use the design-it-twice procedure from codebase-design.
What SKILL.md sets; muted values are Claude Code's defaults
5 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 discussing codebase terminology, writing or editing a GLOSSARY.md, or recording or editing an ADR./grillingStress-test a plan, decision or idea through dependency-aware interview rounds with mandatory interactive question cards. Use when the user asks to be grilled or to challenge their thinking, or runs /grilling.Other plugins' skills for the same job
npx claudepluginhub fulls1z3/skills --plugin fulls1z3-skills