Skip to content
Skills Library
Programming · Planning

api-designer

/api-designer

Design REST or event-based APIs from container architecture: resources, operations, schemas, error model, and versioning strategy. Use when working on solution architecture, C4 diagrams, APIs, ADRs, or system design.

Repository
APES ↗
Licence
MIT
Last repository change
03.07.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
3
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 03.07.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Design REST or event-based APIs from container architecture: resources, operations, schemas, error model, and versioning strategy. Use when working on solution architecture, C4 diagrams, APIs, ADRs, or system design.

Original author description

Design REST or event-based APIs from container architecture: resources, operations, schemas, error model, and versioning strategy. Use when working on solution architecture, C4 diagrams, APIs, ADRs, or system design.

How it works

  1. Step 1: Identify API boundaries
  2. Step 2: Define resource model
  3. Step 3: Specify operations
  4. Step 4: Define schemas
  5. Step 5: Design error model
  6. Step 6: Versioning and compatibility
  7. Step 7: Validate
Original SKILL.md headings · 171 lines, 607 words
SKILL.md preview
---
name: api-designer
description: >
  Design REST or event-based APIs from container architecture: resources, operations, schemas, error model, and versioning strategy. Use when working on solution architecture, C4 diagrams, APIs, ADRs, or system design.
metadata:
  apes-version: "1.1"
  category: architecture
---

# API Designer

# Purpose

Design REST or event-based APIs from container architecture: resources, operations, schemas, error model, and versioning strategy.

**Input:** Container diagram, functional requirements, integration points  
**Output:** API Design document with resource model, endpoint catalog, schema definitions, and error conventions
**Examples:** See [examples.md](examples.md) for worked input/output.

---

# Workflow

## Step 1: Identify API boundaries

From container diagram, list APIs to design:

- Public (external consumers)
- Internal (service-to-service)
- Partner (B2B integrations)

One API surface per container that exposes HTTP/gRPC/events.

## Step 2: Define resource model

Map domain entities to resources:

| Resource | Description | Relationships |
|----------|-------------|---------------|

Use nouns for resources, HTTP verbs for actions. Avoid verb-based URLs.

## Step 3: Specify operations

For each resource, document:

| Method | Path | Operation | Request | Response | Auth |
|--------|------|-----------|---------|----------|------|

Include pagination, filtering, sorting for collections.

## Step 4: Define schemas

Document request/response schemas:

- Field names, types, required/optional
- Validation rules
- Enum values
- Idempotency keys where needed

Use OpenAPI-compatible structure without requiring OpenAPI syntax.

## Step 5: Design error model

Standard error envelope:

| Field | Purpose |
|-------|---------|
| code | Machine-readable error code |
| message | Human-readable description |
| details | Field-level errors (optional) |
| request_id | Tracing |

Map HTTP status codes to error categories.

## Step 6: Versioning and compatibility

Define:

- Versioning strategy (URL path, header, or content negotiation)
- Breaking vs non-breaking change rules
- Deprecation policy

## Step 7: Validate

Run Validation checklist.

---

# Decision Rules

| Condition | Action |
|-----------|--------|
| No container diagram | Stop; run container-diagram-builder |
| RPC-style operations dominate | Consider gRPC/event schema alongside REST |
| Breaking change needed | Document migration path and version bump |
| Sensitive data in URL | Move to request body or header |
| More than 30 endpoints in MVP | Prioritize Must-have FRs; defer Should-have |

---

# Validation

- [ ] API boundaries aligned with containers
- [ ] Resource model uses nouns consistently
- [ ] All Must-have FRs traceable to endpoints
- [ ] Error model defined with status code mapping
- [ ] Auth requirement per endpoint
- [ ] Versioning strategy stated
- [ ] Pagination defined for list endpoints
- [ ] No implementation code (framework-specific)

---

# Anti-patterns

- **Chatty APIs** — multiple calls where one would suffice.
- **Verb URLs** — `/getUser`, `/createOrder`.
- **Inconsistent naming** — mixing camelCase and snake_case across endpoints.
- **Missing error codes** — generic 500 for all failures.
- **Breaking changes without version** — modifying existing contracts silently.

---

# Best Practices

- Follow Richardson Maturity Model Level 2+ for REST.
- Use ISO 8601 for dates, UUID for IDs.
- Document idempotency for POST/PUT where applicable.
- Align with ADRs for protocol choices.
- Include rate limiting and auth scopes in design.

---

# Output Structure

```markdown
# API Design: [API Name]

## Overview
- **Base URL:** [pattern]
- **Protocol:** REST | gRPC | Events
- **Version:** v1

## Resources
| Resource | Description |
|----------|-------------|

## Endpoints
| Method | Path | Operation | Auth | FR ref |
|--------|------|-----------|------|--------|

## Schemas
### [ResourceName]
| Field | Type | Required | Validation |
|-------|------|----------|------------|

## Error Model
| HTTP | Code | When |
|------|------|------|

## Versioning
[Strategy and rules]

## Open Questions
- [ ] [Question]
```

---

# Next Skills

| Outcome | Recommended Skill |
|---------|-------------------|
| Plan cross-system integration | `architecture/integration-planner` |
| Review API security | `architecture/architecture-review` |
| Document API decision | `architecture/adr-generator` |
| Analyze data flows | `architecture/data-flow-analyzer` |
Files in this package (3)
  • README.md 1 KB
  • examples.md 2 KB
  • skill.md 4 KB

Versions

RepositoryScoreLicence
This page · patonkikh/APES100MIT
Jeffallan/claude-skills100MIT
nguyenthienthanh/aura-frog100MIT
agentic-swe/agentic-swe100MIT
LambdaTest/agent-skills100MIT
nasac0x/code-orchestrator100MIT
wyattowalsh/agents100MIT
wesleyegberto/software-engineering-skills100MIT
zhaono1/agent-playbook100MIT

Database snapshot: 13.11.2026 · package version 6425613af1df (SHA-256 digest of the entire package)

Downloads in the last 30 days: 1 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100design-api
    Design REST and GraphQL APIs: naming, versioning, error shapes, auth. Use when "design an API", "create endpoints", "REST vs GraphQL", or "API contract".
  • 100api-design
    Designs a REST or async event contract: resources, status codes, one error model, pagination, versioning, idempotency, tenant path, OpenAPI spec. Use for \"design an endpoint/API/event\", reviewing a contract, or planning a breaking change.
  • 95rest-api-designer
    Design RESTful API endpoints with proper resource modeling, HTTP methods, and URL structure. Use when creating REST APIs, designing endpoints, or structuring API resources.
  • 90memstack-development-api-designer
    Use this skill when the user says 'design API', 'API endpoints', 'REST API', 'API designer', 'route structure', 'API architecture', or is designing RESTful API routes, request/response schemas, and endpoint organization. Do NOT use for API security audits or database design.
  • 100api-design
    Defines REST and GraphQL API contracts including endpoints, request/response schemas, auth flows, and versioning strategy. Use when designing a new API, reviewing an API spec, or when the user mentions API design, OpenAPI, or endpoint contracts.
  • 100rest-api-design
    Use when defining or reviewing HTTP API contracts, resource operations, representations, status and error semantics, pagination, compatibility, or versioning.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.