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 mooktakimv0.3.0MITIn 1 marketplace
Rails generators and commands instead of hand-written files: a skill for migrations (generating, field syntax, running, reversing, schema.rb conflicts, data changes, production safety), every other generator and installer, credentials, gems, and importmap pins, plus a hook that refuses hand-written migrations and hand edits to schema dumps, encrypted credentials, and Gemfile.lock
Claude loads one when your task matches it, or you run it by name.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Makes Claude use the Rails framework's own generators and commands instead of writing their files by hand. Left alone, Claude writes migrations directly - with hand-picked timestamps such as 20260930130000, a typed Migration[x.y] tag, and no test or fixture beside a new model - and edits files the framework owns, like db/schema.rb. This plugin tells it the right command, and stops the worst cases before they happen.
/plugin marketplace add mooktakim/skills
/plugin install rails-generators@mooktakim
rails-generators skill - 13 rules, plus references loaded on demand:
migrations.md - why the generator (timestamps, version tags and their compatibility shims, generated bodies), the name patterns and field syntax (string!, :uniq, {10,2}, references, digest, token, rich text and attachments), options and multiple databases, the migrate-redo-diff routine, changing a migration safely, schema.rb and its merge conflicts, reversible bodies, data changes, and production-safe patterns.generators.md - running generators safely (--pretend, --skip, why a generator with no terminal overwrites, exit codes that lie), the app's generator settings and template overrides, what each generator writes, gem generators and installers (Stimulus, ViewComponent, Solid Queue/Cache/Cable, Active Storage, Action Text), and what has no generator.commands.md - credentials without an interactive editor, gems, importmap pins and node packages, app:update, routes, database tasks, and runner, boot, zeitwerk:check.PreToolUse guard - in any directory with bin/rails, it refuses a new migration written with Write, Edit, or a shell command, and any write to db/schema.rb, db/structure.sql, db/<name>_schema.rb, encrypted credentials, or Gemfile.lock, and tells Claude the command to run instead. Editing a migration that has already run gets a note on how to change it safely. Tool calls that name none of those files never start Ruby.SessionStart hook - in Rails apps only, it tells the main session to use the commands and when to load the skill.flowchart LR
call["Write, Edit,<br/>or Bash call"] --> owned{"Hand-writes a file<br/>Rails owns?"}
owned -->|"no"| run["Runs as normal"]
owned -->|"yes"| refuse["Refused, with the<br/>command to run instead"]
The Rails source and CHANGELOGs (8.0, 8.1.4, and main), the Active Record migrations, generators, and configuring guides, every generator run under --pretend on a fresh Rails 8.1.4 app, the strong_migrations README (2.8.0), and the importmap-rails, stimulus-rails, view_component, and Solid gems' source.
Nothing to do: in a Rails app, Claude gets the rules at session start and loads the skill when it changes the schema or creates a file a generator makes. The guard catches the rest. To ask directly - "which command adds a polymorphic reference?", "fix the schema.rb conflict" - invoke /rails-generators:rails-generators.
If the guard ever blocks something it should not, disable the plugin for that session with /plugin disable rails-generators@mooktakim and open an issue.
bin/rails).Part of mooktakim/skills, a plugin marketplace for Claude Code. MIT licensed.
Plugins from other owners that cover similar ground
npx claudepluginhub mooktakim/skills --plugin rails-generatorsBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.