design-interface
Skill0 starsChanged 3 months agoApache-2.0View on GitHub
Design a code interface and its responsibility boundary from concrete caller needs. Use when choosing what a module exposes, where coordination belongs, or how callers control dependencies and lifecycle. Do not use for visual UI design, domain terminology alone, critique alone, or implementing a settled feature or refactor without an unresolved interface decision.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- danielvm-git/bigpowerstheir own version, first seen Sep 1, 2026
- kkriccri/claude-skillstheir own version, first seen May 12, 2026
- suleimanodetoro/skillstheir own version, first seen Feb 8, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- suleimanodetoro/skills★ 788same name
- danielvm-git/bigpowers★ 252same name
- kkriccri/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- build-prototypeSkill
- challenge-planSkill
- evaluate-skillSkill
- fix-bugSkill
- implement-test-firstSkill
- improve-skillSkill
- investigate-bugSkill
- map-decisionsSkill
- migrate-systemSkill
- model-domainSkill
- refactor-codeSkill
- reframe-explanationSkill
- review-requirementsSkill
- split-workSkill
- synthesize-evidenceSkill
- write-agent-guidanceSkill
- write-commit-messageSkill
- write-skillSkill
- write-specSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 19
Place responsibilities where their information and consistency requirements can be satisfied.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Design Interface
Give callers a usable contract that puts coordination and change in a justified place, with enough detail to implement and verify the choice.
- Ground the decision in representative callers, current behavior, and the change or testing difficulty that prompted it. Trace the knowledge each caller repeats and what actually varies. Preserve the project's domain terms and accepted constraints; mark missing behavior or ownership decisions as open rather than choosing product policy through a type signature.
- Place responsibilities where their information and consistency requirements can be satisfied. Hide coordination that callers otherwise repeat, while leaving necessary caller choices visible. Account for resource ownership, ordering, failure, cancellation, concurrency, and compatibility where relevant. A smaller signature can conceal more obligations; fewer methods or more hidden code does not by itself improve a design.
- Sketch a concrete contract and realistic caller use, including a consequential failure or lifecycle path. State inputs, results, obligations, and which side owns side effects and recovery. Compare against the current design or a materially different alternative using caller burden, change locality, and required guarantees. Keep the existing boundary when a wrapper or merger adds indirection or couples responsibilities without demonstrated benefit.
- Choose dependency control from the behavior that must be exercised. A single production implementation can still need a boundary for time, I/O, lifetime, or isolation; a second adapter is not a prerequisite. Conversely, a test alone does not justify exposing internal wiring to every caller. State what can be verified through the proposed contract and what needs real dependency or integration evidence. Keep useful existing tests unless their coverage is demonstrably replaced; a redesign is not blanket authority to delete them.
- Recommend a design with its decisive trade-off, supported guarantees, and any remaining uncertainty. Return or record the contract at the requested scope. Distinguish a worked example from executed proof and a proposed interface from implemented behavior. Stop when representative callers and the material failure or lifecycle path fit the contract, responsibility and verification ownership are explicit, and the choice or unresolved blocker is reviewable.
This Skill owns the interface decision. Code discovery stays in tools; ordinary implementation and behavior-preserving structural edits are separate outcomes. Domain modeling resolves disputed meaning, critique tests a selected proposal, and test-first work controls implementation order. Compose only when their independent outcomes are also requested. Choosing an interface does not require a glossary, an ADR, multiple agents, or implementation permission beyond the user's existing scope.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

