Install
openclaw skills install api-developmentMeta-skill that orchestrates the full API development lifecycle — from design through documentation — by coordinating specialized skills, agents, and commands into a seamless build workflow.
openclaw skills install api-developmentOrchestrate the full API development lifecycle by coordinating design, implementation, testing, and documentation into a single workflow.
Follow these steps in order. Each step routes to the appropriate skill or tool.
Load the api-design skill to establish resource models, URL structure, HTTP method semantics, error formats, and pagination strategy.
Deliverables: Resource list, endpoint map, request/response schemas, error format
Produce a machine-readable OpenAPI 3.x specification from the design. Use the OpenAPI template in api-design/assets/openapi-template.yaml as a starting point.
Deliverables: openapi.yaml with all endpoints, schemas, auth schemes, and examples
Generate route files, request/response types, and validation schemas for each endpoint. Group routes by resource.
Deliverables: Route files, type definitions, validation schemas per resource
Write service-layer logic with input validation, authorization checks, database queries, and proper error propagation. Keep controllers thin — business logic lives in the service layer.
Deliverables: Service modules, repository layer, middleware (auth, rate limiting, CORS)
Write tests at three levels:
Deliverables: Test suite with coverage for happy paths, error cases, edge cases, and auth
Generate human-readable API documentation with usage examples and SDK snippets. Ensure every endpoint has description, parameters, request/response examples, and error codes.
Deliverables: API docs, changelog, authentication guide
Apply a versioning strategy, tag the release, update changelogs, and deploy through the pipeline. Follow the api-versioning skill for deprecation and migration guidance.
Deliverables: Version tag, changelog entry, deployment confirmation
Choose the right paradigm for your use case.
| Criteria | REST | GraphQL | gRPC |
|---|---|---|---|
| Best for | CRUD-heavy public APIs | Complex relational data, client-driven queries | Internal microservices, high-throughput |
| Data fetching | Fixed response shape per endpoint | Client specifies exact fields | Strongly typed protobuf messages |
| Over/under-fetching | Common problem | Solved by design | Minimal — schema is explicit |
| Caching | Native HTTP caching (ETags, Cache-Control) | Requires custom caching | No built-in HTTP caching |
| Real-time | Polling or WebSockets | Subscriptions (built-in) | Bidirectional streaming |
| Tooling | Mature — OpenAPI, Postman, curl | Growing — Apollo, Relay, GraphiQL | Mature — protoc, grpcurl, Buf |
| Learning curve | Low | Medium | Medium-High |
| Versioning | URL or header versioning | Schema evolution with @deprecated | Package versioning in .proto |
Rule of thumb: Default to REST for public APIs. Use GraphQL when clients need flexible queries across related data. Use gRPC for internal service-to-service communication.
Run through this checklist before marking any API work as complete.
RateLimit-* headers included in responses429 Too Many Requests returned with Retry-After headerpage_size bounded with a sensible maximumhasNextPage indicator includedSunset header* in production with credentials)OPTIONS) requests handled correctly/health)| Need | Skill | Purpose |
|---|---|---|
| API design principles | api-design | Resource modeling, HTTP semantics, pagination, error formats |
| Versioning strategy | api-versioning | Version lifecycle, deprecation, migration patterns |
| Authentication | auth-patterns | JWT, OAuth2, sessions, RBAC, MFA |
| Error handling | error-handling | Error types, retry patterns, circuit breakers, HTTP errors |
| Rate limiting | rate-limiting | Algorithms, HTTP headers, tiered limits, distributed limiting |
| Caching | caching | Cache strategies, HTTP caching, invalidation, Redis patterns |
| Database migrations | database-migrations | Schema evolution, zero-downtime patterns, rollback strategies |