drizzle-migration-conflict
Lets your agent diagnose and fix Drizzle Kit migration conflicts. Helps prevent issues with generated SQL and team workflows.
What it does
This tool helps resolve conflicts when working with Drizzle Kit migrations in a team. It diagnoses the problem, suggests how to fix it, and helps prevent future occurrences.
When to use it
- ✓When Drizzle migration files conflict after merging code.
- ✓When the `drizzle-kit check` command reports migration errors.
- ✓When your team wants a safe way to fix migrations after changes.
Example of what to ask your AI
“I have a Drizzle migration conflict after a merge, what should I do?”
Want more? Open the sections below.
How to use
The easiest way: copy the message below and paste it into Claude, ChatGPT, Cursor or any AI. It reads the skill and follows the instructions.
Skill link
Ready-to-paste message
How it works
The tool analyzes the current state of your migration files and code. It checks for differences and suggests steps to resolve conflicts, ensuring migrations are safe and consistent.
Installation
Easiest way: copy the skill link and paste it into Claude, ChatGPT or Cursor asking it to follow the instructions.
In the terminal (Claude Code, Codex, Cursor), in your project folder:
npx skills add sickn33/agentic-awesome-skills --skill drizzle-migration-conflictOr download just the file:
curl -L https://raw.githubusercontent.com/sickn33/agentic-awesome-skills/main/plugins/agentic-awesome-skills-claude/skills/drizzle-migration-conflict/SKILL.md -o SKILL.mdTechnical content (original SKILL.md)
Original text by the author, straight from GitHub.
Drizzle Migration Conflict
Use this skill to help a user diagnose, repair, and prevent Drizzle Kit migration conflicts in a multi-developer repository. Drizzle migrations encode both SQL and migration snapshots, so the safe answer depends on the current migration directory shape, the Drizzle Kit version, and the git state.
When to Use This Skill
- Use when Drizzle migration files,
_journal.json, orsnapshot.jsonconflict after a pull, merge, rebase, or PR update. - Use when
drizzle-kit checkreports non-commutative migrations or migration folder conflicts. - Use when a team wants a safe repair flow for generated Drizzle migrations after schema changes converge.
- Use when designing CI or merge-queue policy to prevent repeated Drizzle migration conflicts.
Safety rules
- Start in read-only diagnosis mode unless the user explicitly asks to fix files.
- Do not run
drizzle-kit migrate,drizzle-kit push, database seed scripts, or any command that connects to a live database unless the user explicitly requests it and the target is clear. - Treat
drizzle-kit check, project typechecks, and tests as command execution that may load project config, environment variables, or scripts. Inspect scripts/config first, and require an explicit non-production or disposable target before any DB-backed validation. - Do not delete migration files, rewrite
_journal.json, or rungit checkout --ours,git checkout --theirs,git restore, orrmunless the user has confirmed the exact side and files to change. - Do not recommend
drizzle-kit pushas the production solution for migration conflicts; it skips the auditable migration history that teams need. - Treat
--ignore-conflictsas an exception for a known false positive, not as the normal fix. - Preserve schema source code changes unless the user explicitly asks to discard them. Conflict repair normally discards generated migrations and regenerates them from the merged schema.
- If
oursandtheirscould mean different branches depending on merge direction, ask the user to identify the parent branch before suggesting checkout commands.
Required references
- Read
references/sources.mdwhen the answer depends on current Drizzle behavior, official guidance, or one of the preserved external links. - Read
references/conflict-resolution.mdbefore recommending a repair flow. - Read
references/ci-policy.mdbefore proposing CI, merge queue, or team workflow changes. - Read
references/report-template.mdbefore writing a diagnostic report.
Source references
The full list of official docs, Drizzle GitHub discussions, community scripts, and merge-queue
references lives in references/sources.md with trust levels and caveats. Read that file whenever
the answer depends on current Drizzle behavior. Re-verify the official docs and the most relevant
discussion when the project's drizzle-kit major version changes, since migration internals
(snapshot format, journal shape, drizzle-kit check semantics) have shifted between releases.
Mode selection
Classify the task first:
- Diagnose - The user has a conflict or failed
drizzle-kit checkand wants to understand it. - Repair - The user explicitly asks to fix or regenerate migration files.
- CI hardening - The user wants to prevent future conflicts in PRs or merge queues.
- Explain - The user wants a conceptual answer or a team playbook.
When the mode is not explicit, choose Diagnose.
Each mode unlocks a specific set of actions. Do not cross these boundaries without an explicit upgrade:
- Diagnose - read-only only. Run
git status,git ls-files -u, the helper script, and file inspection. Do not rundrizzle-kit check, typechecks, tests, or any write command. Report findings and the proposed repair path, but do not execute it. - Repair - adds file writes and
drizzle-kit generate/checkexecution, each gated by the Safety rules and explicit confirmation of the exact files and side (ours/theirs) to change. - CI hardening - adds proposing or editing CI/workflow files. Do not run migration commands against the user's database to validate the workflow; validate the workflow syntax and logic only.
- Explain - conceptual only. No commands against the repo beyond optional read-only inspection.
Repository discovery
Collect repo facts before giving commands:
git status --short
git rev-parse --show-toplevel
…
FAQ
What are Drizzle migrations?
Migrations are files that record changes to your database schema. Drizzle Kit helps manage these changes in an organized way.
Why do conflicts happen?
Conflicts occur when two or more people modify the same migration files simultaneously, and the system doesn't know which version to keep.
Will the tool touch my database?
No, the tool only analyzes and suggests fixes for files. It does not run commands that alter the database unless you explicitly and clearly request it.
Details
Original description by the author
Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows.
Popularity
- GitHub stars
- 48k
- Ranking position
- #2882
- License
- MIT
- Updated
- 10/15/2026
Comments
- …
More skills from this repository
00-andruia-consultant
Helps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
sickn33/agentic-awesome-skills
007
Lets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
sickn33/agentic-awesome-skills
10-andruia-skill-smith
Helps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
sickn33/agentic-awesome-skills
20-andruia-niche-intelligence
Lets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
sickn33/agentic-awesome-skills
Similar skills
bun-runtime
Has your agent use Bun to run, organize, and test code. It helps choose Bun over other tools and migrate existing projects.
affaan-m/ECC
database-migrations
Helps your agent make safe changes to databases. It ensures changes can be undone and minimizes downtime.
affaan-m/ECC
deployment-patterns
Sets up deployment and CI/CD workflows, containerization, and rollback strategies to ensure safe releases.
affaan-m/ECC