design-an-interface
/design-an-interface
Generate multiple radically different interface designs for a module, then compare and synthesize. Use when the user wants to design an API, explore interface options, compare module shapes, or says "design it twice" / "give me options" / "what should this interface look like". Also trigger proactively when a user is about to implement something non-trivial and hasn't locked in an interface yet. Not /insight-explore (brainstorms approaches as prose) or /plan-create (turns a chosen design into a phased plan) — this produces concrete, comparable interface designs.
- Author
- allemaar ↗
- Repository
- open-skills ↗
- Licence
- Apache-2.0
- Last repository change
- 05.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 05.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
What it does and when to use it
Generate multiple radically different interface designs for a module, then compare and synthesize. Use when the user wants to design an API, explore interface options, compare module shapes, or says "design it twice" / "give me options" / "what should this interface look like". Also trigger proactively when a user is about to implement something non-trivial and hasn't locked in an interface yet. Not /insight-explore (brainstorms approaches as prose) or /plan-create (turns a chosen design into a phased plan) — this produces concrete, comparable interface designs.
Triggers from the description
Original author description
Generate multiple radically different interface designs for a module, then compare and synthesize. Use when the user wants to design an API, explore interface options, compare module shapes, or says "design it twice" / "give me options" / "what should this interface look like". Also trigger proactively when a user is about to implement something non-trivial and hasn't locked in an interface yet. Not /insight-explore (brainstorms approaches as prose) or /plan-create (turns a chosen design into a phased plan) — this produces concrete, comparable interface designs.
How it works
- Step 1 — Gather Requirements
- Step 2 — Generate Designs
- Step 3 — Compare
- Step 4 — Synthesize
- Reference
SKILL.md preview
---
name: design-an-interface
description: Generate multiple radically different interface designs for a module, then compare and synthesize. Use when the user wants to design an API, explore interface options, compare module shapes, or says "design it twice" / "give me options" / "what should this interface look like". Also trigger proactively when a user is about to implement something non-trivial and hasn't locked in an interface yet. Not /insight-explore (brainstorms approaches as prose) or /plan-create (turns a chosen design into a phased plan) — this produces concrete, comparable interface designs.
visibility: public
self-improvable: true
next-skills:
- skill: plan-create
phrase: "/plan-create"
why: "Turn the chosen interface design into a phased plan"
- skill: improve-codebase-architecture
phrase: "/improve-codebase-architecture"
why: "Find refactors that deepen the modules behind the interface"
triggers:
- "/design-an-interface"
- "design an API"
- "explore interface options"
- "compare module shapes"
- "design it twice"
- "give me options"
- "what should this interface look like"
---
# /design-an-interface
From "Design It Twice" (Ousterhout): your first idea is rarely the best. The value is in contrast — not in any single design.
## Step 1 — Gather Requirements
Shallow intake produces shallow designs. Ask these specifically — not just "what does it do?":
1. What is the one-sentence job of this module?
2. Who are the callers? (other modules, end users, tests, CLI, external systems)
3. Walk me through the happy path in code — what does the call site actually look like?
4. What are the failure modes? What can go wrong, and who handles it?
5. What must the interface hide? What should callers never need to know about?
6. Any hard constraints? (performance, compatibility with existing patterns, language idioms)
7. Is there a "most common case" that should be especially ergonomic?
Don't proceed until you have real answers. One vague sentence is not enough.
## Step 2 — Generate Designs
If you have a Task tool: spawn all three designs simultaneously. Each agent gets the requirements plus its assigned lens and must produce a design that would surprise the others. Brief them to actively resist the obvious answer.
If you don't have Task: run them sequentially, but commit fully to each design before moving to the next. Don't let later designs learn from earlier ones — write each as if it were your only attempt.
**Produce 3 radically different designs.** Radically different means different information hiding boundaries — not just different method names or parameter orders. Three designs that all accept a config struct and return a result are not radically different, even if the method names differ.
Use these lenses to force divergence:
| Design | Constraint | Core question |
|--------|-----------|---------------|
| Minimal | 1–3 operations max | What is the smallest surface that covers all cases? |
| Caller-empowering | Expose primitives; let caller compose | What if we trust the caller with more control? |
| Common-case-first | Optimize the happy path to one line | What if the 95% case has zero friction, even if edge cases are awkward? |
Add a 4th for domain-specific shapes (event-driven, streaming, builder, type-state) when relevant.
For each design, produce:
- **Interface** — concrete method signatures, types, function signatures. Not schematic.
- **Usage example** — real call-site code for: happy path, error case, one awkward case.
- **What this hides** — complexity that lives inside, invisible to callers.
- **What this exposes** — decisions or knowledge pushed onto the caller.
- **Where it shines / breaks down** — 1–3 honest sentences.
## Step 3 — Compare
Fill this table, then write prose.
| Dimension | Design 1 | Design 2 | Design 3 |
|-----------|----------|----------|----------|
| # of operations | | | |
| Caller knowledge required | low/med/high | | |
| Error handling location | inside / outside | | |
| Composability | y/n | | |
| Fits most common case | | | |
The table shows **what**. The prose explains **why it matters**. Go deep on where the designs diverge most — depth, misuse resistance, evolution over time, and the awkward case each design can't handle cleanly. Don't soften it. Say which designs have real problems.
Apply the Evaluation Criteria from the Reference section below.
## Step 4 — Synthesize
This is the highest-value output. Produce something concrete:
1. State your recommendation and why, referencing the comparison.
2. Write the synthesized design — concrete signatures, not description. If one design wins outright, restate it as a clean spec. If the answer is "take X's shape, borrow Y's error handling, add Z's escape hatch," write that out.
3. Name **the one thing to get right** — the decision that, if wrong, causes the most pain later.
Close by asking: "Does this fit your primary use case? Anything from the other designs worth keeping?"
---
## Reference
Use these during Step 3. Don't apply them during generation.
### Evaluation Criteria (APOSD)
- **Interface simplicity** — fewer methods, simpler params → easier to learn, harder to misuse.
- **Depth** — small interface hiding large complexity = deep module (good). Large interface over thin implementation = shallow module (avoid).
- **General-purpose vs. specialized** — can it handle adjacent use cases without changes? Beware over-generalization, but also beware interfaces that lock in today's assumptions.
- **Implementation efficiency** — does the interface allow an efficient implementation, or force awkward internals?
- **Ease of correct use** — the best interfaces make the right thing the natural thing.
### Anti-Patterns
- **Convergent designs** — if all three designs are the same module with different names, you've failed. Start over with harder constraints.
- **Skipping comparison** — generating without comparing is just brainstorming. The value is in the contrast.
- **Implementing** — this skill is about interface shape. Don't write internals.
- **Premature synthesis** — don't merge designs during generation. Let them stay fully different until Step 4.
- **Vague trade-offs** — "more flexible" means nothing. More flexible how, for whom, at what cost?
> **Human output.** This skill's handler-facing output obeys the human-output
> contract (`human-output/SKILL.md`).
> **Next skills.** On completion, run the Next Skills protocol (`next-skills/SKILL.md`): surface the `next-skills` recommendations from front-matter for the caller to pick. Offer only — never auto-invoke.
> **Self-improvement.** On completion, run the Self-Improvement Protocol (`self-improve/SKILL.md`): if this run surfaced a concrete, blocking-or-recurring weakness in this skill, propose a specific fix for the handler to approve. Conservative — silent otherwise. Never auto-apply.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · allemaar/open-skills | 100 | Apache-2.0 |
| TerminalSkills/skills | 100 | Apache-2.0 |
| gonzalezpazmonica/savia | 100 | MIT |
| mkurman/zorai | 100 | MIT |
| OutlineDriven/odin-codex-plugin | 100 | Apache-2.0 |
| gsd-build/gsd-2 | 100 | MIT |
Database snapshot: 13.11.2026 · package version c0fc16c0b6f0 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100flux-design-interface
Generate multiple radically different interface designs for a module using parallel sub-agents, then compare and synthesize. Based on "Design It Twice" from "A Philosophy of Software Design". Use when user wants to design an API, explore interface options, compare module shapes,… - 100design-it-twice
Generate multiple radically different interface designs for a module using parallel sub-agents, then compare and synthesize. Based on Ousterhout's "Design It Twice" principle. Use when the user wants to explore interface options, design an API, compare module shapes, or says… - 100design-interface
Explore multiple radically different interface designs for a feature in parallel before committing to one. Uses parallel sub-agents to generate distinct approaches so you can compare tradeoffs rather than anchoring on the first idea. For UI/UX interface work specifically — not… - 100evanflow-design-interface
Design a module's interface using parallel sub-agents producing radically different designs ("design it twice"). Compare on depth, simplicity, and efficiency. Embedded grill on the synthesized choice. Use when designing a new API, exploring interface options, or deciding the… - 100design-it-twice
Design it twice: sketch two rival interfaces, then compare them. Use when the task or your plan adds or reshapes a module whose interface is not obvious, before you settle on one. - 10021st-ui-explore
Explore and compare multiple meaningfully different UI directions grounded in the current project's design system and 21st inspiration. Use when the user wants options, variants, concepts, a redesign direction, visual experimentation, or is unsure how a new interface should…