kodykendall/llamabot/rails-migration
Claude Code and agent skill by kodykendall/llamabot
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Safely write and run a Rails database migration. Use when the user asks to add or change a column, table, or index, or mentions "migration", "schema", or "db:migrate".
Install
npx vskill@latest install kodykendall/llamabot/rails-migrationSKILL.md
Rails migration
A focused playbook for changing the database schema in a LlamaPress Rails app.
Steps
- Generate the migration:
bin/rails g migration <DescriptiveName>(e.g.AddPublishedAtToPosts). - Edit the generated file under
db/migrate/. Prefer a reversiblechangemethod; use
up/down only when the change can't be auto-reversed.
- Run it:
bin/rails db:migrate. Confirmdb/schema.rbupdated as expected. - If it fails,
bin/rails db:rollback, fix the migration, and re-run.
Rules & gotchas
- NEVER edit a migration that has already run in production — add a new migration instead.
- Adding a NOT NULL column to an existing table needs a default (or a backfill + a
follow-up migration) or it will fail on non-empty tables.
- For large tables, adding an index can lock writes — call it out to the user before running.
- After migrating, restart is usually not required (Rails reloads in dev), but if models
don't pick up the change, use the hard restart tool.
Verify
bin/rails runner "puts <Model>.column_names"to confirm the column exists.- Re-read
db/schema.rbto confirm the schema version bumped.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingapp/.leonardo/skills/rails-migration/SKILL.md
Popularity
- Repository stars
- 241
- Repository forks
- 53
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kodykendall/llamabot/rails-migration)