improve-codebase-architecture

Identify shallow modules and generate an HTML deepening report aligned with ADRs and domain language.

Updated May 21, 2026
One-click install
npx skills add https://github.com/jaehun0630/cline-superpowers --skill improve-codebase-architecture-jaehun0630
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improve-codebase-architecture
Source: https://github.com/jaehun0630/cline-superpowers/tree/main/packages/skills/improve-codebase-architecture
Command: npx skills add https://github.com/jaehun0630/cline-superpowers --skill improve-codebase-architecture-jaehun0630

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Surface architectural friction and identify opportunities to deepen the codebase by turning shallow modules into deep, testable units that are easier to navigate and evolve.

Core Features & Use Cases

  • Identify shallow modules where the interface nearly matches the implementation and propose concrete deepening opportunities.
  • Review ADRs and domain glossaries (CONTEXT.md, LANGUAGE.md) to ensure alignment with project language and constraints.
  • Produce an HTML report with before/after visuals and a recommended top candidate to deepen, plus a gridding of trade-offs and locality gains.

Quick Start

Run the skill against a repository to surface shallow modules and generate a deepening HTML 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 identify shallow modules in my codebase for refactoring?

To identify shallow modules for refactoring, analyze your project's ADRs and architecture documents to find spots where the interface nearly matches the implementation. This surfaces deepening opportunities to turn them into deeply testable units.

What is a shallow module in software architecture?

A shallow module in software architecture is a component where the interface is nearly identical in complexity to its implementation. Identifying these modules helps surface friction and guides refactoring efforts to create deep, testable units.

How do I refactor shallow modules to improve testability?

To refactor shallow modules and improve testability, review your domain glossaries and ADR constraints to propose deepening actions. Constrain suggestions to existing domain language to ensure the refactored modules are easier to navigate and evolve.

Does this architecture analysis require existing ADRs and CONTEXT.md files?

Yes, this architecture analysis reads your project's ADRs, CONTEXT.md, and architecture-related documents to align recommendations with your domain language and constraints. These documents provide the necessary vocabulary for before and after visualisations.

Can I get a visual report of architectural friction and deepening opportunities?

Yes, you can generate an HTML report visualizing architectural friction and deepening opportunities. The report includes before and after visualizations aligned with your domain vocabulary, a recommended top candidate to deepen, and a grid of trade-offs.

What is the best way to align architectural refactoring with domain language?

The best way to align architectural refactoring with domain language is to constrain suggestions strictly to existing terms found in your CONTEXT.md and LANGUAGE.md files. This approach respects the domain language and avoids proposing new interfaces during the analysis.