restful-hateoas
БесплатноБез исполняемых скриптовНе проверенRESTful API design guidelines following the Richardson Maturity Model through to Level 3 (HATEOAS) for Ruby on Rails. This skill should be used when…
от pproenca★ 231 звезда на GitHubОб этом скилле
Community RESTful HATEOAS Best Practices
Comprehensive guide to building REST APIs that reach the Glory of REST (Richardson Maturity Level 3) in Ruby on Rails. Contains 47 rules across 9 categories, ordered by the request/response lifecycle — from resource URI design through hypermedia link relations to API evolution.
When to Apply
Reference these guidelines when:
- Designing new REST API endpoints and resource URIs
- Adding hypermedia controls (_links, affordances) to API responses
- Implementing content negotiation with HAL, JSON:API, or vendor media types
- Building paginated, filterable, sortable collection endpoints
- Reviewing APIs for proper HTTP method semantics and status codes
- Evolving APIs without breaking existing clients
Rule Categories by Priority
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Resource Modeling | CRITICAL | res- |
| 2 | HTTP Method Semantics | CRITICAL | http- |
| 3 | Hypermedia & Link Relations | CRITICAL | link- |
| 4 | Status Codes & Response Headers | HIGH | status- |
| 5 | Content Negotiation & Media Types | HIGH | media- |
| 6 | Collection Patterns | MEDIUM-HIGH | coll- |
| 7 | Error Semantics | MEDIUM | err- |
| 8 | Caching & Conditional Requests | MEDIUM | cache- |
| 9 | API Evolution | LOW-MEDIUM | evolve- |
Quick Reference
1. Resource Modeling (CRITICAL)
res-noun-based-uris- URIs must be nouns, not verbsres-plural-collection-uris- Always use plural nouns for collectionsres-limit-nesting-depth- Limit nested resources to max 2 levelsres-model-business-entities- Model business entities, not database tablesres-use-consistent-identifiers- Use opaque identifiers, never auto-increment IDsres-sub-resources-for-relationships- Express relationships as sub-resources
2. HTTP Method Semantics (CRITICAL)
http-get-must-be-safe- Keep GET requests free of side effectshttp-post-for-creation- Return 201 Created with Location header from POSThttp-put-for-full-replacement- Use PUT only for full resource replacementhttp-patch-for-partial-updates- PATCH for partial updates with merge semanticshttp-delete-is-idempotent- Ensure DELETE is idempotenthttp-head-for-metadata- Use HEAD for metadata without body transferhttp-idempotency-key- Use idempotency keys for safe POST retries
3. Hypermedia & Link Relations (CRITICAL)
link-self-link-every-resource- Include a self link in every resourcelink-related-resource-links- Link to related resources instead of foreign keyslink-action-affordances- Expose available actions as conditional linkslink-standard-relation-types- Use IANA-registered link relation typeslink-entry-point- Provide a root API entry pointlink-pagination-links- Use hypermedia links for paginationlink-embedded-vs-linked- Choose between embedding and linking
4. Status Codes & Response Headers (HIGH)
status-201-with-location- Return 201 Created with Location headerstatus-204-for-no-content- Return 204 No Content for empty responsesstatus-409-for-conflicts- Return 409 Conflict for state conflictsstatus-202-for-async- Return 202 Accepted for async operationsstatus-allow-header-on-405- Return 405 with Allow header for wrong methodsstatus-rate-limit-headers- Include rate limit headers in API responses
5. Content Negotiation & Media Types (HIGH)
media-accept-header-negotiation- Respect the Accept header for content negotiationmedia-content-type-in-responses- Set the correct Content-Type in every responsemedia-vendor-media-types- Use vendor media types for API versioning- [`media-406-for-unsuppor
Установить restful-hateoas в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл restful-hateoas?
RESTful API design guidelines following the Richardson Maturity Model through to Level 3 (HATEOAS) for Ruby on Rails. This skill should be used when designing, building, reviewing, or refactoring REST APIs to ensure proper resource modeling, HTTP method semantics, hypermedia controls, content negotiation, and API evolvability. Triggers on tasks involving API controllers, serializers, routing, link relations, pagination, error handling, or HTTP caching in Rails.
Как установить скилл restful-hateoas?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл restful-hateoas запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic