improve-codebase-architecture

Identifies architectural deepening opportunities and generates HTML+Mermaid visual reports for refactoring codebases.

3|Updated Jul 30, 2023
One-click install
npx skills add https://github.com/danielcopper/dotfiles --skill improve-codebase-architecture-danielcopper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improve-codebase-architecture
Source: https://github.com/danielcopper/dotfiles/tree/main/claude/.claude/skills/improve-codebase-architecture
Command: npx skills add https://github.com/danielcopper/dotfiles --skill improve-codebase-architecture-danielcopper

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill addresses architectural friction caused by shallow, tightly-coupled modules that are difficult to test and navigate, helping you transform them into deep, maintainable components.

Core Features & Use Cases

  • Architectural Review: Automatically scans codebase hot spots to identify deepening opportunities based on domain language and ADRs.
  • Visual Analysis: Generates self-contained HTML reports with Mermaid diagrams and editorial visuals to illustrate before-and-after architectural states.
  • Refactoring Guidance: Provides a structured grilling loop to explore interface design, dependency strategies, and seam placement.

Quick Start

Invoke the improve-codebase-architecture skill to scan the current repository for architectural refactoring opportunities and generate an HTML review 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 refactor shallow modules to improve codebase testability?

To improve codebase testability, you must identify architectural deepening opportunities that convert shallow modules into deep, testable components. This involves scanning repository hot spots and applying specific architectural vocabulary to restructure dependencies.

What is a deep module in software architecture?

In software architecture, a deep module is a component that hides significant implementation complexity behind a simple interface, enhancing system navigability. Converting shallow modules into deep ones reduces architectural friction and improves testability.

How do I generate a visual report for architectural refactoring analysis?

Generating a visual report for architectural refactoring requires scanning the codebase for deepening opportunities to produce a self-contained HTML file. This report utilizes Mermaid diagrams to illustrate before-and-after architectural states for structural analysis.

Can I use architectural review to find dependency strategies for modularization?

Yes, architectural review identifies dependency strategies for modularization by applying a structured grilling loop to explore interface design and seam placement. This approach analyzes domain language to discover refactoring opportunities and improve system modularity.

Does codebase refactoring require specific architecture decision records?

Codebase refactoring utilizes architecture decision records to identify deepening opportunities based on established domain language. Adhering to specific architectural vocabulary ensures the refactoring process aligns with existing modularization strategies and system design constraints.

What are the limitations of analyzing codebase architecture for modularity?

Limitations of analyzing codebase architecture for modularity include the strict adherence required to specific architectural vocabulary and the need to generate visual reports for structural analysis. The process focuses exclusively on deepening shallow modules to improve testability.