Shape modules and interfaces - deep modules with small interfaces, seams where tests and change happen - or find where an existing codebase's architecture hurts and propose how to improve it. Use on "comment on structure ça", "c'est quoi la bonne interface", "improve the architecture", during frame when the shape is the question.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Design?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sycatle-design)
---
name: design
description: Shape modules and interfaces - deep modules with small interfaces, seams where tests and change happen - or find where an existing codebase's architecture hurts and propose how to improve it. Use on "comment on structure ça", "c'est quoi la bonne interface", "improve the architecture", during frame when the shape is the question.
---
# Design
Good design is what keeps the next change cheap. The test of a structure is not how it looks today but
how much code the next three likely changes will have to touch, and how much of the system someone must
understand to make them.
## Ideas that carry the weight
- **Deep modules.** A module earns its place when its interface is much simpler than what it hides. A
thin wrapper that mirrors what it wraps adds a layer to learn and hides nothing. Prefer fewer, deeper
modules to many shallow ones.
- **Information hiding.** Each module owns a decision (a format, a protocol, a policy) that nobody else
needs to know. When two modules must change together for every feature, they share a decision that
belongs in one of them.
- **Seams.** The public interfaces where behaviour is observed and tested, and where an implementation
can be swapped. Put them where change is likely and where the tests should live, not everywhere.
- **Names that say what.** If no honest name comes, the boundary is probably in the wrong place.
- **The simplest thing that serves the known needs.** Abstraction for needs nobody has costs today and
usually guesses the future wrong. A second implementation is the moment for an interface, not the first.
## Designing something new
1. List what it must do (the spec's criteria) and what is likely to change. Done when you know which
decisions to hide.
2. Sketch two or three shapes, not one: the modules, what each hides, the interface each exposes, and how
a test reaches it. Compare them on the next likely changes.
3. Recommend one with its trade-off. When it is hard to reverse, it is an ADR (`adr`).
## Improving what exists
1. Find the friction from evidence, not taste: files that always change together (`git log`), modules
everyone must read to change anything, tests that break on refactors, the bugs that keep coming back.
Done when each problem has an example from the history or the code.
2. For each, propose the move (merge two shallow modules, move a decision behind one interface, cut a
middle layer, introduce a seam), what it costs, and what it makes cheaper.
3. Order them so each step leaves the code working and is worth it on its own. Big-bang rewrites are
where projects go to die; a sequence of small moves, each tested, gets there. Hand the sequence to
`to-tickets`.