Skip to content

ericrisco/rsc-harness / skills/rails

Use 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`).

FileKindSize
SKILL.mdskill md12.1 KB
evals/README.mdmarkdown811 B
evals/cases.yamlconfig2.8 KB
references/activerecord.mdmarkdown4.2 KB
references/hotwire.mdmarkdown4.0 KB
references/testing.mdmarkdown3.4 KB
scripts/verify.shexecutablescript4.4 KB

evals/cases.yaml

View on GitHub
skill: 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"
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall