Official agent skill

Generate Migration

by getsentry in getsentry/sentry

Generate or review Django database migrations for Sentry. An agent skill from getsentry/sentry.

OfficialCustom licenceAuto-check passedDatabases

Install Generate Migration

skills CLI
$ npx skills add getsentry/sentry --skill generate-migration -a claude-code

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

GitHub CLI
$ gh skill install getsentry/sentry generate-migration --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/getsentry/sentry.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/generate-migration .claude/skills/generate-migration && 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
generate-migration
GitHub stars
45k
Token cost
~2.2k tokens
SKILL.md length
1,032 words
Files
1
Skills in repo
29
Repo updated
First seen
Licence
Custom licence

At a glance

Generate or review Django database migrations for Sentry. An agent skill from getsentry/sentry.

  • Works in 4 steps: If you added a new model, ensure it's… → Review the generated migration for… → Run sentry django sqlmigrate to verify… → …
  • Reviewing migrations and data migrations
  • SKILL.md covers Commands, After Generating, Guidelines and Resolving Merge Conflicts
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Generate Migration is an agent skill from getsentry/sentry, published by the product's own GitHub organization. Generate or review Django database migrations for Sentry. Use when creating or reviewing migrations and data migrations, adding/removing columns or tables, adding indexes, or resolving migration conflicts.

Its SKILL.md is about 2.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 Databases, covering Backend development and Database migrations. It works with Sentry and Django. The repository describes itself as: Developer-first error tracking and performance monitoring.

When your agent uses it

  • Reviewing migrations and data migrations
  • Adding/removing columns
  • Resolving migration conflicts

Example prompts

  • “/generate-migration”

Requirements

  • Python 3

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. If you added a new model, ensure it's imported in the app's init.py
  2. Review the generated migration for correctness
  3. Run sentry django sqlmigrate to verify the SQL
  4. Apply the migration locally with sentry django migrate — Sentry's migration framework runs its safety checks on apply, so this catches…

What it can do on your machine

Read from SKILL.md and the folder at commit 87d1203. 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 (its code samples are bash and python).

    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

Generate Migration loads about 2.2k tokens when it runs. Until then it costs about 56 tokens; SKILL.md has 1,032 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~56
When it runs · the whole SKILL.md, loaded when a task matches
~2.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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,032 words (~2,221 tokens).

“Generate migrations automatically based on model changes:”

— opening of SKILL.md by getsentry, Custom licence
name
generate-migration

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/generate-migration of getsentry/sentry.

Open the folder on GitHubat commit 87d1203

Compare with similar skills

Generate Migration 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.

Generate Migration compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Generate Migration this skillgetsentry/sentry45k—~2.2kAutomated safety check: PassCustom licence
DB Migratorlaolaoshiren/claude-code-skills-zh877—~677Automated safety check: PassMIT
Saleor Django Schema Migrationsaleor/saleor23k—~1kAutomated safety check: PassBSD-3-Clause
Database Migrationagulli/atlas-agents578—~702Automated safety check: PassMIT
Database Migrationsaffaan-m/ECC274k4 repos~3kAutomated safety check: PassMIT
Database Migrationsaffaan-m/ECC274k3 repos~1.9kAutomated safety check: PassMIT

Similar skills

  • DB Migrator

    laolaoshiren/claude-code-skills-zh

    数据库迁移助手 - Schema 对比、迁移脚本生成

    877 GitHub stars~677 tokensUpdated 2 days ago
    DatabasesAuto-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
  • Database Migration

    agulli/atlas-agents

    Safely run database schema migrations. An agent skill from agulli/atlas-agents.

    578 GitHub stars~702 tokensUpdated 2 mo ago
    DatabasesAuto-check passed
  • Safe, reversible database migration patterns: forward-only production changes, expand-contract zero-downtime renames, concurrent indexes, batched backfills, and per-tool workflows for PostgreSQL…

    274k GitHub starsUsed in 4 repos~3k tokens
    DatabasesAuto-check passed
  • 数据库迁移最佳实践,涵盖模式变更、数据迁移、回滚以及零停机部署,适用于PostgreSQL、MySQL及常用ORM(Prisma、Drizzle、Django、TypeORM、golang-migrate)。

    274k GitHub starsUsed in 3 repos~1.9k tokens
    DatabasesAuto-check passed
  • Şema değişiklikleri, veri migration'ları, rollback'ler ve PostgreSQL, MySQL ve yaygın ORM'ler (Prisma, Drizzle, Django, TypeORM, golang-migrate) arasında sıfır kesinti deployment'ları için…

    274k GitHub starsUsed in 1 repo~2.4k tokens
    DatabasesAuto-check passed

