Design new APIs or review existing ones using debate-driven multi-agent workshop. Agents propose designs and challenge each other on consumer UX, domain modeling, security, performance, and standards compliance. Use when the user wants to design a new API, review an existing API, decide between REST/GraphQL, or improve API architecture. Keywords: api design, api review, rest api, graphql, openapi, api architecture, api specification, endpoint design, api standards.
A debate-driven multi-agent workshop for designing and reviewing APIs. Five specialized agents propose designs and challenge each other to produce a well-reasoned API specification.
Agents will need access to API design patterns and standards. The REFERENCE.md file
provides OpenAPI templates, design principles, and debate prompts.
The user provides:
If the user provides a URL to an existing spec, agents will review it rather than design from scratch.
Each agent brings a specialized perspective and debates with others:
| # | Agent | Focus | Challenges |
|---|---|---|---|
| 1 | API Designer | Consumer UX, discoverability, naming | "Is this intuitive for developers?" |
| 2 | Domain Modeler | Correct modeling, consistency, DDD | "Does this match the domain?" |
| 3 | Security Auditor | Auth/authz, data exposure, OWASP | "What are the security risks?" |
| 4 | Performance Analyst | Efficiency, caching, over/under-fetching | "Will this scale?" |
| 5 | Tech Lead | Standards compliance, versioning, docs | "Does this follow best practices?" |
Before spawning the workshop agents:
workspace/api-context.mdSpawn all five agents in parallel. Each receives:
agents/*.md)REFERENCE.md)Each agent independently:
workspace/proposals/<agent-name>.mdFor each significant design decision, run a mini-debate:
API Style (REST vs GraphQL vs RPC)
Authentication Strategy (OAuth2, API keys, JWT)
Versioning Strategy (URI, header, content negotiation)
Resource Design (granularity, relationships, operations)
Error Handling (status codes, error formats, problem details)
For each debate:
After all debates complete:
Generate the final deliverable following the template in REFERENCE.md:
Save to workspace/api-specification.md and present to the user.
The workshop should address these key decisions:
/v1/users (explicit, breaks caching)Accept: application/vnd.api+json;version=1 (clean URIs, harder to test)workspace/
├── api-context.md # Phase 1 context gathering
├── proposals/
│ ├── api-designer.md
│ ├── domain-modeler.md
│ ├── security-auditor.md
│ ├── performance-analyst.md
│ └── tech-lead.md
├── debates/
│ ├── api-style-debate.md
│ ├── auth-strategy-debate.md
│ ├── versioning-debate.md
│ ├── resource-design-debate.md
│ └── error-handling-debate.md
└── api-specification.md # Final deliverable
The user can customize the workshop by:
Adapt the agent roster and debate topics accordingly.
/api-workshop design an API for a task management system
/api-workshop review https://api.example.com/openapi.json
/api-workshop design a GraphQL API for e-commerce with subscriptions
/api-workshop compare REST vs GraphQL for our social network
The workshop adapts to whether you're designing new, reviewing existing, or comparing alternatives.