improve-codebase-architecture

Analyze codebases for architectural friction and propose refactoring opportunities.

17|2|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/SeemSeam/agent-roles-spec --skill improve-codebase-architecture-seemseam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improve-codebase-architecture
Source: https://github.com/SeemSeam/agent-roles-spec/tree/main/roles/archi/skills/vendor/improve-codebase-architecture
Command: npx skills add https://github.com/SeemSeam/agent-roles-spec --skill improve-codebase-architecture-seemseam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill identifies architectural friction in codebases and suggests refactoring opportunities to improve testability and AI-navigability.

Core Features & Use Cases

  • Deepening Opportunities: Surface architectural friction and propose refactors to turn shallow modules into deep ones.
  • Codebase Analysis: Explore the codebase for shallow modules, tightly-coupled modules, and untested areas.
  • Read-only Report: Present findings in a Markdown report with candidates for refactoring, benefits, and recommendations.
  • Glossary: Use a consistent vocabulary for architecture and domain-specific terms.

Quick Start

Use the improve-codebase-architecture skill to analyze the architecture of the current project.

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 architectural friction in my codebase?

To identify architectural friction, analyze the codebase for shallow modules, tightly-coupled components, and untested areas. This process surfaces refactoring opportunities that turn shallow modules into deep ones, enhancing overall testability.

What is module deepening in software architecture?

Module deepening is a refactoring technique that transforms shallow modules into deep ones by consolidating functionality and hiding implementation details. It reduces architectural friction by simplifying interfaces and improving codebase testability.

How do I refactor a codebase to improve testability and AI-navigability?

Refactor a codebase for testability and AI-navigability by exploring the project to detect tightly-coupled modules and untested areas. The analysis proposes structural improvements that reduce friction and make the architecture easier to navigate.

Do I need to understand software architecture principles to analyze codebase refactoring opportunities?

Yes, analyzing codebase refactoring opportunities requires knowledge of software architecture principles and domain-specific vocabulary. This background knowledge is necessary to interpret the friction findings and apply the recommended structural improvements.

Can I automatically apply codebase refactoring changes or does it only generate a report?

It only generates a read-only Markdown report. The analysis presents findings with candidates for refactoring, benefits, and recommendations, requiring you to manually apply the proposed architectural changes to your codebase.

What is the best way to find shallow modules in a software project?

The best way to find shallow modules is by performing a dedicated codebase analysis that explores the project structure. This surfaces architectural friction by identifying modules with complex interfaces but minimal hidden implementation.