improve-codebase-architecture

Identify shallow modules and propose deepening opportunities in codebases.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you find architectural friction in a codebase, especially shallow modules, leaky seams, and tightly coupled logic that spreads complexity across many call sites.

Core Features & Use Cases

  • Architecture Review: Scan a repository for deepening opportunities that improve leverage, locality, and testability.
  • Refactoring Guidance: Recommend how to consolidate logic into deeper modules, define better seams, and introduce adapters only when they are justified.
  • Report Generation: Produce a structured HTML architecture review with before-and-after visuals and a top recommendation.
  • Design Exploration: Compare alternative interfaces for a chosen module and weigh trade-offs across depth, locality, and seam placement.

Quick Start

Ask me to review this repository for shallow modules and generate an architecture report with the best deepening opportunities.

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 shallow modules in my codebase for refactoring?

To find shallow modules for refactoring, analyze your repository architecture to identify tightly coupled logic and weak seams. This Skill scans your codebase to locate shallow modules and proposes deepening opportunities that improve leverage, locality, and testability across call sites.

What is a deep module in software architecture?

A deep module in software architecture provides a simple interface that hides complex implementation details, increasing leverage and locality. This Skill evaluates your existing modules to find shallow designs where complexity leaks out to many call sites instead of being contained.

How do I generate an architecture review report for my repository?

You can generate an architecture review report by scanning your repository for deepening opportunities. This Skill produces a structured HTML architecture report featuring before-and-after visuals and a top recommendation for consolidating logic into deeper modules.

Can I compare alternative interface designs to evaluate module depth?

Yes, you can compare alternative interface designs to weigh trade-offs across module depth, locality, and seam placement. This Skill evaluates dependency categories and helps you explore design options to determine which interface creates the deepest, most testable module.

Does this architecture review tool work with existing ADRs?

Yes, this architecture review tool uses domain language from CONTEXT.md and ADRs to evaluate your codebase. It actively flags conflicts with existing architectural decisions when proposing deepening opportunities and better seams for your modules.

When should I not use adapters when refactoring tightly coupled modules?

You should avoid introducing adapters during refactoring unless they are fully justified by the architecture review. This Skill recommends defining better seams and consolidating logic into deeper modules first, only suggesting adapters when they genuinely resolve tight coupling and testability gaps.