Skip to content
Agent Orchestration
Skill

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

From plugin
evanflow
41916 skills2 agents1 hook

Claude Code

$ npx -y skills add evanklem/evanflow --skill evanflow-design-interface --agent claude-code

SKILL.md

evanflow-design-interface.SKILL.md
name: evanflow-design-interface
description: 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 shape of a refactor before writing code.

EvanFlow: Design an Interface

Source principle: "Design It Twice" from John Ousterhout's *A Philosophy of Software Design*. Your first idea is unlikely to be the best. Generate radically different designs, compare, synthesize.

Vocabulary

See `evanflow` meta-skill. Key terms: **interface**, **depth**, **module**, **adapter**.

When to Use

  • Designing a new API surface (tRPC router, service interface, public function set)
  • Refactor changes a public interface — design before implementing
  • Stuck on the shape of a module
  • The team disagrees on the right interface

The Flow

1. Gather Requirements

  • What problem does this module solve?
  • Who are the callers? (other modules, external users, tests)
  • Key operations
  • Constraints (performance, compatibility, existing project patterns from `CONTEXT.md`)
  • What should be hidden vs. exposed

2. Spawn Parallel Sub-Agents (Design It Twice — actually 3+)

Dispatch 3+ Explore or general-purpose agents simultaneously (single message, multiple Agent tool calls). Each gets a **radically different** constraint:

  • **Agent 1:** "Minimize method count — aim for 1–3 methods max."
  • **Agent 2:** "Maximize flexibility — support many use cases."
  • **Agent 3:** "Optimize for the most common case (specify what that is)."
  • **(Optional) Agent 4:** "Take inspiration from <specific paradigm or library>."

Each returns:

1. Interface signature (types, methods, params) 2. Usage example (how the caller actually uses it) 3. What the design hides internally 4. Trade-offs

3. Present Designs Sequentially

Show each design separately so the user can absorb each before comparison. No tables yet — let each design stand on its own.

4. Compare

After all designs are shown, compare on:

  • **Interface simplicity**: fewer methods, simpler params
  • **General-purpose vs. specialized**: flexibility vs. focus
  • **Implementation efficiency**: does the shape allow efficient internals or force awkward ones?
  • **Depth**: small interface hiding significant complexity (good) vs. large interface with thin implementation (bad)
  • **Ease of correct use** vs. **ease of misuse**

Discuss in prose. Highlight where designs diverge most.

5. Synthesize

Often the best design combines insights from multiple options. Ask:

  • "Which design best fits the primary use case?"
  • "Any elements from other designs worth incorporating?"

6. Embedded Grill on the Synthesis

Before committing to the design:

  • "What's the simplest way a caller could misuse this?"
  • "What test would force this interface to change unnecessarily? Does that test exist or would we write it?"
  • "Is the interface still simple after we incorporate the borrowed elements, or did the synthesis bloat it?"
  • "Apply the deletion test to internal helper modules implied by this design."

Hard Rules

  • **Don't let sub-agents converge.** Enforce radical difference. If agents return similar designs, re-spawn with sharper constraints.
  • **Don't skip comparison.** The value is in the contrast.
  • **Don't implement.** This skill is purely about interface shape. Implementation goes through `evanflow-writing-plans` + `evanflow-tdd`.
  • **Don't evaluate based on implementation effort.** Evaluate on interface quality.
  • **Never auto-commit.** Even a design doc gets staged, not committed.

Hand-offs

  • Design chosen → `evanflow-writing-plans` (the plan implements the design)
  • Design reveals architecture concerns → `evanflow-improve-architecture` first
  • New domain terms emerged → `evanflow-glossary` to update `CONTEXT.md`
Read more
@evanklem
Ships withevanflow

A TDD-driven iterative feedback loop for software development with Claude Code. 16 cohesive skills + 2 custom subagents walk an idea from brainstorm through implementation, with checkpoints throughout where you stay in control.

41916 skills2 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
419
Star history of evanklem/evanflow on GitHub, a chart by star-history.com

Other skills on evanflow.

evanflow-brainstorming

evanflow-brainstorming

Clarify intent, propose 2-3 approaches, embedded grill to stress-test the chosen path. Use before any creative work — new…

@evanklem@evanklemInstall Skill
evanflow-coder-overseer

evanflow-coder-oversee…

Orchestrate parallel implementation with coder/overseer pairs. Coders implement decomposed tasks using evanflow-tdd; overseers…

@evanklem@evanklemInstall Skill
evanflow-compact

evanflow-compact

Manage long-session context to prevent drift and degradation. Strategies for proactive summarization, branch isolation, and…

@evanklem@evanklemInstall Skill
evanflow-debug

evanflow-debug

Root-cause discipline for bugs, test failures, and unexpected behavior. Embedded grill on the hypothesis before writing fix code.…

@evanklem@evanklemInstall Skill
evanflow-executing-plans

evanflow-executing-pla…

Execute a written implementation plan task-by-task with inline verification. Stop and ask on blockers. No forced sub-skill…

@evanklem@evanklemInstall Skill
evanflow-glossary

evanflow-glossary

Extract canonical domain terms into CONTEXT.md. Flag ambiguities (same word, different meanings) and synonyms (different words,…

@evanklem@evanklemInstall Skill

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw5d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca3d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip4d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about evanflow-design-interface.

Which coding agents can use evanflow-design-interface?
evanflow-design-interface installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.