roedyrustam/vibes-plug/api-design-expert
- community
Checking that the SKILL.md file is still in the repository.
API design best practices: REST, GraphQL, gRPC, tRPC, OpenAPI 3.1 / Desain API: praktik terbaik REST, GraphQL, gRPC, tRPC, OpenAPI 3.1.
Install
npx vskill@latest install roedyrustam/vibes-plug/api-design-expertSKILL.md
API Design Expert
<a name="english"></a>
English
Orchestration & Integration
- Upstream Ideation & Specs:
brainstorming,prd-architect,spec-driven-development-expert - Downstream Implementations:
js-backend-expert,python-programming-expert,go-programming-expert,rust-programming-expert - Contract & Gateway Tooling:
openapi-swagger-codegen-expert,api-gateway-proxy-expert,autonomous-api-drift-healer,graphql-apollo-expert - Security & Quality:
rate-limit-abuse-prevention,autonomous-red-teamer,e2e-testing-expert,anti-slop - Lifecycle & Governance:
zero-to-prod-orchestrator,session-memory-manager
Description
Expert guide for designing, documenting, and evolving production-grade APIs. Covers REST resource modeling and HTTP semantics, GraphQL schema design, gRPC with protobuf, and tRPC for end-to-end type-safe APIs in TypeScript monorepos. Includes OpenAPI 3.1 documentation, API versioning strategies, rate limiting, idempotency, and contract-first development workflows.
Trigger Conditions
- Designing a new API from scratch (REST, GraphQL, gRPC, or tRPC).
- Evolving an existing API without breaking clients.
- Documenting APIs with OpenAPI/Swagger.
- Implementing rate limiting, throttling, or idempotency.
- Choosing between REST, GraphQL, gRPC, and tRPC.
- Designing webhook systems.
- Implementing API authentication (API keys, JWT, OAuth2).
API Protocol Selection Guide
| Criteria | REST | GraphQL | gRPC | tRPC | |
|---|---|---|---|---|---|
| Type Safety | Manual (OpenAPI) | Schema-enforced | Protobuf | End-to-end TS | |
| Performance | Good | Good | Excellent (HTTP/2) | Good | |
| Browser Support | Native | Native | Needs proxy | TS/JS only | |
| Streaming | SSE / WebSocket | Subscriptions | Native bi-directional | SSE | |
| Best For | Public APIs, mobile | Complex data graphs | Microservice-to-service | Next.js full-stack | |
| Tooling | Universal | Rich ecosystem | Strong (Go, Java) | Next.js / Expo |
REST API Design Principles
Resource Naming Conventions
HTTP Method Semantics
| Method | Idempotent | Safe | Use Case | |
|---|---|---|---|---|
GET | Yes | Yes | Retrieve resources | |
POST | No | No | Create resources, trigger actions | |
PUT | Yes | No | Replace entire resource | |
PATCH | No | No | Partial update | |
DELETE | Yes | No | Remove resource |
Consistent Response Structure
HTTP Status Codes — Correct Usage
API Versioning Strategies
Rules for non-breaking changes (no version bump needed):
- Adding new optional fields to responses.
- Adding new optional request parameters.
- Adding new endpoints.
Breaking changes (require new version):
- Removing or renaming fields.
- Changing field types.
- Changing error response structure.
tRPC — End-to-End Type Safety
Rate Limiting Implementation
Idempotency for Mutations
OpenAPI 3.1 Documentation
Sovereign Execution, Token Efficiency & Invariants
| Dimension | Sovereign Mandate & Deterministic Contract | |||||
|---|---|---|---|---|---|---|
| Frontier Model Cascade | Medium / High (GPT-5.6 Sol Medium, Gemini 4 Argon, Claude Sonnet 5.5 High, Grok 4.7 High Fast) | |||||
| Availability Fallback | Gemini 4 Argon/Pro -> Gemini 3.8 Flash; Claude Opus 5.5 -> Claude Opus 4.6 (Zero unhandled missing-model errors) | |||||
| KV-Cache & Token Protocol | Pin static instructions & schemas at prompt prefix (kv-cache-prefix-optimizer); pass surgical CONTEXT_MAP.md slices (<250 tokens/call) during Swarm Fan-Out | |||||
| SaaT CLI & MCP Dispatch | CLI: `vibes skill exec api-design-expert <audit\ | eval\ | verify\ | generate\ | blueprint> / MCP: vibes_skill_dispatch, vibes_ast_query, vibes_compile_cache, vibes_optimize_budget, vibes_verify_gate` | |
| NFR & Anti-Slop Invariants | P99 API Gateway Latency < 85ms, OpenAPI 3.1 / TypeSpec strict schema parity, RFC 9457 Problem Details error contracts, Idempotency-Key enforcement; 100% complete zero-placeholder output verified via node scripts/check-anti-slop.js --strict |
<a name="bahasa-indonesia"></a>
Bahasa Indonesia
Integrasi Orkestrasi
- Ideasi Hulu & Spesifikasi:
brainstorming,prd-architect,spec-driven-development-expert - Implementasi Hilir:
js-backend-expert,python-programming-expert,go-programming-expert,rust-programming-expert - Tooling Kontrak & Gateway:
openapi-swagger-codegen-expert,api-gateway-proxy-expert,autonomous-api-drift-healer,graphql-apollo-expert - Keamanan & Kualitas:
rate-limit-abuse-prevention,autonomous-red-teamer,e2e-testing-expert,anti-slop - Siklus Hidup & Tata Kelola:
zero-to-prod-orchestrator,session-memory-manager
Deskripsi
Panduan ahli untuk merancang, mendokumentasikan, dan mengembangkan API berkualitas produksi. Mencakup pemodelan resource REST dan semantik HTTP, desain skema GraphQL, gRPC dengan protobuf, dan tRPC untuk API end-to-end type-safe di TypeScript. Termasuk dokumentasi OpenAPI 3.1, strategi versioning API, rate limiting, idempotency, dan alur kerja contract-first.
Kondisi Pemicu
- Merancang API baru dari nol (REST, GraphQL, gRPC, atau tRPC).
- Mengembangkan API yang ada tanpa merusak klien (breaking changes).
- Mendokumentasikan API dengan OpenAPI 3.1 / Swagger.
- Mengimplementasikan rate limiting, throttling, atau header idempotency.
- Memilih protokol API yang optimal (REST vs GraphQL vs gRPC vs tRPC).
- Merancang sistem webhook yang aman dengan verifikasi signature HMAC.
Panduan Pemilihan Protokol API
| Kriteria | REST | GraphQL | gRPC | tRPC | |
|---|---|---|---|---|---|
| Type Safety | Manual (OpenAPI) | Berbasis Skema | Protobuf | End-to-end TypeScript | |
| Performa | Baik | Baik | Luar Biasa (HTTP/2) | Baik | |
| Dukungan Browser | Native | Native | Butuh gRPC-Web proxy | Hanya TypeScript/JS | |
| Streaming | SSE / WebSocket | Subscriptions | Native dua-arah | Server-Sent Events | |
| Kasus Terbaik | API Publik & Mobile | Graf data relasional kompleks | Komunikasi Antar Microservice | Fullstack Next.js Monorepo |
Pola Kunci Implementasi (TypeScript)
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/api-design-expert/SKILL.md
Popularity
- Repository stars
- 63
- Repository forks
- 11
- Repository npm downloads, 7 days
- 18
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 12 Sep 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/roedyrustam/vibes-plug/api-design-expert)