/frontend-skills:improve-codebase-architecturefrom frontend-skills
Explores codebase for architectural improvement, focusing on testability by deepening shallow modules. Use when you want to improve architecture, find refactoring opportunities, or consolidate tightly-coupled modules.
Ships in frontend-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. The aim is testability and AI-navigability.
This skill is informed by the project's domain model. The domain glossary names good seams; ADRs in the area record decisions the skill should not re-litigate. Read both before exploring.
Use LANGUAGE.md vocabulary exactly: module, interface, implementation, depth, deep, shallow, seam, adapter, leverage, locality. Do not drift into "component," "service," "API," or "boundary."
Key principles:
Read the project's domain glossary and any ADRs in the area you're touching first.
Use Agent(subagent_type=Explore) when available. Otherwise explore with rg, find, tests, and call graph reading. Look for:
Apply the deletion test to anything that looks shallow.
Write a self-contained HTML file to the OS temp directory so nothing lands in the repo. Resolve 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 (open, xdg-open, or start) and tell them the absolute path.
Use Tailwind via CDN and Mermaid via CDN. Mix Mermaid with hand-crafted CSS/SVG visuals. Each candidate gets a before/after visualization. See HTML-REPORT.md for scaffold, diagram patterns, styling, and tone.
For each candidate card:
Strong, Worth exploring, or SpeculativeUse LANGUAGE.md vocabulary for architecture and the project's CONTEXT.md vocabulary for the domain. If a candidate contradicts an existing ADR, only surface it when friction is real enough to warrant revisiting the ADR. Mark it clearly.
Do not propose interfaces yet. After writing the report, ask: "Which of these would you like to explore?"
Once the user picks a candidate, drop into a grilling conversation. Walk the design tree: constraints, dependencies, shape of the deepened module, what sits behind the seam, what tests survive.
Side effects happen inline as decisions crystallize:
CONTEXT.md? Add the term to CONTEXT.md. Create the file lazily if missing. See ../domain-model/CONTEXT-FORMAT.md.CONTEXT.md right there.Refactor RFC. See REFERENCE.md for template and dependency categories.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub redpanda-data/ui-harness --plugin frontend-skills69 skills in this plugin
/brainstormingUse when exploring design options, starting new features, or needing to think before coding. Two modes: design (explore approaches with trade-offs) and challenge (stress-test decisions). No implementation until design is approved./cavemanUltra-compressed reply mode. Use when user asks be brief or /caveman./codex-compatGenerate Codex hooks.json and AGENTS.md from Claude Code hooks. Maps supported hooks directly, including Edit|Write apply_patch aliases, and keeps Stop batch checks only as fallback. Use when setting up Codex compatibility or dual-agent support.Other plugins' skills for the same job