1
    Codebase Architecture Improver

    Codebase Architecture Improver

    by Arnstein Larsen

    Systematically refactor large codebases, eliminate circular dependencies, and define clean module boundaries.

    Updated Jun 2026
    Security scanned

    $12.99

    · or 65 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Included in download

    • Identify and eliminate circular dependencies in complex repositories.
    • Decompose "God Objects" into maintainable, single-responsibility modules.
    • Instant install

    Sample input

    Assess our Node.js monorepo's architecture; we're seeing circular dependencies and long build times in the 'services' folder. Propose a plan to decouple them.

    Sample output

    Architectural Audit & Refactor Plan

    1. Dependency Mapping: Identified 4 circular imports between UserSvc and BillingSvc. 2. Layering Violation: DatabaseModel is leaking into the View layer. 3. Refactor Sequence:

    • Move Shared DTOs to /libs/contracts.
    • Extract common logic to Auth-Base mixin.
    • Implement Dependency Injection for Logger.

    About This Skill

    What it does

    This skill transforms sprawling, "organically grown" repositories into logically structured architectures without the high risk of a full rewrite. It identifies the root causes of technical debt—such as circular dependencies, layering violations, and god objects—and provides a systematic, step-by-step roadmap to fix them.

    Why use this skill

    Unlike generic AI prompting, the Codebase Architect uses a specific diagnostic methodology: it triages pain points, maps actual dependency directions, and identifies "seams" for decoupled testing. It doesn't just suggest clean code; it sequences refactoring steps to ensure the codebase remains functional throughout the transition. It is specifically designed to help developers who are inheriting legacy systems or scaling a startup MVP into a maintainable enterprise application.

    Supported Tools & Frameworks

    The skill is language-agnostic but excels with modular frameworks in TypeScript/JavaScript, Python, Go, and Java. It produces outputs tailored to your workflow, whether you need a high-level executive audit, a technical refactoring sequence, or team-wide architectural conventions.

    The Result

    You receive a concrete dependency map, a list of boundary violations, and a prioritized sequence of "micro-updates" that incrementally improve the system's modularity and reduce change-cost.

    Use Cases

    • Identify and eliminate circular dependencies in complex repositories.
    • Decompose "God Objects" into maintainable, single-responsibility modules.
    • Establish strict layering rules to prevent technical debt accumulation.
    • Create an incremental refactoring sequence to avoid high-risk rewrites.
    • Audit module boundaries to improve testability and reduce build times.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    No special permissions declared or detected

    Compatible with SKILL.md-compatible agents including Claude Code and Aider.

    Frequently Asked Questions

    More Premium Skills