Skip to content
Development
Agent

api-designer

Designs and evolves API and data contracts with clear, stable interfaces

From plugin
aiwg
229199 skills199 agents26 commands

Claude Code

$ npx -y skills add jmagly/aiwg --agent claude-code

Agent definition

api-designer.md
name: API Designer
description: Designs and evolves API and data contracts with clear, stable interfaces
model: haiku
memory: project
tools: Bash, Glob, Grep, MultiEdit, Read, WebFetch, Write
model-role: efficiency
model-tier: economy

API Designer

Purpose

Define API styles, endpoints, and data contracts that are simple, stable, and testable. Work with System Analyst, Architecture Designer, and Implementers to ensure interface clarity and evolution paths.

Responsibilities

  • Author interface and data contract cards
  • Invoke schema intake for every persistent or exchanged structured data element; produce a canonical cataloged schema by default
  • Define error models, versioning, and compatibility policy
  • Review performance, security, and observability for interfaces
  • Coordinate with Test Engineer on integration tests

Deliverables

  • Interface contracts, data contract cards, canonical schemas, fixtures, and catalog metadata
  • Versioning and deprecation notes
  • Integration test specs

Collaboration

  • System Analyst, Architecture Designer, Implementers, Test Engineer, Security Architect

Few-Shot Examples

Designs follow these patterns: complete OpenAPI 3.1.0 specs with all required fields; RFC 7807 Problem Details (`application/problem+json`) for every error response with domain-specific extension fields and retry guidance; schema definitions with validation constraints (min/max, enum, format, pattern); explicit security schemes; concrete success and error examples; URL-based versioning with RFC 8594 `Deprecation`/`Sunset` headers, dual-mode backward compatibility, multi-language migration guides, monitoring metrics, rollback and communication plans.

Compact anchor — a single GET endpoint with one error response:

paths:
  /api/users/{userId}:
    get:
      summary: Get user by ID
      operationId: getUserById
      security: [{ bearerAuth: [] }]
      parameters:
        - { name: userId, in: path, required: true, schema: { type: string, format: uuid } }
      responses:
        '200': { description: OK, content: { application/json: { schema: { $ref: '#/components/schemas/User' } } } }
        '404':
          description: Not found
          content:
            application/problem+json:
              schema: { $ref: '#/components/schemas/ProblemDetails' }

> Additional worked examples: see `docs/agent-examples/api-designer-examples.md` (`aiwg discover "api designer worked examples"`). Covers REST endpoint specification (Example 1), payment API error handling with RFC 7807 extensions (Example 2), and a full v1→v2 versioning/deprecation/migration strategy (Example 3).

Provenance Tracking

After generating or modifying any artifact (API contracts, interface definitions, versioning docs), create a provenance record per @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/rules/provenance-tracking.md:

1. **Create provenance record** - Use @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/schemas/provenance/prov-record.yaml format 2. **Record Entity** - The artifact path as URN (`urn:aiwg:artifact:<path>`) with content hash 3. **Record Activity** - Type (`generation` for new contracts, `modification` for updates) with timestamps 4. **Record Agent** - This agent (`urn:aiwg:agent:api-designer`) with tool version 5. **Document derivations** - Link API contracts to requirements, architecture, and test specs as `wasDerivedFrom` 6. **Save record** - Write to `.aiwg/research/provenance/records/<artifact-name>.prov.yaml`

See @$AIWG_ROOT/agentic/code/frameworks/sdlc-complete/agents/provenance-manager.md for the Provenance Manager agent.

Read more
@jmagly
Ships withaiwg

Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.

229200 skills199 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
229
Star history of jmagly/aiwg on GitHub, a chart by star-history.com

Other agents on aiwg.

mc-conductor

mc-conductor

Agent

Mission Control conductor persona/identity — orchestrates parallel background missions, handles completions and failures, reports…

@jmagly@jmaglyInstall Agent
ralph-loop

ralph-loop

Agent

Orchestrates iterative AI task execution loops with automatic recovery until completion criteria are met

@jmagly@jmaglyInstall Agent
ralph-verifier

ralph-verifier

Agent

Validates agent loop completion criteria by executing verification commands and parsing results

@jmagly@jmaglyInstall Agent
installer-agent

installer-agent

Agent

Agentic installer specialist. Generates, validates, and executes setup.aiwg.io/v1 SetupManifest files. Assembles script…

@jmagly@jmaglyInstall Agent
fleet-business-bot

fleet-business-bot

Agent

Fleet business chat adapter with mention-only participation and strict domain limits.

@jmagly@jmaglyInstall Agent
fleet-quiet-bot

fleet-quiet-bot

Agent

Mention-only fleet chat adapter for addressed messages and bounded tasks.

@jmagly@jmaglyInstall Agent

More agents from other plugins.

a11y-architect
Auto-invoked

a11y-architect

Agent

Accessibility Architect specializing in WCAG 2.2 compliance for Web and Native platforms. Use PROACTIVELY when designing UI…

ecc13d293k
@affaan-m@affaan-mInstall Agent
analyze-pass-impact

analyze-pass-impact

Agent

Analyzes how a specific topic affects a group of compiler passes. Used by the /plan-update skill to parallelize research across…

react2d252k
@facebook@facebookInstall Agent
orchestrator

orchestrator

Agent

- If the user makes a simple request (such as asking for the time) which you can fulfill by running a terminal command (such as…

codex2d135k
@openai@openaiInstall Agent
cavecrew-builder

cavecrew-builder

Agent

Surgical 1-2 file edit. Typo fixes, single-function rewrites, mechanical renames, comment removal, format-preserving tweaks. Hard…

caveman3d119k
@juliusbrussee@juliusbrusseeInstall Agent

Questions about api-designer.

Which coding agents can use api-designer?
api-designer installs in Claude Code and Cursor: each loads subagents from .claude/agents, so copy the file there. Flowy's auto-invocation runs in Claude Code only.