ericrisco/rsc-harness / skills/rails
rails
VerifiedUse when building or maintaining a Ruby on Rails app — models, controllers, views, routes and migrations; ActiveRecord associations, scopes and query performance; Hotwire (Turbo and Stimulus) UI; Active Job or Solid Queue background work; and Rails tests. Covers N+1 queries, migration safety on live tables, and flaky system tests around Turbo Frames. NOT plain Ruby scripts, gems or CLIs with no Rails loaded (that is `ruby`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 12.1 KB |
| evals/README.md | markdown | 811 B |
| evals/cases.yaml | config | 2.8 KB |
| references/activerecord.md | markdown | 4.2 KB |
| references/hotwire.md | markdown | 4.0 KB |
| references/testing.md | markdown | 3.4 KB |
| scripts/verify.shexecutable | script | 4.4 KB |
evals/cases.yaml
View on GitHubskill: rails
should_trigger:
- prompt: "Scaffold a blog with Posts and Comments and resourceful routes."
why: Core Rails MVC generation — models, controller, routes, views.
- prompt: "This index action is slow because of post.author in the loop, fix the N+1."
why: ActiveRecord eager-loading; the canonical Rails query footgun.
- prompt: "Make the comment list update live when someone posts a new comment."
why: Turbo Stream / model broadcast — Hotwire, the Rails default front-end.
- prompt: "Is this add_index migration safe to run on a 5M-row table in production?"
why: >
Non-obvious — reads like a database question, but it is the ActiveRecord
migration DSL and Rails migration-safety rules (disable_ddl_transaction!,
algorithm: :concurrently, strong_migrations).
- prompt: "My Capybara system test started failing randomly after I added a Turbo Frame."
why: >
Non-obvious Hotwire-timing flake; unmistakably Rails (ApplicationSystemTestCase
+ Turbo), fixed by auto-waiting matchers / driver swap, not by sleeps.
- prompt: "Necesito un job en background con Solid Queue para enviar emails de aviso."
why: Spanish — Active Job on the Rails 8 default Solid Queue backend.
- prompt: "Aquesta migració amb add_column i default és segura en producció?"
why: Catalan — Rails migration safety on a live table.
should_not_trigger:
- prompt: "Refactor this standalone Ruby parser script using Enumerable, no Rails involved."
route_to: ruby
why: Plain Ruby language work; nothing loads Rails or ActiveRecord.
- prompt: "Fix my Eloquent hasMany relationship in this Laravel controller."
route_to: laravel
why: Same MVC problem space, but PHP/Laravel — route by the actual framework.
- prompt: "Design the B-tree vs partial index strategy for a Postgres table, no ORM."
route_to: postgresdb
why: Engine-level index strategy expressed in raw SQL, not an AR migration.
- prompt: "Set up the Kamal host, Docker image, and CI runner to deploy the app."
route_to: deployment
why: Host/container/CI provisioning — infra mechanics, not Rails-side code.
capability:
- scenario: "Build a Posts CRUD with Comments, a live-updating comment list, and tests."
must_include:
- "resourceful nested routes (resources :posts do resources :comments)"
- "has_many / belongs_to association plus at least one validation"
- "strong parameters via params.expect or require.permit"
- "eager loading with includes/preload to avoid N+1 on the comment list"
- "Turbo Stream or morphing for the live update (not hand-rolled JS/fetch)"
- "a system test using ApplicationSystemTestCase with auto-waiting assertions (assert_text / assert_selector, no sleep)"
- "Solid Queue (not Sidekiq/Redis) for any async work introduced"
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |