Agent skill

Rails Migrations

by marckohlbrugge in marckohlbrugge/37signals-skills

Write and review Rails database migrations safely, including reversible changes, lock-aware operations, and rollout sequencing.

No licenceAuto-check passedBackend & APIs

Install Rails Migrations

skills CLI
$ npx skills add marckohlbrugge/37signals-skills --skill rails-migrations -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install marckohlbrugge/37signals-skills rails-migrations --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/marckohlbrugge/37signals-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/rails-migrations .claude/skills/rails-migrations && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
rails-migrations
GitHub stars
724
Token cost
~1.2k tokens
SKILL.md length
547 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
None found

At a glance

Write and review Rails database migrations safely, including reversible changes, lock-aware operations, and rollout sequencing.

  • Changing schema
  • SKILL.md covers Rules, Script Backfills (not…, Safe Patterns and Constraints: a deliberate…, plus 4 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Tasks that involve Backend development

What it does

Rails Migrations is an agent skill from marckohlbrugge/37signals-skills. Write and review Rails database migrations safely, including reversible changes, lock-aware operations, and rollout sequencing. Use when adding or changing schema, indexes, constraints, or backfills.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Backend & APIs, covering Backend development and Database migrations. It works with SQL. The repository describes itself as: Unofficial agent skills + reference guide that teach AI coding assistants to write Rails the 37signals way — extracted from Fizzy, Campfire, and DHH's code reviews.

When your agent uses it

  • Changing schema
  • Tasks that involve Backend development
  • Tasks that involve Database migrations

Example prompts

  • “/rails-migrations”

What it can do on your machine

Read from SKILL.md and the folder at commit c58e7d5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Rails Migrations loads about 1.2k tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 547 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 547 words (~1,166 tokens).

“Use for schema changes and migration safety.”

— opening of SKILL.md by marckohlbrugge
name
rails-migrations
disable-model-invocation
true

Read the full SKILL.md on GitHub

Files

Just SKILL.md in skills/rails-migrations of marckohlbrugge/37signals-skills.

Open the folder on GitHubat commit c58e7d5

Compare with similar skills

Rails Migrations next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Rails Migrations compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Rails Migrations this skillmarckohlbrugge/37signals-skills724—~1.2kAutomated safety check: PassNone
Migratesoftspark/ai-toolkit179—~1.3kAutomated safety check: NotesApache-2.0
cmux Backend Rulesmanaflow-ai/cmux28k1 repos~682Automated safety check: PassCustom licence
Geoflowyaojingang/GEOFlow3.8k—~722Automated safety check: PassAGPL-3.0
Saleor Django Schema Migrationsaleor/saleor23k—~1kAutomated safety check: PassBSD-3-Clause
Twenty Entity Runner Actionstwentyhq/twenty58k—~3.1kAutomated safety check: PassCustom licence

Similar skills

  • Migrate

    softspark/ai-toolkit

    Run/create DB migrations (Alembic, Prisma, Laravel, Django, Flyway, Drizzle); checks backup.

    179 GitHub stars~1.3k tokensUpdated 3 days ago
    DatabasesAuto-check: notes
  • cmux Backend Rules

    manaflow-ai/cmux

    Sets the backend TypeScript and Cloud VM rules for cmux: Effect-based services, thin route handlers, Postgres as source of truth, migrations and provider secrets.

    28k GitHub starsUsed in 1 repo~682 tokens
    Backend & APIsAuto-check passed
  • Geoflow

    yaojingang/GEOFlow

    Operate/develop GEOFlow CLI/Laravel/admin/API, topics/专题 and topic tasks, theme libraries/replication, sites/leads/Agent, channel sync and legacy yao-geoflow-cli/design/template migration.

    3.8k GitHub stars~722 tokensUpdated today
    Backend & APIsAuto-check passed
  • Generates and splits Django schema migrations for Saleor with manage.py makemigrations, enforcing one new model or one field change per migration file.

    23k GitHub stars~1k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Step four of adding a syncable entity in the Twenty server: write create, update and delete action handlers that run workspace migrations against the database.

    58k GitHub stars~3.1k tokensUpdated today
    Backend & APIsAuto-check passed
  • Debug Using Debugbar

    hexlet-volunteers/hexlet-sicp

    Inspect what a Laravel request actually did — queries, exceptions, timing, cache, auth, views — by reading the profiling data Laravel Debugbar already captured, via Artisan commands.

    114 GitHub starsUsed in 1 repo~1.5k tokens
    Backend & APIsAuto-check passed

More from marckohlbrugge/37signals-skills

All 8 skills in this repo
  • Rails Best Practices Core

    marckohlbrugge/37signals-skills

    Apply core Ruby on Rails best practices for architecture, naming, safety, and maintainability.

    724 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Rails Jobs

    marckohlbrugge/37signals-skills

    Apply best practices for Rails background jobs using simple orchestration, idempotency, and safe retries.

    724 GitHub stars~1.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Rails Security Multitenancy

    marckohlbrugge/37signals-skills

    Apply Rails security and multi-tenant safety practices including scoped queries, SSRF defenses, rate limiting, and tenant-scoped realtime updates.

    724 GitHub stars~1.7k tokensUpdated 4 mo ago
    Auto-check passed
  • Dhh

    marckohlbrugge/37signals-skills

    Review Ruby/Rails code like DHH would - direct, opinionated, allergic to over-engineering.

    724 GitHub stars~2.2k tokensUpdated 4 mo ago
    Auto-check passed
  • Rails Hotwire Realtime

    marckohlbrugge/37signals-skills

    Apply Hotwire, Turbo, Stimulus, and ActionCable best practices for real-time Rails interfaces.

    724 GitHub stars~1.9k tokensUpdated 4 mo ago
    Auto-check passed
  • Rails Testing

    marckohlbrugge/37signals-skills

    Apply Rails testing standards with Minitest, fixtures, and pragmatic coverage boundaries.

    724 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed

Works with

Questions about Rails Migrations

What does Rails Migrations do?

Write and review Rails database migrations safely, including reversible changes, lock-aware operations, and rollout sequencing. Rails Migrations is an agent skill from marckohlbrugge/37signals-skills. Write and review Rails database migrations safely, including reversible changes, lock-aware operations, and rollout sequencing.

When should I use Rails Migrations?

Rails Migrations fits situations like: changing schema; tasks that involve Backend development; tasks that involve Database migrations.

How do I install Rails Migrations in Claude Code?

Run `npx skills add marckohlbrugge/37signals-skills --skill rails-migrations -a claude-code`. Or copy the skill folder (skills/rails-migrations in marckohlbrugge/37signals-skills) into .claude/skills/rails-migrations in your project. Claude Code loads it when a task matches its description.

How do I install Rails Migrations in Codex?

Run `npx skills add marckohlbrugge/37signals-skills --skill rails-migrations -a codex`. Or copy the skill folder (skills/rails-migrations in marckohlbrugge/37signals-skills) into .agents/skills/rails-migrations in your project. Codex loads it when a task matches its description.

Can I use Rails Migrations in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add marckohlbrugge/37signals-skills --skill rails-migrations -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/rails-migrations, .gemini/skills/rails-migrations, .github/skills/rails-migrations and .opencode/skills/rails-migrations in your project.

What does Rails Migrations need to run?

SKILL.md names no scripts, command-line tools or credentials: Rails Migrations is instructions for the agent only.

Does Rails Migrations access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Rails Migrations safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Rails Migrations use?

No licence was found for Rails Migrations or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Rails Migrations use?

About 1.2k tokens (SKILL.md is roughly 4.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Rails Migrations?

Skills that share tags, products or a category with Rails Migrations: Migrate (softspark/ai-toolkit, 179 stars), cmux Backend Rules (manaflow-ai/cmux, 28k stars), Geoflow (yaojingang/GEOFlow, 3.8k stars) and Saleor Django Schema Migration (saleor/saleor, 23k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Rails Migrations?

marckohlbrugge (a GitHub user) maintains it in marckohlbrugge/37signals-skills, which has 724 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on June 9, 2026.

Source: marckohlbrugge/37signals-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.