improve-codebase-architecture

Audit React and .NET codebases to map module boundaries and propose refactors.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit a codebase to identify confusing module boundaries, tightly coupled modules, and shallow abstractions that hinder AI-assisted development.

Core Features & Use Cases

  • Map module boundaries and identify single-responsibility violations across frontend (apps/web/src) and backend (services/<Service>/)
  • Identify four problem patterns: confusing boundaries, shallow modules, tight coupling, and poor pure function extraction
  • Prioritize findings with P1-P4 and generate a concrete refactor plan for high-priority issues
  • Align with workflow to produce actionable steps that can be implemented incrementally

Quick Start

Provide a guided audit of a codebase to identify architectural smells and propose concrete refactors

Frequently Asked Questions about improve-codebase-architecture

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

FAQPage Schema
How do I audit my codebase for confusing module boundaries and tight coupling?

To audit a codebase for confusing module boundaries and tight coupling, you map module boundaries to detect single-responsibility violations. This identifies shallow modules, tight coupling, and poor pure function extraction across the frontend and backend.

What makes a codebase architecture hard for AI-assisted development?

A codebase architecture becomes hard for AI-assisted development when it contains shallow abstractions, tightly coupled modules, and confusing boundaries. These architectural smells prevent AI tools from effectively interpreting and modifying the code.

How do I refactor a React frontend and .NET backend for better testability?

To refactor a React frontend and .NET backend for better testability, you assess module boundaries and extract pure functions. A formal refactor plan prioritizes findings with P1-P4 scoring to generate actionable, incremental implementation steps.

Can I use this architecture audit on a full-stack app with React and .NET services?

Yes, you can use this architecture audit on a full-stack app with React and .NET services. It specifically applies boundary mapping and testability assessment to frontend code in apps/web/src and backend .NET services under services/<Service>/.

What is the best way to prioritize code refactoring tasks for maintainability?

The best way to prioritize code refactoring tasks for maintainability is using a P1-P4 priority scoring system. This scores identified architectural smells and generates a concrete refactor plan for high-priority issues to guide incremental implementation.