← Back to Skills Marketplace
wpank

api-development

by wpank · GitHub ↗ · v1.0.0
cross-platform ✓ Security Clean
999
Downloads
1
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install api-development
Description
Meta-skill that orchestrates the full API development lifecycle — from design through documentation — by coordinating specialized skills, agents, and commands into a seamless build workflow.
README (SKILL.md)

API Development

Orchestrate the full API development lifecycle by coordinating design, implementation, testing, and documentation into a single workflow.

When to Use This Skill

  • Building a new API from scratch
  • Adding endpoints to an existing API
  • Redesigning or refactoring an API
  • Planning API versioning and migration
  • Running a complete API development cycle (design → build → test → document → deploy)

Orchestration Flow

Follow these steps in order. Each step routes to the appropriate skill or tool.

1. Design the API

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

2. Generate OpenAPI Spec

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

3. Scaffold Endpoints

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

4. Implement Business Logic

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)

5. Test

Write tests at three levels:

  • Unit tests — service logic, validation, error handling
  • Integration tests — endpoint behavior with real DB
  • Contract tests — response shapes match OpenAPI spec

Deliverables: Test suite with coverage for happy paths, error cases, edge cases, and auth

6. Document

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

7. Version and Deploy

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


API Design Decision Table

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.


API Checklist

Run through this checklist before marking any API work as complete.

Authentication & Authorization

  • Authentication mechanism chosen (JWT, OAuth2, API key)
  • Authorization rules enforced at every endpoint
  • Tokens validated and scoped correctly
  • Secrets stored securely (never in code or logs)

Rate Limiting

  • Rate limits configured per endpoint or consumer tier
  • RateLimit-* headers included in responses
  • 429 Too Many Requests returned with Retry-After header
  • Rate limit strategy documented for consumers

Pagination

  • All collection endpoints paginated
  • Pagination style chosen (cursor-based or offset-based)
  • page_size bounded with a sensible maximum
  • Total count or hasNextPage indicator included

Filtering & Sorting

  • Filter parameters validated and sanitized
  • Sort fields allow-listed (no arbitrary column sorting)
  • Default sort order defined and documented

Error Handling

  • Consistent error response schema across all endpoints
  • Correct HTTP status codes (4xx for client, 5xx for server)
  • Validation errors return field-level detail
  • Internal errors never leak stack traces or sensitive data

Versioning

  • Versioning strategy selected and applied uniformly
  • Breaking vs non-breaking change policy documented
  • Deprecation timeline communicated via Sunset header

CORS

  • Allowed origins configured (no wildcard * in production with credentials)
  • Allowed methods and headers explicitly listed
  • Preflight (OPTIONS) requests handled correctly

Documentation

  • OpenAPI / Swagger spec generated and up to date
  • Every endpoint has description, parameters, and example responses
  • Authentication requirements documented
  • Error codes and meanings listed
  • Changelog maintained for each version

Security

  • Input validation on all fields
  • SQL injection prevention
  • HTTPS enforced
  • Sensitive data never in URLs or logs
  • CORS configured correctly

Monitoring

  • Structured logging with request IDs
  • Error tracking configured (Sentry, Datadog, etc.)
  • Performance metrics collected (latency, error rate)
  • Health check endpoint available (/health)
  • Alerts configured for error rate spikes

Skill Routing Table

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

NEVER Do

  1. NEVER skip the design phase — jumping straight to code produces inconsistent APIs that are expensive to fix
  2. NEVER expose database schema directly — API resources are not database tables; design around consumer use cases
  3. NEVER ship without authentication — every production endpoint must have an auth strategy
  4. NEVER return inconsistent error formats — every error response must follow the same schema
  5. NEVER break a published API without a versioning plan — breaking changes require a new version, migration guide, and deprecation timeline
  6. NEVER deploy without tests and documentation — untested APIs ship bugs, undocumented APIs frustrate developers
Usage Guidance
This skill itself is an instruction-only meta-skill and appears coherent with its purpose. Before installing or enabling it for autonomous use: 1) Verify the skill’s provenance (source/homepage is unknown here) and confirm the publisher is trusted. 2) Inspect the referenced skills (api-design, api-versioning, deploy-related skills) because those will perform actions that may require credentials or network access. 3) When you run orchestration steps that deploy or access CI/CD, supply the minimal credentials (least privilege) and prefer ephemeral or scoped tokens. 4) If you need stronger assurance, ask for a version with explicit provenance (official repo/maintainer link) or review the concrete implementation of the downstream skills that this meta-skill will invoke.
Capability Analysis
Type: OpenClaw Skill Name: api-development Version: 1.0.0 The skill bundle is benign. The `SKILL.md` file, which serves as the primary instruction set for the AI agent, provides comprehensive guidance for API development, orchestrating other skills, and adhering to best practices without any evidence of prompt injection, malicious commands, or attempts to subvert the agent's purpose. The `README.md` contains installation instructions, including an `npx add` command pointing to a GitHub repository, which is a standard method for skill distribution and not an instruction for the agent to execute as part of the skill's operation. No indicators of data exfiltration, malicious execution, persistence, or obfuscation were found.
Capability Assessment
Purpose & Capability
The name/description (API development orchestration) matches the SKILL.md: it coordinates design → spec → scaffold → implement → test → document → deploy and routes to specialized skills (e.g., api-design, api-versioning). It does not request unrelated binaries, env vars, or config paths.
Instruction Scope
The instructions are focused on API lifecycle tasks and explicitly route work to other skills and files (e.g., api-design/assets/openapi-template.yaml). Steps like 'deploy through the pipeline' are high-level and will rely on other skills or the agent's environment — this is expected for a meta-skill but leaves room for the agent to access deployment credentials or CI/CD tooling when invoked.
Install Mechanism
No install spec and no code files are included (instruction-only). That minimizes on-disk execution risk; README suggests using npx or manual copy, but those are optional instructions and not enforced by the skill itself.
Credentials
The skill declares no required environment variables, credentials, or config paths. However, because it orchestrates other skills (which may require secrets like cloud or CI tokens), users should verify the downstream skills' requirements before granting access.
Persistence & Privilege
always is false and there is no indication the skill writes to global agent configs or requests permanent presence. It does not request elevated privileges on its own.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install api-development
  3. After installation, invoke the skill by name or use /api-development
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Introduces a comprehensive skillset for REST and GraphQL API design, principles, and best practices. - Covers API resource modeling, HTTP semantics, pagination, error handling, schema evolution, HATEOAS, and DataLoader patterns. - Includes practical guidelines for REST endpoints, collection design, consistent error formats, and status codes. - Provides GraphQL schema design patterns, mutation conventions, error handling, and N+1 query prevention via DataLoader. - Supplies ready-to-use templates and checklists for OpenAPI, REST, and GraphQL schema designs. - Offers reference guides for REST best practices, API versioning strategies, and GraphQL schema design.
Metadata
Slug api-development
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is api-development?

Meta-skill that orchestrates the full API development lifecycle — from design through documentation — by coordinating specialized skills, agents, and commands into a seamless build workflow. It is an AI Agent Skill for Claude Code / OpenClaw, with 999 downloads so far.

How do I install api-development?

Run "/install api-development" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is api-development free?

Yes, api-development is completely free (open-source). You can download, install and use it at no cost.

Which platforms does api-development support?

api-development is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created api-development?

It is built and maintained by wpank (@wpank); the current version is v1.0.0.

💬 Comments