zacczakk/metronome/interface-design
Claude Code and agent skill by zacczakk/metronome
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use for explicit design of expensive-to-reverse public interfaces, API contracts, adapter boundaries, schemas, or state models with multiple callers. Do not invoke for routine internal helpers or ordinary implementation work.
Install
npx vskill@latest install zacczakk/metronome/interface-designSKILL.md
Interface Design
Overview
First designs are usually local maxima. Design the interface more than once, compare alternatives by leverage and locality, then choose deliberately.
Vocabulary
| Term | Meaning | |
|---|---|---|
| Module | Anything with an interface and implementation: function, class, package, workflow, or slice. | |
| Interface | Everything callers must know: types, invariants, ordering, errors, config, performance. | |
| Seam | Place where behavior can change without editing callers. | |
| Adapter | Concrete thing satisfying an interface at a seam. | |
| Depth | Capability hidden behind a small interface. | |
| Leverage | Benefit callers get from depth. | |
| Locality | Maintenance benefit from concentrating change and verification. |
When to Use
- User asks for API, CLI, schema, adapter, module, or state-machine design.
- A decision would be expensive to reverse once implemented.
- Tests are hard to write because the interface is unclear.
- Multiple callers or integrations will depend on the shape.
Do not use for small internal helpers where the interface is obvious and cheap to change.
Process
- Frame the problem space for the user:
- constraints the interface must satisfy
- likely callers
- invariants and error modes
- what should sit behind the seam
- Generate at least three materially different alternatives. Use parallel subagents only when the boundary is complex enough that independent perspectives justify the coordination cost:
- Minimal interface: 1-3 entry points, maximum leverage.
- Flexible interface: supports extension and varied callers.
- Common-case interface: optimizes the dominant caller path.
- Adapter-oriented interface: useful when external systems vary.
- Require each subagent to return:
- interface shape
- usage example
- hidden implementation responsibilities
- dependency/adapters strategy
- tradeoffs
- Compare alternatives by depth, locality, seam placement, test surface, and failure modes.
- Recommend one design or a small hybrid. Do not dump options without a strong read.
Evaluation Heuristics
- Deletion test: if deleting the module removes complexity, it was probably pass-through. If complexity reappears across callers, it was earning its keep.
- One adapter means a hypothetical seam. Two adapters means a real seam.
- The interface is the test surface. If tests must pierce it, the shape is wrong.
- Avoid interfaces that expose ordering constraints callers should not need to know.
- Prefer narrow interfaces that make invalid states hard to represent.
Output Shape
// concise sketch only
Common Mistakes
| Mistake | Fix | |
|---|---|---|
| One design only | Generate at least three materially different shapes. | |
| Comparing aesthetics | Compare leverage, locality, seam placement, and tests. | |
| Over-generalizing | Add flexibility only when callers or adapters justify it. | |
| File-path thinking | Design contracts first; locate files later. |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingconfigs/skills/interface-design/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zacczakk/metronome/interface-design)