AGENT SKILL
improve-codebase-architecture
Use when reviewing architecture or deepening modules.
- License 许可
- MIT
- 最近更新
- 2026-06-16
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- improve-codebase-architecture
- license
- MIT
- description
- Use when reviewing architecture or deepening modules.
03 SKILL.md 正文
Improve Codebase Architecture
Find architectural friction and propose deepening opportunities: shallow modules becoming deep modules.
Vocabulary
Use: module, interface, implementation, depth, deep, shallow, seam, adapter, leverage, locality. Avoid component, service, API, and boundary when these apply.
Process
- Read
CONTEXT.md,CONTEXT-MAP.md, and relevant ADRs first when they exist. - Look for file-bouncing, shallow pass-throughs, low locality, leaky seams, and hard tests.
- Apply the deletion test: if complexity vanishes, the module is shallow.
- Classify dependencies: in-process, local-substitutable, owned remote, or external.
- Write a short HTML report in the OS temp directory with candidates and before/after diagrams.
- After the user picks a candidate, grill constraints, seam placement, adapters, and tests.
When domain terms are resolved during the conversation, update CONTEXT.md inline. Offer ADRs only for decisions that are hard to reverse, surprising without context, and based on a real tradeoff.
Keep report prose concise. The diagram should carry the architectural explanation.