Rails Query plugin for Claude Code

Run and review read-only database queries from Claude Code in Rails 8.2 and later projects.

How to install the Rails Query plugin in Claude Code

  1. Run both commands in your terminal to add the publisher marketplace and install the plugin.
  2. Open the Rails project and verify its local rails query help is available before asking the plugin to inspect a model.
Claude Code · Install in Claude Code
claude plugin marketplace add lewispb/rails-query-skill
claude plugin install rails-query@rails-query-skill

Try this workflow

In a local seeded Rails app, ask for a count of orders marked complete after a known cutoff. Have Claude identify the model, relevant status field, and date column before querying.

Compare the count against the fixture, including an order whose completion time falls exactly on the cutoff. Check the command used the read-only rails query path.

What you need

The target project needs Rails 8.2 or newer. Use its local test database for the first exercise.

Publisher references

Publisher source

Anthropic Marketplace

Browse Plugins