improve-codebase-architecture

Audit a repository for evidence-backed architecture improvements and present ranked candidates in a self-contained HTML report.

Updated May 18, 2024
One-click install
npx skills add https://github.com/joshhornby/dotfiles --skill improve-codebase-architecture-joshhornby
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improve-codebase-architecture
Source: https://github.com/joshhornby/dotfiles/tree/main/.claude/skills/improve-codebase-architecture
Command: npx skills add https://github.com/joshhornby/dotfiles --skill improve-codebase-architecture-joshhornby

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Teams often sense that a codebase has architectural problems but cannot tell which investment would pay off now. This Skill audits a repository or subsystem, gathers evidence from change history, callers, tests, and dependency direction, and ranks bounded architecture candidates so you stop guessing and stop producing generic cleanup lists. ## Core Features & Use Cases - Evidence-backed candidate ranking: Generates candidates such as deepening modules, collapsing pass-through chains, splitting god modules, moving seams, and repairing dependency direction, each with evidence, counterevidence, confidence, and recommendation strength. - Visual HTML report: Produces a self-contained, offline-readable HTML report with before-and-after diagrams, accessible markup, a comparison matrix, and one top recommendation, written to the OS temp directory by default. - Bounded audit scope: Treats the repository as read-only, respects the user's named scope, and stops before designing exact interfaces or editing code. - Use Case: Ask it to audit a multi-module service where every feature touches five files; it traces behavior, identifies a leaked-knowledge candidate as the top recommendation, and delivers a report you can share with the team before committing to a refactor. ## Quick Start Ask the assistant to audit this repository with the improve-codebase-architecture skill and produce a ranked architecture report.

Frequently Asked Questions about improve-codebase-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find which architecture refactor is worth doing in a large codebase?

Run an evidence-backed architecture audit that inspects change pressure, co-changing files, caller burden, dependency direction, and test quality. The skill ranks bounded candidates with recommendation strength and confidence, then presents a top recommendation in an HTML report instead of a generic cleanup list.

What does the architecture review report look like?

The report is a single self-contained HTML file with inline CSS and static SVG diagrams, no remote scripts or fonts. It contains a top recommendation, evidence summary, candidate cards with before-and-after visuals, a comparison matrix, and a collapsed method section, written to the OS temp directory by default.

Does the architecture audit modify my code?

No. The audit treats the repository as read-only and the HTML report is the only default output. It stops after ranking candidates and asks which one to explore before any design or implementation work begins.

When should I use a structure or design review instead of a full architecture audit?

Use a structure review when the question is about folder layout, package boundaries, or import enforcement, and a module design review when one named module's contract is the target. The audit skill fits when the open question is which architecture investment is worth making at all.

What happens if no architecture candidate is justified?

The audit explicitly recommends no architecture investment now rather than manufacturing a refactor. It records what evidence or change pressure would justify revisiting the area later.