Curated library of 42 public AI agent skills for Ruby on Rails development, plus 5 callable workflow skills. Organized by category: planning, testing, code-quality, ddd, engines, infrastructure, api, patterns, context, orchestration, and workflows. Covers code review, architecture, security, testing (RSpec), engines, service objects, DDD patterns, and TDD automation.
96
96%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Risky
Do not use without reviewing
Implement versioning strategies for Rails APIs.
Files: SKILL.md · EXAMPLES.md · references/workflow.md · references/strategies.md
ALWAYS maintain backward compatibility for at least one major version
NEVER remove endpoints without deprecation period
ALWAYS version in URL path (/api/v1/) or Accept header, never in body| Concern | File |
|---|---|
| Route namespaces | config/routes.rb |
| Header versioning | app/controllers/concerns/api_versioning.rb |
| Deprecation headers | app/controllers/concerns/deprecatable.rb |
| Compatibility specs | spec/requests/api/backward_compatibility_spec.rb |
/api/v1/) for public APIs; Accept header for internal/private APIs.namespace :v2 block in config/routes.rb.Deprecatable in old-version controllers to emit sunset headers.rspec spec/requests/api/backward_compatibility_spec.rb to confirm no regressions.See references/workflow.md for the complete annotated workflow.
namespace :v1 do
resources :users
end
namespace :v2 do
resources :users
endOverride only actions that change between versions:
module V2
class UsersController < V1::UsersController
def index
render json: User.all, only: [:id, :name, :email, :phone]
end
end
endSee references/strategies.md for a full URL path vs. Accept header comparison.
Include the Deprecatable concern (defined in app/controllers/concerns/deprecatable.rb) in any controller version due for retirement. It emits Sunset and Deprecation response headers automatically via a before_action.
module V1
class UsersController < ApplicationController
include Deprecatable
# Override sunset_date on the class to set the retirement date:
# def self.sunset_date = Date.new(2025, 6, 1)
end
endSee app/controllers/concerns/deprecatable.rb for the full implementation with logging.
After adding a new version, always run the backward compatibility suite before merging:
bundle exec rspec spec/requests/api/backward_compatibility_spec.rbAll existing v1 contract tests must remain green; a new version should never silently break prior consumers.
See EXAMPLES.md for complete code including:
build
docs
mcp_server
skills
api
generate-api-collection
implement-graphql
code-quality
apply-code-conventions
apply-stack-conventions
assets
snippets
code-review
refactor-code
respond-to-review
review-architecture
security-check
context
load-context
setup-environment
ddd
define-domain-language
model-domain
review-domain-boundaries
engines
create-engine
create-engine-installer
document-engine
extract-engine
release-engine
review-engine
test-engine
upgrade-engine
infrastructure
implement-background-job
implement-hotwire
optimize-performance
review-migration
seed-database
version-api
orchestration
skill-router
patterns
create-service-object
implement-calculator-pattern
write-yard-docs
planning
create-prd
generate-tasks
plan-tickets
testing
plan-tests
test-service
triage-bug
write-tests
workflows