Api design

From Tibsfox/gsd-skill-creator · View interactive version

Api design is an AI agent skill from the GitHub repository Tibsfox/gsd-skill-creator. REST API design best practices. Use when designing APIs, choosing status codes, or creating endpoints.

How to use this skill

Skill file

REST API Design

Endpoint Rules

HTTP Methods

| Method | Purpose | Idempotent |

|--------|---------|------------|

| GET | Retrieve | Yes |

| POST | Create | No |

| PUT | Replace entire resource | Yes |

| PATCH | Partial update | No |

| DELETE | Remove | Yes |

Status Codes

| Code | Use When |

|------|----------|

| 200 | Success with body |

| 201 | Resource created (+ Location header) |

| 204 | Success, no body (DELETE) |

| 400 | Malformed request |

| 401 | Not authenticated |

| 403 | Authenticated but forbidden |

| 404 | Not found |

| 409 | Conflict (duplicate) |

| 422 | Valid syntax, invalid semantics |

| 429 | Rate limited |

Error Format

{"error": {"code": "VALIDATION_ERROR", "message": "...", "details": [], "request_id": "req_..."}}

Key Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.