calcosmic/aether/rest-api

Claude Code and agent skill by calcosmic/aether

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when the project designs or consumes RESTful HTTP APIs

Install

npx vskill@latest install calcosmic/aether/rest-api

SKILL.md

The same SKILL.md was published earlier as calcosmic/aether/rest-api.

REST API Best Practices

Resource Design

Use nouns for endpoints, not verbs: /users not /getUsers. Let HTTP methods convey the action: GET (read), POST (create), PUT (full replace), PATCH (partial update), DELETE (remove).

Use plural nouns for collections (/users), singular identifiers for items (/users/123). Nest resources for clear ownership: /users/123/orders for orders belonging to user 123. Avoid nesting deeper than two levels -- flatten with query parameters instead.

HTTP Status Codes

Return the correct status code -- clients depend on it for error handling:

  • 200 for successful GET/PUT/PATCH
  • 201 for successful POST (resource created)
  • 204 for successful DELETE (no content)
  • 400 for bad request (validation errors)
  • 401 for unauthenticated
  • 403 for unauthorized (authenticated but not allowed)
  • 404 for not found
  • 409 for conflict (duplicate, version mismatch)
  • 422 for unprocessable entity (valid JSON, invalid semantics)
  • 500 for server errors (never expose internals)

Request and Response Format

Use JSON for request and response bodies. Use camelCase for JSON field names (JavaScript convention) or snake_case (Python convention) -- be consistent within the API, never mix.

Return consistent error responses: {"error": "message", "code": "VALIDATION_FAILED", "details": [...]}. Clients should be able to parse errors programmatically, not just read human messages.

Pagination

Always paginate collection endpoints. Use cursor-based pagination (?cursor=abc123&limit=20) for large or frequently changing datasets. Include pagination metadata in the response: total, next_cursor, has_more.

Versioning

Version your API from day one: /api/v1/users. Use URL-based versioning for simplicity. Header-based versioning (Accept: application/vnd.api.v1+json) is cleaner but harder to test and debug.

Authentication

Use bearer tokens (JWT or opaque) in the Authorization header. Never pass tokens in URL query parameters -- they appear in logs and browser history. Use short-lived access tokens with refresh tokens for longer sessions.

Documentation

Maintain an OpenAPI specification (openapi.yaml). Generate it from code annotations or write it manually, but keep it in sync with the implementation. Stale API docs are worse than no docs -- they create false confidence.

Rate Limiting

Implement rate limiting on all public endpoints. Return 429 Too Many Requests with Retry-After header. Use sliding window counters, not fixed windows, to prevent burst abuse at window boundaries.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/calcosmic/aether/rest-api/badge)](https://verified-skill.com/skills/calcosmic/aether/rest-api)

Something wrong with this skill or its page? Tell us.