teinam/my_harness_for_claude_code/api-design
Claude Code and agent skill by teinam/my_harness_for_claude_code
- community
Checking that the SKILL.md file is still in the repository.
REST API design patterns including resource naming, status codes, pagination, filtering, error responses, versioning, and rate limiting for production APIs.
Install
npx vskill@latest install teinam/my_harness_for_claude_code/api-designSKILL.md
The same SKILL.md was published earlier as teinam/my_harness_for_claude_code/api-design.
API Design Patterns
Conventions and best practices for designing consistent, developer-friendly REST APIs.
When to Activate
- Designing new API endpoints
- Reviewing existing API contracts
- Adding pagination, filtering, or sorting
- Implementing error handling for APIs
- Planning API versioning strategy
- Building public or partner-facing APIs
Reference files
상세 예시는 주제별 파일로 나눴다. 지금 단계에 필요한 파일만 연다.
| 파일 | 언제 여는가 | |
|---|---|---|
| `response-and-pagination.md` | 성공·컬렉션·에러 응답 본문, envelope 변형, offset vs cursor 페이지네이션을 정할 때 | |
| `implementation-patterns.md` | Next.js·Django REST·Go 로 엔드포인트를 실제로 구현할 때 |
Resource Design
URL Structure
Naming Rules
HTTP Methods and Status Codes
Method Semantics
| Method | Idempotent | Safe | Use For | |
|---|---|---|---|---|
| GET | Yes | Yes | Retrieve resources | |
| POST | No | No | Create resources, trigger actions | |
| PUT | Yes | No | Full replacement of a resource | |
| PATCH | No* | No | Partial update of a resource | |
| DELETE | Yes | No | Remove a resource |
*PATCH can be made idempotent with proper implementation
Status Code Reference
Common Mistakes
Filtering, Sorting, and Search
Filtering
Sorting
Full-Text Search
Sparse Fieldsets
Authentication and Authorization
Token-Based Auth
Authorization Patterns
Rate Limiting
Headers
Rate Limit Tiers
| Tier | Limit | Window | Use Case | |
|---|---|---|---|---|
| Anonymous | 30/min | Per IP | Public endpoints | |
| Authenticated | 100/min | Per user | Standard API access | |
| Premium | 1000/min | Per API key | Paid API plans | |
| Internal | 10000/min | Per service | Service-to-service |
Versioning
URL Path Versioning (Recommended)
Pros: Explicit, easy to route, cacheable Cons: URL changes between versions
Header Versioning
Pros: Clean URLs Cons: Harder to test, easy to forget
Versioning Strategy
API Design Checklist
Before shipping a new endpoint:
- [ ] Resource URL follows naming conventions (plural, kebab-case, no verbs)
- [ ] Correct HTTP method used (GET for reads, POST for creates, etc.)
- [ ] Appropriate status codes returned (not 200 for everything)
- [ ] Input validated with schema (Zod, Pydantic, Bean Validation)
- [ ] Error responses follow standard format with codes and messages
- [ ] Pagination implemented for list endpoints (cursor or offset)
- [ ] Authentication required (or explicitly marked as public)
- [ ] Authorization checked (user can only access their own resources)
- [ ] Rate limiting configured
- [ ] Response does not leak internal details (stack traces, SQL errors)
- [ ] Consistent naming with existing endpoints (camelCase vs snake_case)
- [ ] Documented (OpenAPI/Swagger spec updated)
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/api-design/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
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/teinam/my_harness_for_claude_code/api-design)