Design it twice

From bdfinst/agentic-dev-team · View interactive version

Design it twice is an AI agent skill from the GitHub repository bdfinst/agentic-dev-team. 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 "design it twice", "what

How to use this skill

Skill file

Design It Twice

Overview

Your first design idea is rarely your best. This skill generates multiple radically different interface designs for a module by dispatching parallel sub-agents with divergent constraints, then compares them so the user can make an informed choice. Based on "Design It Twice" from John Ousterhout's A Philosophy of Software Design.

This skill is about interface shape, not implementation. Don't write code — design the contract.

When to Use

Process

1. Gather Requirements

Before designing, understand the constraints:

Explore the codebase to find existing patterns and conventions. Ask the user only for what you can't determine from the code.

2. Generate Designs (Parallel Sub-Agents)

Spawn 3+ sub-agents simultaneously using the Agent tool. Each must produce a radically different approach — not variations on a theme.

Assign each agent a different design constraint:

| Agent | Constraint | Optimizes for |

|-------|-----------|---------------|

| 1 | "Minimize the interface — aim for 1-3 methods max" | Simplicity, deep module |

| 2 | "Maximize flexibility — support many use cases and extension" | Generality, future-proofing |

| 3 | "Optimize for the most common caller — make the default case trivial" | Ergonomics, productivity |

| 4 | (optional) "Design around ports & adapters for cross-boundary deps" | Testability, isolation |

Each sub-agent produces:

  1. Interface signature — types, methods, parameters
  2. Usage example — how a real caller would use it
  3. What it hides — complexity kept internal
  4. Trade-offs — what you gain and what you give up

3. Present Designs

Show each design sequentially so the user can absorb one before seeing the next. Don't use comparison tables for the designs themselves — prose is better for understanding trade-offs.

4. Compare

After presenting all designs, compare them on these dimensions:

Give your own recommendation — which design is strongest and why. If elements from different designs would combine well, propose a hybrid. Be opinionated.

5. Synthesize

Ask the user:

The final design often combines insights from multiple options.

Anti-Patterns

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.