/syv-skills:improve-codebase-architecturefrom syv-skills
Analyzes codebases for architectural friction and proposes refactors that turn shallow modules into deep ones, producing a visual HTML report. Useful for improving testability, reducing coupling, and making codebases more navigable.
Ships in syv-skills. 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.
Surface architectural friction and propose deepening opportunities: refactors that turn shallow modules into deep ones, for testability and AI-navigability.
Read LANGUAGE.md first and use its terms exactly: module, interface, implementation, depth (deep, shallow), seam, adapter, leverage, locality. Don't drift into "component", "service", "API" or "boundary". Its deletion test carries most of the weight: imagine deleting the module, and see whether complexity vanishes (a pass-through) or reappears across its callers (it was earning its keep).
If the project keeps a domain glossary (e.g. GLOSSARY.md or CONTEXT.md) or architecture decision records (ADRs), let them inform the work: domain language names good seams, and ADRs record decisions not to re-litigate. Neither is required.
Read the glossary and any ADRs in the area first.
Scope before you scan. Deepening pays off where code keeps changing, so weight the areas that change most. If the user named an area or direction, take it. Otherwise walk back a good stretch of history (for example git log --since=6.months --name-only --format=, counted per file or directory) to find the hot spots, and start there. If changes are scattered with no clear hot spot, widen the scan, and stop once you have the few candidates worth a card: a long list of weak ones buries the strong.
Then walk the code — delegate to an exploration subagent with a fresh context window if your harness has one; otherwise keep the exploration narrow. Explore organically and note where you feel friction:
Apply the deletion test to anything you suspect is shallow.
Present the candidates as one self-contained page, never written into the repo: published as an artifact where your harness can, otherwise a local HTML file (architecture-review-<timestamp>.html in the OS temp directory) opened in the browser, with its full absolute path given to the user. Delivery details are in HTML-REPORT.md.
Each candidate gets a card with:
Strong, Worth exploring or SpeculativeEnd with a top recommendation: which candidate to tackle first and why. Scaffold, diagram patterns and styling are in HTML-REPORT.md.
Use the project's domain vocabulary for the domain and LANGUAGE.md vocabulary for the architecture: "the Order intake module", not "the FooBarHandler" or "the Order service".
If a candidate contradicts an ADR, include it only when the friction justifies reopening the decision, and mark it on the card ("contradicts ADR-0007 — worth reopening because…").
Don't propose interfaces yet. Once the page is delivered, ask which candidate the user wants to explore.
When the user picks a candidate, walk the design tree with them: constraints, dependencies, the shape of the deepened module, what sits behind the seam, which tests survive. The grill-me skill, a relentless interview through the decision tree, is a good companion. This step is done when the user accepts a design for the candidate, rejects the candidate, or asks for it to be implemented.
Record decisions as they settle:
What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/brainstormingThinks an idea through with the user before anything is built — new angles and radical alternatives, their thoughts organised and drawn, every open decision settled — and ends in an agreed design. Use when a feature or behaviour change is underspecified, when several approaches are plausible, when the user wants to explore an idea or think a design through, or wants their thinking organised or mapped. To only be questioned on a plan that already exists, use grill-me./executing-plansExecutes a written implementation plan task by task, verifying each step and reviewing the result against the plan before calling it done. Use when there is an existing plan to implement, in this session or one started fresh from a handoff./grill-meInterviews the user relentlessly about an idea, plan or design until reaching shared understanding, resolving each branch of the decision tree. Use when the user wants to stress-test a plan, get grilled on an idea or design, or mentions "grill me". It is the interview inside brainstorming; when the idea also needs alternatives or a written design, use brainstorming./guardrailsReviews what a coding agent could damage in this repo, notes the controls already in place, and asks which remaining risks to cover./handoffCompacts the current conversation into a handoff document so another agent can pick up the work. Use when you want to hand off to a fresh session, or when continuing in a clean context would work better than carrying this one forward./improve-code-designFinds named design problems in a codebase — the anti-patterns coding agents produce most — and names the remedy for each. Use for a design review, when assessing agent-generated code, when changing one thing keeps breaking another, or when someone shares more than one file and asks for an opinion on it, even if they never say "design". Not for single-function bug hunts, formatting or performance work.npx claudepluginhub syv-ai/agentic-coding-playbook --plugin syv-skillsOther plugins' skills for the same job