improve-codebase-architecture
deep modules, shallow modules, improve architecture, refactoring opportunities, consolidate tightly-coupled modules, module deepening, architectural friction
Skill by KroniK907
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/kronik907-improve-codebase-architecture
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/improve-codebase-architecture
What's inside
- Skill name
improve-codebase-architecture- Description
- deep modules, shallow modules, improve architecture, refactoring opportunities, consolidate tightly-coupled modules, module deepening, architectural friction
- License
- MIT
- Instructions
- 87 lines in SKILL.md · view on GitHub
Files (2)
- REFERENCE.md
- SKILL.md
SKILL.md (first lines)
# Improve Codebase Architecture Explore a codebase the way an agent would, note where navigation gets hard, and propose module-deepening refactors as GitHub issue RFCs. A **deep module** (John Ousterhout, "A Philosophy of Software Design") has a small interface hiding a large implementation. Deep modules are easier to test at the boundary and easier for agents to reason about. ## Process ### 1. Explore the codebase Use an explore sub-agent to navigate the codebase. Note where you hit friction: - Understanding one concept requires bouncing between many small files - The interface is nearly as complex as the implementation (shallow module) - Pure functions were extracted for testability, but bugs hide in how they are wired together - Tightly-coupled modules create integration risk at their boundaries - Parts of the codebase are untested or hard to test Where you slow down is the signal. **Done when:** You have a list of friction points with file paths. ### 2. Present candidates Present a numbered list of deepening opportunities. For each candidate, show: - **Cluster**: Which modules/concepts are involved - **Why they're coupled**: Shared types, call patterns, co-ownership of a concept - **Dependency category**: See [REFERENCE.md](REFERENCE.md) for the four categories - **Test impact**: What existing tests would be replaced by boundary tests Do not propose interfaces yet. Ask the user: "Which of these would you like to explore?" **Done when:** The user picks one candidate (or declines). ### 3. User picks a candidate Wait for the user's choice before continuing. ### 4. Frame the problem space Before spawning sub-agents, write a user-facing explanation of the problem space for the chosen candidate: - The constraints any new interface would need to satisfy - The dependencies it would need to rely on - A rough illustrative code sketch to make the constraints concrete - this is not a proposal, just a way to ground the constraints Show this to the user, then proceed to Step 5. The user reads while the sub-agents work in parallel. **Done when:** The problem-space write-up is posted. ### 5. Design multiple interfaces Spawn 3+ sub-agents in parallel. Each must produce a **distinct** interface for the deepened module. Prompt each sub-agent with a separate technical brief (file paths, coupling details, dependency category, what's being hidden). Give each agent a different design constraint: - Agent 1: "Minimize the interface - aim for 1-3 entry points max" - Agent 2: "Maximize flexibility - support many use cases and extension" - Agent 3: "Optimize for the most common caller - make the default case trivial" - Agent 4 (if applicable): "Design around the ports & adapters pattern for cross-boundary dependencies" Each sub-agent outputs: 1. Interface signature (types, methods, params) 2. Usage example showing how callers use it 3. What complexity it hides internally 4. Dependency strategy (how deps are handled - see [REFERENCE.md](REFERENCE.md)) 5. Trade-offs Present designs sequentially, then compare them in prose. After comparing, give your own recommendation: which design you think is strongest and why. If elements from different designs would combine well, propose a hybrid. Be opinionated - the user wants a strong read, not just a menu. **Done when:** All designs are presented with a recommendation. ### 6. User picks an interface (or accepts recommendation) Wait for the user's choice. ### 7. Create GitHub issue Create a refactor RFC as a GitHub issue using `gh issue create`. Use the template in [REFERENCE.md](REFERENCE.md). Create it and share the URL. **Done when:** The issue URL is posted.
From KroniK907/agent-config, MIT.
More from KroniK907/agent-config
- 0.570score
babysit
KroniK907
Babysit a pull request: wait for reviewbot, fix what holds up, push, and repeat until the review comes back clean, then merge.
SkillAFreshness: AClaude Code +9 - 0.567score
backlog-sweep
KroniK907
Sweep a repo's open GitHub issues: close what shipped or went stale, narrow what is half done, and label small quick work priority: high.
SkillAFreshness: AClaude Code +9 - 0.565score
subagent
KroniK907
Pick the model and reasoning effort for a subagent before you spawn one.
SkillAFreshness: AClaude Code +9 - 0.565score
hatch
KroniK907
Open a hatch: serve a dev server, static page, report, or prototype on a private tailnet URL with the hatch CLI.
SkillAFreshness: AClaude Code +9 - 0.561score
writing-for-agents
KroniK907
writing for agents, create or edit skills, AGENTS.md, CLAUDE.md, project rules, skill description pointers, context pointers, leading words
SkillAFreshness: AClaude Code +9 - 0.561score
commit
KroniK907
commit this chat, git commit agent output, snapshot chat changes, commit work from this conversation, commit only this session's changes, split commits from…
SkillAFreshness: AClaude Code +9 - 0.561score
ccr-summary
KroniK907
CCR summary, summarize a CCR, Consumer Confidence Report PDF, water quality report PDF, 40 CFR 141.156, § 141.156 summary
SkillAFreshness: AClaude Code +9 - 0.558score
triage-issue
KroniK907
triage, bug report, file issue with fix plan, investigate a problem, root cause and TDD fix plan, what's broken
SkillAFreshness: AClaude Code +9 - 0.553score
write-a-skill
KroniK907
write-a-skill, create a skill, write a skill, build an agent skill, new agent skill
SkillAFreshness: AClaude Code +9 - 0.553score
wayfinder
KroniK907
Overview of the wayfinder map lifecycle - map, grill, build, release - and which skill runs each step.
SkillAFreshness: AClaude Code +9 - 0.552score
taste-skill-v2
KroniK907
Anti-slop frontend skill for landing pages, portfolios, and redesigns.
SkillAFreshness: AClaude Code +9 - 0.539score
code-review
KroniK907
Review a PR, branch, or diff since a ref on two axes - standards and spec - and report or post the findings.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 7
- Last commit (this folder)
- Sep 25, 2026 (1 month ago)
- Last release
- Sep 23, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/KroniK907/agent-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from KroniK907
- 0.570score
babysit
KroniK907
Babysit a pull request: wait for reviewbot, fix what holds up, push, and repeat until the review comes back clean, then merge.
SkillAFreshness: AClaude Code +9 - 0.567score
backlog-sweep
KroniK907
Sweep a repo's open GitHub issues: close what shipped or went stale, narrow what is half done, and label small quick work priority: high.
SkillAFreshness: AClaude Code +9 - 0.565score
subagent
KroniK907
Pick the model and reasoning effort for a subagent before you spawn one.
SkillAFreshness: AClaude Code +9 - 0.565score
hatch
KroniK907
Open a hatch: serve a dev server, static page, report, or prototype on a private tailnet URL with the hatch CLI.
SkillAFreshness: AClaude Code +9 - 0.561score
commit
KroniK907
commit this chat, git commit agent output, snapshot chat changes, commit work from this conversation, commit only this session's changes, split commits from…
SkillAFreshness: AClaude Code +9 - 0.561score
ccr-summary
KroniK907
CCR summary, summarize a CCR, Consumer Confidence Report PDF, water quality report PDF, 40 CFR 141.156, § 141.156 summary
SkillAFreshness: AClaude Code +9
Cite this page
improve-codebase-architecture skill. Agent Mart. https://agentmart.dev/skills/kronik907-improve-codebase-architecture (last updated 2026-10-24)