skills/drizzle-migration-conflict/SKILL.md
Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows.
npx skillsauth add ranbot-ai/awesome-skills drizzle-migration-conflictInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
_journal.json, or snapshot.json conflict after a pull, merge, rebase, or PR update.drizzle-kit check reports non-commutative migrations or migration folder conflicts.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.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._journal.json, or run git checkout --ours,
git checkout --theirs, git restore, or rm unless the user has confirmed the exact side and
files to change.drizzle-kit push as the production solution for migration conflicts; it skips
the auditable migration history that teams need.--ignore-conflicts as an exception for a known false positive, not as the normal fix.ours and theirs could mean different branches depending on merge direction, ask the user to
identify the parent branch before suggesting checkout commands.references/sources.md when the answer depends on current Drizzle behavior, official
guidance, or one of the preserved external links.references/conflict-resolution.md before recommending a repair flow.references/ci-policy.md before proposing CI, merge queue, or team workflow changes.references/report-template.md before writing a diagnostic report.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.
Classify the task first:
drizzle-kit check and wants to understand it.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:
git status, git ls-files -u, the helper script, and file
inspection. Do not run drizzle-kit check, typechecks, tests, or any write command. Report
findings and the proposed repair path, but do not execute it.drizzle-kit generate/check execution, each gated by the
Safety rules and explicit confirmation of the exact files and side (ours/theirs) to change.Collect repo facts before giving commands:
git status --short
git rev-parse --show-toplevel
git rev-parse --abbrev-ref HEAD
git ls-files -u
rg --files -g 'drizzle.config.*' -g 'package.json' -g 'pnpm-lock.yaml' -g 'yarn.lock' -g 'package-lock.json'
Then inspect the relevant files:
drizzle.config.* for out, schema, dialect, and config shape.package.json scripts for the project-approved generate, check, and migrate commands.package.json dependencies or lockfile snippets for drizzle-kit and drizzle-orm versions.tools
Use when a user asks to mine or update a private, evidence-backed work profile from local Claude Code, Codex, Copilot CLI, or OpenCode sessions.
data-ai
Use when diagnosing Android overheating, idle heat, thermal throttling, charging or radio heat, or abnormal battery drain with read-only ADB evidence and approval gates.
research
Research public competitor ads, analyze creative patterns and landing pages, and produce an evidence-labeled strategic teardown.
tools
Compiled CLI covering all 52 endpoints of the Anytype local API — objects, properties, tags, search, chat, files — one binary, no MCP server needed.