api-patterns
/api-patterns
Wybiera REST, GraphQL lub tRPC i ustala wersjonowanie, stronicowanie, uwierzytelnianie oraz limity zapytań dla API.
- Autor
- jeffersonvalente ↗
- Repozytorium
- cardume ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 04.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 12
- Skrypty
- 1
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 04.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/api_validator.py
Co robi i kiedy
Wybiera REST, GraphQL lub tRPC i ustala wersjonowanie, stronicowanie, uwierzytelnianie oraz limity zapytań dla API.
Oryginalny opis (EN)
Chooses REST, GraphQL or tRPC and sets versioning, pagination, auth and rate limits. Use when designing an API or reviewing endpoint contracts.
Jak działa
- 🎯 Selective Reading Rule
- 📑 Content Map
- 🔗 Related Skills
- ✅ Decision Checklist
- ❌ Anti-Patterns
- Script
Podgląd SKILL.md
--- name: api-patterns description: "Chooses REST, GraphQL or tRPC and sets versioning, pagination, auth and rate limits. Use when designing an API or reviewing endpoint contracts." allowed-tools: Read Write Edit Glob Grep compatibility: "Claude Code with the Cardume plugins (uses cardume-* commands, subagents or plugin paths); the guidance itself is portable." --- # API Patterns > API design principles and decision-making, aligned with current standards > (RFC 9457 Problem Details, OpenAPI 3.1/3.2, IETF HTTPAPI drafts). > **Learn to think, not copy fixed patterns.** ## 🎯 Selective Reading Rule **Read only the files relevant to the request.** Check the content map, find what you need. --- ## 📑 Content Map | File | Description | When to Read | |------|-------------|--------------| | `api-style.md` | REST vs GraphQL vs tRPC decision tree | Choosing API type | | `rest.md` | Resource naming, HTTP methods, status codes, idempotency keys | Designing REST API | | `response.md` | Envelope pattern, RFC 9457 errors, pagination | Response structure | | `graphql.md` | Schema design, when to use, security | Considering GraphQL | | `trpc.md` | TypeScript monorepo, type safety | TS fullstack projects | | `versioning.md` | URI/Header/Query versioning | API evolution planning | | `auth.md` | JWT, OAuth, Passkey, API Keys | Auth pattern selection | | `rate-limiting.md` | Token bucket, sliding window, `RateLimit` headers | API protection | | `documentation.md` | OpenAPI 3.1/3.2 best practices | Documentation | | `security-testing.md` | OWASP API Top 10, auth/authz testing | Security audits | --- ## 🔗 Related Skills | Need | Skill | |------|-------| | API implementation (Node.js / Java) | `cardume-backend:nodejs-best-practices`, `cardume-backend:java-spring-patterns` | | Data structure | `cardume-core:database-design` | | Security details | `cardume-qa:vulnerability-scanner` | --- ## ✅ Decision Checklist Before designing an API: - [ ] **Asked user about API consumers?** - [ ] **Chosen API style for THIS context?** (REST/GraphQL/tRPC) - [ ] **Defined consistent response format?** (errors as RFC 9457 `application/problem+json`) - [ ] **Retry-safe writes?** (idempotency keys on POST/PATCH that clients may retry) - [ ] **Planned versioning strategy?** - [ ] **Considered authentication needs?** - [ ] **Planned rate limiting?** - [ ] **Documentation approach defined?** --- ## ❌ Anti-Patterns **DON'T:** - Default to REST for everything - Use verbs in REST endpoints (/getUsers) - Return inconsistent response formats - Expose internal errors to clients - Skip rate limiting **DO:** - Choose API style based on context - Ask about client requirements - Document thoroughly - Use appropriate status codes --- ## Script | Script | Purpose | Command | |--------|---------|---------| | `cardume-api-validator` (wraps `scripts/api_validator.py`) | API endpoint validation | `cardume-api-validator <project_path>` |
Pliki w paczce (12)
- SKILL.md 3 KB
- api-style.md 1 KB
- auth.md 1 KB
- documentation.md 1 KB
- graphql.md 1 KB
- rate-limiting.md 1 KB
- response.md 2 KB
- rest.md 2 KB
- security-testing.md 3 KB
- trpc.md 1 KB
- versioning.md 1 KB
- scripts/api_validator.py 7 KB
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · jeffersonvalente/cardume | 90 | MIT |
| bybren-llc/safe-agentic-workflow | 100 | MIT |
| bybren-llc/safe-agentic-workflow | 100 | MIT |
| ThibautBaissac/rails_ai_agents | 100 | MIT |
| Reprograme/redevkit | 90 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki 253630500cd1 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100design-api
Projektuje API REST i GraphQL: nazewnictwo, wersjonowanie, kształt błędów i uwierzytelnianie. - 100designing-apis
Projektuje API REST i GraphQL, w tym endpointy, obsługę błędów, wersjonowanie i dokumentację, oraz ocenia kontrakty API. - 100api
Prowadzi projektowanie API REST, GraphQL i gRPC: wersjonowanie, kształt błędów, uwierzytelnianie, idempotencja, paginacja i limity, z wynikiem w postaci specyfikacji i szkieletu. - 100api-design
Projektuje lub przegląda REST API: nazwy zasobów, kody statusu, stronicowanie, filtrowanie, błędy, wersjonowanie i limity. - 100api-design-expert
Wspiera projektowanie i recenzję API REST i GraphQL: modelowanie zasobów, kody statusu, wersjonowanie, paginacja kursorowa, idempotencja, błędy, limity i kontrakty. - 100rest-api
Opisuje zasady projektowania REST API: zasoby, metody i kody statusu, przy projektowaniu lub przeglądzie API.