Complete toolkit for architecting scalable, resilient, and secure REST/GraphQL APIs. Includes idempotency patterns, pagination standards, and error handling envelopes. Use this skill when scaffolding new API routes, optimizing network payloads, or establishing service-to-service communication contracts.
Comprehensive architectural guidelines and tools for building enterprise-grade backend APIs.
Script Paths: Gemini/Codex/cursorlike:
.agent_scripts/development_api-design/. Claude (folder mode):.claude/skills/development/api-design/scripts/.
This skill provides three core capabilities through automated scripts:
# Script 1: API Route Scaffolder
python .agent_scripts/development_api-design/api_route_scaffolder.py [options]
# Script 2: OpenAPI/Swagger Generator
python .agent_scripts/development_api-design/openapi_generator.py [options]
# Script 3: Endpoint Load Tester
python .agent_scripts/development_api-design/endpoint_load_tester.py [options]
Automated tool for generating boilerplate controllers, services, and routing definitions adhering to strict RESTful standards.
Features:
{ data, error, meta } envelopesUsage:
python .agent_scripts/development_api-design/api_route_scaffolder.py <route-name> --method [GET|POST|PUT|DELETE]
Scans existing controllers and comments to automatically build or update swagger.json or openapi.yaml specifications.
Features:
Usage:
python .agent_scripts/development_api-design/openapi_generator.py <src-folder> --output swagger.json
A lightweight wrapper around k6 or autocannon to quickly stress-test specific endpoints for concurrency limits and N+1 query bottlenecks.
Features:
Usage:
python .agent_scripts/development_api-design/endpoint_load_tester.py <endpoint-url> --users 100 --duration 60s
Comprehensive guide available in references/architecture_standards.md:
Technical reference guide in references/security_guidelines.md:
Languages: Python, TypeScript, Go, Java Frameworks: Express.js, NestJS, FastAPI, Gin, Spring Boot Documentation: Swagger, OpenAPI 3.0, GraphQL Playground Testing: Supertest, Jest, k6, Autocannon
Never write code before the contract is agreed upon.
# Generate the boilerplate
python .agent_scripts/development_api-design/api_route_scaffolder.py users --method POST
# Implement the business logic following references/architecture_standards.md
# Verify the endpoint can handle production traffic
python .agent_scripts/development_api-design/endpoint_load_tester.py http://localhost:3000/api/v1/users --users 50
/users, not /user)./users/123/activate).ETag, Last-Modified) for GET requests.references/security_guidelines.md for proper connection pool sizing.references/architecture_standards.mdreferences/security_guidelines.md.agent_scripts/development_api-design/ directorynpx skills add cagriemiracikkapi-projects/development/api-design下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer