rails-api

Community

Build and manage JSON API surfaces for Rails 8.1 apps

Authorjcuervo
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you build and manage the JSON API surface of a Rails 8.1 app, handling serialization, versioning, pagination, error handling, CORS, and documentation.

Core Features & Use Cases

  • API Style Selection: Choose between REST and GraphQL for your API.
  • Serializer Options: Select from Jbuilder, Alba, jsonapi-serializer, or Blueprinter for JSON serialization.
  • Versioning: Decide on URL path or Accept-header versioning.
  • Pagination: Use Pagy or Kaminari for collection pagination.
  • Error Handling: Standardize error responses into a consistent envelope.
  • CORS Configuration: Configure CORS for browser or mobile clients.
  • Documentation: Generate OpenAPI/Swagger documentation with rswag.
  • Use Case: For a new Rails app, use this Skill to set up the JSON API surface with your chosen settings and ensure it returns well-shaped responses.

Quick Start

Use the rails-api skill to build a JSON API surface for your Rails app.

Dependency Matrix

Required Modules

jbuilderalbajsonapi-serializerblueprinterpagykaminarirack-corsrswag

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: rails-api
Download link: https://github.com/jcuervo/rails-skills/archive/main.zip#rails-api

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.