All skills
codebase-design
Redesign a module's interface around deep modules, clean seams, and testable surfaces.
- Part of mattpocock/skills
- 979k installs
- Developer Tools · Code review
When to use it
You have a module whose interface has grown wide and leaky, and you need to decide what to hide and where the seam belongs.
For example
You say
Use codebase-design to reshape my OrderService class: it has 12 public methods and tests reach into its internals. Propose a smaller interface and where the seam should go.
You get
- Redesigned interface proposal
- Seam placement decision
- Test surface recommendation
How it works
- Applies the deletion test to spot pass-through modules that add no value.
- Uses depth-as-leverage rather than counting implementation lines against interface lines.
More Code review skills
See all- requesting-code-review289kRequests a code review after tasks or major features to verify the work meets requirements.
- receiving-code-review247kChecks code review feedback for technical soundness before acting on it, instead of agreeing blindly.
- golang-security45.1kReviews Go code for injection, crypto, SSRF and secrets issues, and suggests threat modeling and fuzzing.
- golang-safety43kChecks Go code for nil panics, integer overflow, slice aliasing and other accidental bugs.
Also in this pack
- grill-me1.6MInterviews you relentlessly to sharpen a plan or design before you commit to it.
- grill-with-docs1.4MInterviews you hard about a plan while also writing decision records and a glossary as you go.
- improve-codebase-architecture1.3MScans a codebase for structural improvement opportunities, shows them in an HTML report, then digs into your pick.
- tdd1.3MBuilds features and fixes bugs test-first, writing failing tests before code and refactoring after.