More from getsentry/sentry

All 29 skills in this repo
  • Scraps Review

    getsentry/sentry

    Official

    Filter large Sentry Scraps design-system migration PRs for review by separating mechanical import-path changes, generated baseline updates, snapshot mocks, and pure renames from substantive…

    45k GitHub stars~1.2k tokensUpdated today
    Auto-check: notes
  • Analytics

    getsentry/sentry

    Official

    Instrument and discover analytics events in Sentry's frontend UI.

    45k GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Outboxes

    getsentry/sentry

    Official

    Guide for creating and maintaining outbox-based eventually consistent operations in Sentry.

    45k GitHub stars~4.8k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Rpc

    getsentry/sentry

    Official

    Guide for creating, updating, and deprecating hybrid cloud RPC services in Sentry.

    45k GitHub stars~4k tokensUpdated today
    Auto-check passed
  • Hybrid Cloud Test Gen

    getsentry/sentry

    Official

    Generate hybrid cloud tests for the Sentry codebase. An agent skill from getsentry/sentry.

    45k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • Lint Fix

    getsentry/sentry

    Official

    Fix violations of an eslintPluginScraps rule across the codebase.

    45k GitHub stars~1k tokensUpdated today
    Auto-check passed

Works with

Questions about Generate Migration

What does Generate Migration do?

Generate or review Django database migrations for Sentry. An agent skill from getsentry/sentry. Generate Migration is an agent skill from getsentry/sentry, published by the product's own GitHub organization. Generate or review Django database migrations for Sentry.

When should I use Generate Migration?

Generate Migration fits situations like: reviewing migrations and data migrations; adding/removing columns; resolving migration conflicts.

How do I install Generate Migration in Claude Code?

Run `npx skills add getsentry/sentry --skill generate-migration -a claude-code`. Or copy the skill folder (.agents/skills/generate-migration in getsentry/sentry) into .claude/skills/generate-migration in your project. Claude Code loads it when a task matches its description.

How do I install Generate Migration in Codex?

Run `npx skills add getsentry/sentry --skill generate-migration -a codex`. Or copy the skill folder (.agents/skills/generate-migration in getsentry/sentry) into .agents/skills/generate-migration in your project. Codex loads it when a task matches its description.

Can I use Generate Migration 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 getsentry/sentry --skill generate-migration -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/generate-migration, .gemini/skills/generate-migration, .github/skills/generate-migration and .opencode/skills/generate-migration in your project.

What does Generate Migration need to run?

SKILL.md names no scripts, command-line tools or credentials: Generate Migration is instructions for the agent only. Our summary lists: Python 3.

Does Generate Migration 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 Generate Migration 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 Generate Migration use?

Generate Migration has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Generate Migration use?

About 2.2k tokens (SKILL.md is roughly 8.9k 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 Generate Migration?

Skills that share tags, products or a category with Generate Migration: DB Migrator (laolaoshiren/claude-code-skills-zh, 877 stars), Saleor Django Schema Migration (saleor/saleor, 23k stars), Database Migration (agulli/atlas-agents, 578 stars) and Database Migrations (affaan-m/ECC, 274k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Generate Migration?

getsentry (a GitHub organization, an official publisher) maintains it in getsentry/sentry, which has 45,495 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 7, 2026.

Source: getsentry/sentry on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.