Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By lewispbv0.1.0MITIn 1 marketplace
Answers data questions about a Rails 8.2+ app by running read-only queries through rails query, locally or on Kamal-deployed environments. Says writes are blocked at the connection level; remote use requires a Kamal alias and a console role with read-replica access.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that teaches Claude to answer data questions about a Rails 8.2+ application using the rails query command — locally or against a deployed environment via Kamal.
When you ask Claude something like:
accounts?"…Claude reaches for rails query instead of opening a console, SSHing to a server, or writing a one-off script. Queries are structured (JSON output), read-only by construction (writes blocked at the connection level), and safe to run against production with a read replica.
The skill covers:
bin/rails query) and remote via Kamal (bin/kamal query -d <env>)--sql), schema/model introspection (schema, models), and EXPLAIN plansLIMITThis repository is both the plugin and a single-plugin marketplace, so you can install it directly without waiting for Anthropic marketplace approval.
From your shell:
claude plugin marketplace add lewispb/rails-query-skill
claude plugin install rails-query@rails-query-skill
Or equivalently, from inside an interactive Claude Code session:
/plugin marketplace add lewispb/rails-query-skill
/plugin install rails-query@rails-query-skill
/reload-plugins
The first command registers this repo as a marketplace; the second installs the plugin. In-session, /reload-plugins picks it up without restarting. The plugin will also be submitted to the official Anthropic marketplace — once approved, a shorter claude plugin install rails-query@claude-plugins-official will work too.
Rails 8.2+ (the app you're querying). Earlier versions don't ship the rails query command.
jq on your PATH if you want the skill's suggested extraction patterns to work (jq '.rows[0][0]').
For remote use: Kamal with an alias added to config/deploy.yml:
aliases:
query: 'app exec -q --reuse -p -r console "rails query"'
Your console role should be configured with read-replica DB access. See the skill body for the reasoning behind each flag.
The skill is described broadly so Claude invokes it whenever a task would naturally be solved by querying a Rails database — not just when the user types /rails-query:rails-query. Try:
"How many users registered last week?"
"What's in the
mailboxestable?"
"Explain this query:
Post.published.limit(100)"
rails query to Rails 8.2. Read this for the full design, rationale, and command surface.app commands — for wiring bin/kamal query to rails query on deployed environments.Issues and PRs welcome at https://github.com/lewispb/rails-query-skill.
MIT
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub lewispb/rails-query-skill --plugin rails-queryPlugins from other owners that cover similar ground