// Comprehensive API design and development workflow that orchestrates API architecture, endpoint design, documentation generation, and integration patterns. Handles everything from RESTful API creation and GraphQL schema design to API gateway setup and version management.
| name | api-builder |
| description | Comprehensive API design and development workflow that orchestrates API architecture, endpoint design, documentation generation, and integration patterns. Handles everything from RESTful API creation and GraphQL schema design to API gateway setup and version management. |
| license | Apache 2.0 |
| tools | [] |
This skill provides end-to-end API development services by orchestrating API architects, integration specialists, and documentation experts. It transforms API requirements into production-ready APIs with comprehensive design, documentation, testing, and integration capabilities.
Key Capabilities:
Perfect for:
Triggers:
Use when: Starting API development or API modernization
Tools Used:
/sc:analyze api-requirements
API Architect: API design requirements and constraints
Integration Specialist: integration points and dependencies
Documentation Expert: documentation requirements and developer needs
Activities:
Use when: Designing the API structure and choosing protocols
Tools Used:
/sc:design --type api restful-architecture
/sc:design --type graphql schema
API Architect: comprehensive API design and protocol selection
Integration Specialist: integration architecture and patterns
Activities:
Use when: Writing the actual API code and business logic
Tools Used:
/sc:implement api-endpoints
API Architect: API implementation patterns and best practices
Integration Specialist: middleware and integration implementation
API Security Specialist: security controls and authentication
Activities:
Use when: Creating comprehensive API documentation and developer resources
Tools Used:
/sc:implement api-documentation
Documentation Expert: API docs and developer portal creation
API Architect: API specification validation and examples
Integration Specialist: integration guides and SDKs
Activities:
Use when: Setting up API gateway, middleware, and integrations
Tools Used:
/sc:implement api-gateway
Integration Specialist: API gateway configuration and middleware
API Security Specialist: security policies and access control
Performance Engineer: caching, rate limiting, and optimization
Activities:
Use when: Ensuring API reliability, performance, and security
Tools Used:
/sc:test api-comprehensive
Performance Engineer: load testing and performance validation
API Security Specialist: security testing and vulnerability assessment
Documentation Expert: documentation accuracy and usability testing
Activities:
| Command | Use Case | Output |
|---|---|---|
/sc:design --type api | API design | Complete API architecture |
/sc:implement restful | REST API | Production-ready REST endpoints |
/sc:implement graphql | GraphQL API | GraphQL schema and resolvers |
/sc:implement gateway | API gateway | Configured API gateway |
/sc:test api | API testing | Comprehensive test suite |
| Protocol | Role | Capabilities |
|---|---|---|
| RESTful | Standard API | HTTP-based REST API with proper semantics |
| GraphQL | Flexible API | Flexible query language and type system |
| gRPC | High-performance API | Binary protocol for high-performance scenarios |
| WebSocket | Real-time API | Real-time bidirectional communication |
| Server | Expertise | Use Case |
|---|---|---|
| Sequential | API reasoning | Complex API design and problem-solving |
| Web Search | API patterns | Latest API design trends and best practices |
| Firecrawl | API testing | External API integration and testing |
User: "Create a complete REST API for an e-commerce platform with user management, products, and orders"
Workflow:
1. Phase 1: Analyze e-commerce API requirements and design constraints
2. Phase 2: Design RESTful API architecture with proper resource modeling
3. Phase 3: Implement API endpoints with authentication and validation
4. Phase 4: Generate comprehensive API documentation and developer portal
5. Phase 5: Set up API gateway with rate limiting and monitoring
6. Phase 6: Test API performance, security, and documentation accuracy
Output: Production-ready e-commerce API with complete documentation and monitoring
User: "Implement a GraphQL API for a social media platform with real-time features"
Workflow:
1. Phase 1: Analyze GraphQL requirements and schema design needs
2. Phase 2: Design GraphQL schema with types, queries, and mutations
3. Phase 3: Implement resolvers with proper data fetching and caching
4. Phase 4: Create GraphQL documentation with schema explorer
5. Phase 5: Set up GraphQL gateway with subscriptions and real-time features
6. Phase 6: Test GraphQL queries, mutations, and subscription performance
Output: Feature-rich GraphQL API with real-time capabilities and comprehensive documentation
User: "Set up an API gateway to integrate multiple microservices with proper security and monitoring"
Workflow:
1. Phase 1: Analyze integration requirements and service dependencies
2. Phase 2: Design API gateway architecture with routing and policies
3. Phase 3: Implement gateway with authentication, rate limiting, and logging
4. Phase 4: Configure service discovery and load balancing
5. Phase 5: Set up monitoring, analytics, and alerting
6. Phase 6: Test gateway performance, security, and failover mechanisms
Output: Enterprise-grade API gateway with comprehensive security and monitoring
api-system/
โโโ endpoints/
โ โโโ controllers/ # API endpoint implementations
โ โโโ middleware/ # Authentication, validation, error handling
โ โโโ routes/ # API routing and endpoint definitions
โ โโโ validators/ # Request/response validation
โโโ schemas/
โ โโโ openapi/ # OpenAPI/Swagger specifications
โ โโโ graphql/ # GraphQL schemas and resolvers
โ โโโ models/ # Data models and DTOs
โ โโโ contracts/ # API contracts and interfaces
โโโ documentation/
โ โโโ api-docs/ # Interactive API documentation
โ โโโ developer-portal/ # Developer portal and guides
โ โโโ examples/ # Code examples and tutorials
โ โโโ sdks/ # Client libraries and SDKs
โโโ gateway/
โ โโโ config/ # API gateway configuration
โ โโโ policies/ # Gateway policies and rules
โ โโโ middleware/ # Custom gateway middleware
โ โโโ monitoring/ # Gateway monitoring and analytics
โโโ tests/
โ โโโ unit/ # Unit tests for API endpoints
โ โโโ integration/ # Integration tests for API interactions
โ โโโ contract/ # API contract tests
โ โโโ performance/ # Load and performance tests
โโโ config/
โโโ development/ # Development environment configuration
โโโ staging/ # Staging environment configuration
โโโ production/ # Production environment configuration
This API builder skill transforms the complex process of API development into a guided, expert-supported workflow that ensures well-designed, well-documented, and production-ready APIs with comprehensive integration and monitoring capabilities.