design-an-interface

design-an-interface is a skill for Claude Code, Codex from allemaar/open-skills. It costs 119 tokens per session (1,515 once invoked), scanned A, original, Apache-2.0.

A design workflow that creates several substantially different interface proposals, compares them, and combines the strongest ideas. An interface is the way other code or users interact with a module.

In plain words
What is it for?
Use it when shaping an API, deciding how a module should be called, exploring failure handling, or comparing alternative module boundaries.
Why use it?
It exposes trade-offs and weaknesses that are easy to miss when accepting the first design that comes to mind.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Part of the open-skills plugin — 58 skills shipped together

Good fit Use it when shaping an API, deciding how a module should be called, exploring failure handling, or comparing alternative module boundaries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/allemaar/open-skills/design-an-interface
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add allemaar/open-skills --skill design-an-interface
Clone the repo
git clone --depth 1 https://github.com/allemaar/open-skills

Made for: Claude Code, Codex.

Or install open-skills, the plugin that ships this one along with the rest of its 58 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-an-interface

README.md
[![agentmods](https://agentmods.dev/badge/skills/allemaar/open-skills/design-an-interface/github.svg)](https://agentmods.dev/skills/allemaar/open-skills/design-an-interface)
Your own site
<a href="https://agentmods.dev/skills/allemaar/open-skills/design-an-interface"><img src="https://agentmods.dev/badge/skills/allemaar/open-skills/design-an-interface/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-an-interface

Your own site · 80×15
<a href="https://agentmods.dev/skills/allemaar/open-skills/design-an-interface"><img src="https://agentmods.dev/badge/skills/allemaar/open-skills/design-an-interface.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,515 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.01515
Opus 5 $0.00060 $0.00758
Sonnet 5 $0.00024 $0.00303
Haiku 4.5 $0.00012 $0.00152

Measured 11d ago against content hash 69167caf84b3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

design-an-interface scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/design-an-interface/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/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?

Read the full file on GitHub · 121 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 121 lines · 119 tokens per session scan A 69167caf84b3

Subscribe to this mod's changes

design-an-interface is a skill published in the GitHub repository allemaar/open-skills (14 stars, last pushed today), licensed Apache-2.0. It adds 119 tokens to every session and 1,515 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.