/open-skills:design-an-interfacefrom open-skills
Generates multiple radically different interface designs for a module, then compares and synthesizes them. Useful when designing APIs, exploring interface options, or comparing module shapes.
Ships in open-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
From "Design It Twice" (Ousterhout): your first idea is rarely the best. The value is in contrast — not in any single design.
Shallow intake produces shallow designs. Ask these specifically — not just "what does it do?":
Don't proceed until you have real answers. One vague sentence is not enough.
If the runtime provides fresh isolated worker contexts: spawn the three designs within its supported bounded controls. 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.
Without fresh contexts, produce the contrasting designs sequentially and complete each before the next. Label this a useful correlated same-context fallback; prior visible designs prevent a claim of independent generation.
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:
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.
This is the highest-value output. Produce something concrete:
Close by asking: "Does this fit your primary use case? Anything from the other designs worth keeping?"
Use these during Step 3. Don't apply them during generation.
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 thenext-skillsrecommendations 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): apply its signal taxonomy and threshold to this run; surface any surviving proposal for handler approval. Conservative — silent otherwise. Never auto-apply.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
api-design, interface-design, design-exploration, module-shape
npx claudepluginhub allemaar/open-skills --plugin open-skills93 skills in this plugin
/agent-mailboxTwo or more agents — any harness, any vendor — collaborate through any shared folder: share a folder, load the skill, point at it.
/agent-outputCompact agent-to-agent communication contract for worker reports, handoffs, status, blockers, and review findings. Trigger phrases: "/agent-output", "brief the worker", "make agent reports terse". Not a transport; use /agent-mailbox for delivery.
/ask-gateThe Ask-Gate Protocol (AGP). Before surfacing an AskUserQuestion, triage whether the question is genuinely the handler's call (anti-nag); ask routine questions directly after a quality checklist, but escalate high-stakes / branching / irreversible ones through /insight-critique then /insight-assess first. Trigger via /ask-gate, or automatically before any handler-facing question. Not /caller-options (routes a skill's venue/mode) or /next-skills (recommends successors) — AGP governs the question itself.
Other plugins' skills for the same job