improve-codebase-architecture

Explores a codebase to find module-deepening refactoring opportunities and files them as GitHub issue RFCs.

Updated Apr 6, 2026
One-click install
npx skills add https://github.com/toderian/project_template --skill improve-codebase-architecture-toderian
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: improve-codebase-architecture
Source: https://github.com/toderian/project_template/tree/main/plugins/agents-extras/skills/improve-codebase-architecture
Command: npx skills add https://github.com/toderian/project_template --skill improve-codebase-architecture-toderian

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Codebases accumulate shallow, tightly-coupled modules that are hard to test and hard for both humans and AI agents to navigate. This Skill turns that vague architectural friction into concrete, prioritized refactoring proposals with designed interfaces and a filed GitHub issue RFC. ## Core Features & Use Cases - Friction-driven exploration: Navigates the codebase organically, using git history hot spots and a deletion test to identify shallow modules and coupled clusters worth deepening. - Parallel interface design: Spawns multiple design explorations that each produce a radically different interface, then compares them and gives an opinionated recommendation. - RFC issue creation: Writes the chosen design as a structured refactor RFC via gh issue create, covering problem, interface, dependency strategy, and testing strategy. - Use Case: A team notices their service layer is split across dozens of tiny pass-through modules. Run this Skill to surface the coupling clusters, pick one, receive three alternative interface designs, and get a ready-to-discuss GitHub issue for the refactor. ## Quick Start Ask the agent to explore this repository for architectural improvement opportunities and propose module-deepening refactors as GitHub issues.

Frequently Asked Questions about improve-codebase-architecture

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

FAQPage Schema
How do I find refactoring opportunities in a large codebase?

Explore the codebase organically and note where understanding one concept requires bouncing between many small files. Use git log to focus on hot spots, then apply the deletion test: if deleting a module makes complexity reappear across callers, it earns its keep; if complexity vanishes, it is a pass-through.

What is a deep module in software architecture?

A deep module has a small interface hiding a large implementation, making it more testable and easier to navigate. It can be tested at its seam rather than inside, unlike shallow modules whose interface is nearly as complex as their implementation.

How do I create a refactoring RFC as a GitHub issue?

The Skill runs gh issue create with a structured template covering the problem, proposed interface, dependency strategy, testing strategy, and implementation recommendations. It creates the issue directly and shares the URL without requiring prior review.

Does this work with both Claude Code and Codex?

Yes, the Skill uses whatever exploration and parallel-dispatch mechanism the host runtime offers, such as Claude Code's Explore subagent and Agent tool or Codex MultiAgentV2 workers. Sequential execution is the fallback when neither is available.

When should I not use module-deepening refactors?

Avoid deepening modules in code nobody touches, since the refactor will never pay off. Scope the search to hot spots from recent git history first, and only widen the net across the repo when changes are scattered with no clear hot spot.