improve-codebase-architecture

Scan a codebase for architectural friction and generate an HTML report with before/after diagrams.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you identify shallow modules, hidden seams, and tangled call paths that make a codebase hard to understand, test, and navigate.

Core Features & Use Cases

  • Architecture review: Scans the codebase for deepening opportunities where the interface is too close to the implementation.
  • Visual reporting: Produces a self-contained HTML report with before/after diagrams, candidate files, problems, solutions, and benefits.
  • Review workflow: Supports follow-up exploration of a chosen candidate and keeps domain vocabulary aligned with CONTEXT.md and ADRs.

Quick Start

Ask this Skill to scan the repository for architectural friction and generate a visual HTML report of 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 identify shallow modules in my codebase for refactoring?▼

An architecture review targets shallow modules by scanning the codebase for deepening opportunities where the interface sits too close to the implementation. This surfaces hidden seams and tangled call paths, highlighting areas needing structural refactoring to improve testability.

What is a deepening opportunity in software architecture?▼

A deepening opportunity is a structural refactoring target where a shallow module's interface is too similar to its implementation. Deepening the module hides internal complexity, clarifies tangled call paths, and improves overall codebase testability and navigation.

How do I generate a visual report of architectural friction in my repository?▼

You generate a visual report of architectural friction by scanning the codebase for hard-to-test workflows and leaked seams. This process produces a self-contained HTML report featuring before/after diagrams, candidate files, and recommendation strengths for follow-up exploration.

Does an architecture review help improve testability of tangled call paths?▼

Yes, an architecture review improves testability by identifying tangled call paths and hidden seams that make workflows hard to test. By proposing deepening opportunities, it separates interface from implementation, reducing structural friction and enabling better test isolation.

What's the best way to review leaked seams and hard-to-test workflows?▼

The best way to review leaked seams and hard-to-test workflows is performing a structured architecture scan that evaluates module depth. This generates an HTML report with candidate files, problem descriptions, proposed solutions, and a top recommendation for focused follow-up exploration.

Can I align domain vocabulary during a codebase architecture review?▼

Yes, you can align domain vocabulary during a codebase architecture review. The review workflow supports follow-up exploration of candidate files while keeping domain vocabulary consistently aligned with CONTEXT.md and ADRs throughout the deepening process.