improve-codebase-architecture

Identifies shallow modules and generates HTML reports with Mermaid diagrams.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/Frantss/oxform --skill improve-codebase-architecture-frantss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improve-codebase-architecture
Source: https://github.com/Frantss/oxform/tree/main/.agents/skills/improve-codebase-architecture
Command: npx skills add https://github.com/Frantss/oxform --skill improve-codebase-architecture-frantss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses architectural friction caused by shallow modules, where interfaces are overly complex and logic is scattered, making the codebase difficult to test and navigate.

Core Features & Use Cases

  • Architectural Analysis: Identifies shallow modules and suggests refactors to create deep, cohesive units.
  • Visual Reporting: Generates self-contained HTML reports with Mermaid diagrams and custom SVG visuals to illustrate dependency flows and deepening opportunities.
  • Design Vocabulary: Enforces a strict domain and architectural vocabulary to ensure consistent communication and decision-making.

Quick Start

Invoke the improve-codebase-architecture skill to scan the current repository and generate an architectural review report in the system temporary directory.

Frequently Asked Questions about improve-codebase-architecture

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

FAQPage Schema
How do I refactor shallow modules to improve codebase testability?

Refactoring shallow modules improves codebase testability by consolidating scattered logic into deep, cohesive components. The skill analyzes dependency graphs and call flows to propose structural improvements that enhance locality and leverage, making interfaces simpler and logic centralized.

What is a shallow module in software architecture?

A shallow module in software architecture is a component with an overly complex interface and scattered internal logic. This creates architectural friction that makes the codebase difficult to test and navigate, requiring structural improvements to create deep, cohesive units with better locality.

How do I visualize dependency graphs and call flows for architectural review?

You can visualize dependency graphs and call flows by generating self-contained HTML reports with Mermaid diagrams and custom SVG visuals. These visual reports illustrate dependency flows and deepening opportunities to facilitate collaborative design decisions and architectural alignment.

Does this architectural analysis require any specific dependencies or environment setup?

No specific dependencies or environment setup are required to run this architectural analysis. You can invoke the skill directly to scan the current repository and generate an architectural review report in the system temporary directory without external components.

What is the best way to enforce consistent design vocabulary during codebase refactoring?

The best way to enforce consistent design vocabulary during codebase refactoring is to apply a strict domain and architectural vocabulary. This ensures consistent communication and decision-making when identifying shallow modules and proposing structural improvements for deepening components.

When should I not use automated architectural refactoring proposals?

You should avoid automated architectural refactoring proposals when your codebase lacks clear dependency graphs or call flows to analyze. Without traceable structural data, generating accurate visual HTML reports or proposing cohesive deep modules becomes unreliable for collaborative design decisions.