Back to skills
SKILL.md
Improve Codebase Architecture
ASecurityUse when Scans a codebase for deepening opportunities, architectural bottlenecks, tight coupling, and produces a prioritized visual improvement roadmap.
- 5 stars
- 0 votes
- 0 copies
- 1 view
- Added September 27, 2026
Works with
Security analysis
100/100npx -y skills add Harmitx7/tribunal-kit --skill improve-codebase-architecture --agent claude-codeAre you the author of Improve Codebase Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/harmitx7-improve-codebase-architecture-tribunal-kit)---
name: improve-codebase-architecture
description: "Use when Scans a codebase for deepening opportunities, architectural bottlenecks, tight coupling, and produces a prioritized visual improvement roadmap."
version: 5.0.0
last-updated: 2026-09-13
skills:
- codebase-design
- clean-code
- architecture
tools: Read, Grep, Glob, Bash, Edit, Write
scripts-binding:
- .agent/scripts/lint_runner.js
- .agent/scripts/verify_all.js
---
# Improve Codebase Architecture β Architectural Audit & Refactoring
---
## π οΈ Technical Architecture & Reference Recipes
---
---
## 4 Audit Steps
### 1. Dependency Graph Inspection
- Map import relationships across modules. Identify circular dependencies (`A -> B -> C -> A`) and break them by introducing event buses or interface abstractions.
### 2. Monolithic Controller Detection
- Flag files exceeding 500 lines of code containing mixed concerns (database queries, HTTP response handling, email sending, data validation).
### 3. Interface Shrinking (Deepening Modules)
- Audit public exports. Convert large multi-parameter interfaces into thin, single-responsibility contracts.
### 4. Prioritized Architectural Roadmap Output
Output audit findings in a clear prioritized Markdown table:
| Impact Level | Architectural Issue | Proposed Seam / Refactor |
| -------------------- | ------------------------------------------------ | ------------------------------------------------- |
| π΄ **High Impact** | Direct DB queries inside React Server Components | Extract Repository layer pattern |
| π **Medium Impact** | Circular import between Auth and User modules | Introduce `EventBus` for user registration events |
| π‘ **Low Impact** | Hardcoded API base URLs across 12 files | Centralize in typed `ConfigService` |
Attribution
Comments
Loading commentsβ¦