api-design-patterns
Design robust APIs with RESTful patterns, GraphQL schemas, versioning strategies, and error handling conventions.
Skill by 4444J99
Chalk Labs
Need help deploying api-design-patterns?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/4444j99-api-design-patterns
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/api-design-patterns
What's inside
- Skill name
api-design-patterns- Description
- Design robust APIs with RESTful patterns, GraphQL schemas, versioning strategies, and error handling conventions. Supports OpenAPI/Swagger documentation and SDK generation patterns. Triggers on API design, schema definition, endpoint architecture, or developer experience requests.
- License
- MIT
- Instructions
- 501 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- body: 501 lines (spec recommends under 500)
Files (4)
- SKILL.md
- error-codes.md · references/
- openapi-template.md · references/
- sdk-patterns.md · references/
SKILL.md (first lines)
# API Design Patterns
Build APIs that developers love to use.
## Design Principles
### The Three Laws of API Design
1. **Predictable**: Consistent patterns throughout
2. **Discoverable**: Self-documenting, intuitive naming
3. **Evolvable**: Can change without breaking clients
### API-First Mindset
```
Design → Document → Mock → Build → Test → Deploy
NOT: Build → Document (maybe) → Hope it works
```
---
## REST Patterns
### Resource Naming
```
# Collection
GET /users # List users
POST /users # Create user
# Item
GET /users/{id} # Get user
PUT /users/{id} # Replace user
PATCH /users/{id} # Update user
DELETE /users/{id} # Delete user
# Nested resources
GET /users/{id}/posts # User's posts
POST /users/{id}/posts # Create post for user
# Actions (when CRUD doesn't fit)
POST /users/{id}/activate
POST /orders/{id}/cancel
```
### Naming Conventions
| Do | Don't |
|----|-------|
| `/users` | `/getUsers`, `/user-list` |
| `/users/{id}` | `/users/get/{id}` |
| `/users/{id}/posts` | `/getUserPosts` |
| Plural nouns | Verbs in URLs |
| Lowercase, hyphens | camelCase, underscores |
### HTTP Methods
| Method | Purpose | Idempotent | Safe |
|--------|---------|------------|------|
| GET | Read | Yes | Yes |
| POST | Create | No | No |
| PUT | Replace | Yes | No |
| PATCH | Update | No* | No |
| DELETE | Remove | Yes | No |
*PATCH can be idempotent if designed carefully
### Status Codes
| Code | Meaning | Use When |
|------|---------|----------|
| 200 | OK | Successful GET, PUT, PATCH |
| 201 | Created | Successful POST with new resource |
| 204 | No Content | Successful DELETE |
| 400 | Bad Request | Invalid input |
| 401 | Unauthorized | Missing/invalid auth |
| 403 | Forbidden | Valid auth, no permission |
| 404 | Not Found | Resource doesn't exist |
| 409 | Conflict | Duplicate, state conflict |
| 422 | Unprocessable | Valid syntax, invalid semantics |
| 429 | Too Many Requests | Rate limited |
| 500 | Server Error | Unhandled server error |
---
## Request/Response Patterns
### Request Body
```json
{
"email": "user@example.com",
"name": "John Doe",
"preferences": {
"newsletter": true
}
}
```
### Response: Single Resource
```json
{
"data": {
"id": "usr_123",
"type": "user",
"attributes": {
"email": "user@example.com",
"name": "John Doe",
"createdAt": "2024-01-15T10:30:00Z"
},
"relationships": {
"organization": {
"id": "org_456",
"type": "organization"
}
}
}From 4444J99/a-i--skills, MIT.
More from 4444J99/a-i--skills
- 0.646score
artifact-resurfacing
4444J99
Four-phase protocol for clearing accumulated drift between memory claims, CLAUDE.md citations, and on-disk reality.
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
domain-ideal-whole-substrate
4444J99
Foundational layer beneath PDE.
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
d2l-discussion-responder
4444J99
Review D2L/Brightspace discussion threads as an instructor, identify unanswered questions, verify course facts, and draft concise replies in the instructor's…
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
conversation-content-pipeline
4444J99
Transform AI conversations and chat transcripts into publishable content including blog posts, documentation, tutorials, and knowledge base entries.
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
document-audit-extraction
4444J99
Audit document collections to extract features, identify patterns, assess quality, and build structured inventories.
SkillAFreshness: A★ 17Claude Code +9 - 0.637score
closeout
4444J99
Session-end ritual that walks back through plans authored and atoms touched in this session, assigning each a closure status (DONE-NNN, IRF-XXX-NNN, or…
SkillAFreshness: A★ 17Claude Code +9 - 0.601score
code-review-checklist
4444J99
Guide an AI agent through a structured code review — correctness, security, performance, readability, and test coverage — producing a summary with actionable…
SkillBFreshness: B★ 17Claude Code +9 - 0.556score
ecosystem-autopsy
4444J99
Orchestrate a full directory-graph autopsy across an ORGANVM workspace, then emit migration signals that unite repositories under canonical governance.
SkillCFreshness: C★ 17Claude Code +9 - 0.551score
expansive-inquiry
4444J99
Multi-perspective collaborative inquiry.
SkillCFreshness: C★ 17Claude Code +9 - 0.551score
corpus-persona-extraction
4444J99
Ingest a corpus of session logs (JSONL transcripts, chat exports) and extract a persona profile — vocabulary frequency, unique idioms and coinages, structural…
SkillCFreshness: C★ 17Claude Code +9 - 0.550score
continuous-learning-agent
4444J99
Self-improvement patterns for AI agents to learn from feedback, errors, and successful patterns across sessions
SkillCFreshness: C★ 17Claude Code +9 - 0.491score
evaluation-to-growth
4444J99
Systematic content evaluation framework progressing through Critique → Reinforcement → Risk Analysis → Growth.
SkillDFreshness: D★ 17Claude Code +9
Signals
- Stars
- 17
- Forks
- 9
- Open issues
- 6
- Last commit (this folder)
- Apr 18, 2026 (6 months ago)
- Last release
- Feb 6, 2026 (8 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/4444J99/a-i--skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from 4444J99
- 0.646score
domain-ideal-whole-substrate
4444J99
Foundational layer beneath PDE.
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
d2l-discussion-responder
4444J99
Review D2L/Brightspace discussion threads as an instructor, identify unanswered questions, verify course facts, and draft concise replies in the instructor's…
SkillAFreshness: A★ 17Claude Code +9 - 0.646score
artifact-resurfacing
4444J99
Four-phase protocol for clearing accumulated drift between memory claims, CLAUDE.md citations, and on-disk reality.
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
document-audit-extraction
4444J99
Audit document collections to extract features, identify patterns, assess quality, and build structured inventories.
SkillAFreshness: A★ 17Claude Code +9 - 0.641score
conversation-content-pipeline
4444J99
Transform AI conversations and chat transcripts into publishable content including blog posts, documentation, tutorials, and knowledge base entries.
SkillAFreshness: A★ 17Claude Code +9 - 0.637score
closeout
4444J99
Session-end ritual that walks back through plans authored and atoms touched in this session, assigning each a closure status (DONE-NNN, IRF-XXX-NNN, or…
SkillAFreshness: A★ 17Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get api-design-patterns running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
api-design-patterns skill. Agent Mart. https://agentmart.dev/skills/4444j99-api-design-patterns (last updated 2026-10-24)