architecture-audit

Solid

Audits codebase for architectural friction, shallow modules; proposes RFCs. Triggers: improve architecture, shallow modules, deepen modules, reduce coupling.

AI & Automation 155 stars 19 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
73
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Architecture Audit $ARGUMENTS Explore a codebase organically, surface architectural friction, and propose module-deepening refactors as GitHub issue RFCs. ## Usage ``` /architecture-audit [area to audit or 'full codebase'] ``` ## What This Command Does 1. **Explores** codebase organically — friction IS the signal 2. **Presents** deepening candidates to user 3. **Frames** problem space for chosen candidate 4. **Spawns** 3+ parallel sub-agents for radically different interface designs 5. **Compares** and recommends 6. **Files** RFC as GitHub issue ## Key Concept A **deep module** (Ousterhout) has a small interface hiding a large implementation. Deep modules enhance testability, AI navigation, and enable boundary testing. A **shallow module** has a large interface with thin implementation — avoid. ## Process ### 1. Organic Exploration Use Agent (subagent_type=Explore) to navigate the codebase naturally. Note friction: - Where does understanding one concept require bouncing between many small files? - Where are modules so shallow the interface is nearly as complex as the implementation? - Where have pure functions been extracted just for testability but real bugs hide in how they're called? - Where do tightly-coupled modules create integration risk in the seams? - What is untested or hard to test? ### 2. Present Candidates Numbered list. For each candidate show: | Field | Content | |-------|---------| | Cluster | Which modules/concepts are involved | | Why coupl...

Details

Author
softspark
Repository
softspark/ai-toolkit
Created
2 months ago
Last Updated
2 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Listed

improve-codebase-architecture

Read-only audit of an EXISTING codebase for module-depth problems that make it hard for AI agents to work in. Surfaces shallow modules (leaky interfaces, many tiny files exporting internals), zero-test modules, and tightly-coupled clusters, then proposes deepening candidates with coupling rationale + a test-boundary recommendation. Produces a prioritized markdown report — NEVER auto-refactors. Grounded in Ousterhout's A Philosophy of Software Design (deep vs shallow modules) + the principle that test/feedback-loop quality sets the ceiling on AI coding quality (SWE-bench Verified). Use after /audit or /test-audit, before a big AI-assisted refactor, or when agents keep producing low-quality changes in one area. Triggers (CZ+EN) "/improve-codebase-architecture", "improve architecture", "deepen modules", "make this codebase agent-friendly", "why does AI write bad code in this repo", "shallow modules audit", "prohlub moduly", "zlepši architekturu", "proč tu AI píše špatný kód", "najdi shallow moduly".

2 Updated 6 days ago
Rejnyx
AI & Automation Listed

improve-codebase-architecture

Side-route skill for architecture exploration and deepening opportunities. Use when the user wants to find structural improvements, shallow-module pain, or refactor opportunities that may flow into /request-refactor-plan or /execute. Not for already-scoped implementation tasks.

2 Updated today
chrislacey89
AI & Automation Listed

codebase-architecture-audit

Use before architecture-significant code work to recover the actual source-backed system shape: modules, dependencies, domain seams, runtime coupling, ownership, quality attributes, tests, docs, and risks.

3 Updated today
Xopoko