Agent skill

Drizzle Migration Conflict

by sickn33 in sickn33/agentic-awesome-skills

Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows.

Apache-2.0Auto-check: notesDatabases

Install Drizzle Migration Conflict

skills CLI
$ npx skills add sickn33/agentic-awesome-skills --skill drizzle-migration-conflict -a claude-code

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

GitHub CLI
$ gh skill install sickn33/agentic-awesome-skills drizzle-migration-conflict --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/sickn33/agentic-awesome-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/drizzle-migration-conflict .claude/skills/drizzle-migration-conflict && 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
drizzle-migration-conflict
GitHub stars
47k
Used in
1 other repo
Token cost
~2.5k tokens
SKILL.md length
1,225 words
Files
6 (incl. scripts, references)
Skills in repo
1,497
Repo updated
First seen
Licence
Apache-2.0

At a glance

Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows.

  • Works in 4 steps: Diagnose - The user has a conflict or… → Repair - The user explicitly asks to fix… → CI hardening - The user wants to prevent… → …
  • Tasks that involve ORMs and data access
  • SKILL.md covers When to Use This Skill, Safety rules, Required references and Source references, plus 7 more sections
  • Runs Python scripts from its folder; calls git, rg and python3

What it does

Drizzle Migration Conflict is an agent skill from sickn33/agentic-awesome-skills. Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows.

Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts and reference files (for example `references/ci-policy.md`, `references/conflict-resolution.md` and `references/report-template.md`).

It sits in Databases, covering ORMs and data access and SQL. It works with Drizzle ORM, SQL and Git. The repository describes itself as: AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,400+ agentic skills. Includes… The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve ORMs and data access
  • Tasks that involve SQL

Example prompts

  • “/drizzle-migration-conflict”

Requirements

  • Python 3

Workflow steps

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

  1. Diagnose - The user has a conflict or failed drizzle-kit check and wants to understand it.
  2. Repair - The user explicitly asks to fix or regenerate migration files.
  3. CI hardening - The user wants to prevent future conflicts in PRs or merge queues.
  4. Explain - The user wants a conceptual answer or a team playbook.

What it can do on your machine

Read from SKILL.md and the folder at commit b84d35a. 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

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • git
    • rg
    • python3

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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

Drizzle Migration Conflict loads about 2.5k tokens when it runs, and up to ~7.2k if it reads all its reference files. Until then it costs about 42 tokens; SKILL.md has 1,225 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~2.5k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:156
    ts. When inspecting `drizzle.config.*`, `.env`, or environment variables, do not

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); the scripts in this folder are not scanned.

SKILL.md

The full file from sickn33/agentic-awesome-skills at commit b84d35a, republished under its Apache-2.0 licence (© sickn33). 1,225 words, ~2,491 tokens.

Download SKILL.mdSave it as .claude/skills/drizzle-migration-conflict/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
drizzle-migration-conflict
description
Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows.
category
databases
risk
critical
source
community
source_repo
chaunsin/agent-skills
source_type
community
date_added
2026-06-29
author
chaunsin
tags
drizzle, migrations, database, ci, merge-conflicts
tools
git, python, rg
license
Apache-2.0

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, or snapshot.json conflict after a pull, merge, rebase, or PR update.
  • Use when drizzle-kit check reports 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 run git checkout --ours, git checkout --theirs, git restore, or rm unless the user has confirmed the exact side and files to change.
  • Do not recommend drizzle-kit push as the production solution for migration conflicts; it skips the auditable migration history that teams need.
  • Treat --ignore-conflicts as 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 ours and theirs could mean different branches depending on merge direction, ask the user to identify the parent branch before suggesting checkout commands.

Required references

  • Read references/sources.md when the answer depends on current Drizzle behavior, official guidance, or one of the preserved external links.
  • Read references/conflict-resolution.md before recommending a repair flow.
  • Read references/ci-policy.md before proposing CI, merge queue, or team workflow changes.
  • Read references/report-template.md before 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:

  1. Diagnose - The user has a conflict or failed drizzle-kit check and wants to understand it.
  2. Repair - The user explicitly asks to fix or regenerate migration files.
  3. CI hardening - The user wants to prevent future conflicts in PRs or merge queues.
  4. 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 run drizzle-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/check execution, 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:

bash
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.
  • The migration output directory, either from config or common names like drizzle/, migrations/, or src/db/migrations/.

If this skill's helper script is available, run it in read-only mode:

bash
python3 <skill-dir>/scripts/check_drizzle_migrations.py --root .

Resolve <skill-dir> to the installed skill directory before running. Check these locations in order and use the first that contains scripts/check_drizzle_migrations.py:

  1. The target repository's vendored copy: <repo-root>/skills/drizzle-migration-conflict.
  2. The Claude Code skills directory: ~/.claude/skills/drizzle-migration-conflict.
  3. Any other install location reported by the user's environment.

If none of these resolve, fall back to the manual git/rg inspection commands above and tell the user the helper script was not found. Use --config <file> and --migrations-dir <dir> when the project has multiple Drizzle configs or outputs. The script never connects to a database and never writes files; it only reads migration directories and reports structural issues.

Show full SKILL.md (444 more words)Show less

Migration structure decision

Identify the structure before proposing a fix:

  • Legacy structure: <out>/meta/_journal.json, <out>/meta/*_snapshot.json, and root-level migration SQL files such as <out>/0003_name.sql.
  • Folder-based structure: each migration is a directory containing migration.sql and snapshot.json.
  • Unknown or mixed structure: stop and report ambiguity. Do not guess a destructive repair.
  • Resolve schema source conflicts first. The regenerated migration must reflect the merged schema, not one side's stale snapshot.
  • Treat the parent or target branch migration history as the source of truth when repairing a feature branch after updating from that branch.
  • Prefer discarding and regenerating generated migration artifacts over hand-editing journal or snapshot files.
  • After regeneration, validate in tiers: database-free structural checks first; then drizzle-kit check only after confirming its config/env cannot point at production; then project tests only after inspecting the scripts and any database targets.
  • If the user asks to apply changes, state exactly which files will be changed before performing the write.

Output rules

  • Use the user's language when practical, but keep command snippets and file paths literal.
  • State the detected migration structure and selected mode.
  • Separate confirmed conflicts from assumptions and missing evidence.
  • Give a safe default path first, then optional automation or CI hardening.
  • For destructive steps, label them as "requires confirmation" and explain what will be lost.
  • Never echo secrets. When inspecting drizzle.config.*, .env, or environment variables, do not include database URLs, passwords, tokens, or connection strings in the report. Reference them as <redacted> or describe only whether they point at a production-like target.
  • Use the conclusion values from references/report-template.md for diagnostic reports: NO_CONFLICT_FOUND, SAFE_TO_REGENERATE, NEEDS_USER_CONFIRMATION, or BLOCKED_BY_AMBIGUITY.

Limitations

  • This skill cannot guarantee that a regenerated migration is production-safe without review against the target database state and deployment process.
  • It does not run DB-backed migration commands unless the user explicitly confirms the target and the command.
  • It is focused on Drizzle Kit migration conflicts, not general schema design or application-query optimization.

Test prompts

Use these prompts to validate the skill behavior:

  • "My Drizzle _journal.json and 0003_snapshot.json conflict during merge. Tell me what to do."
  • "We upgraded to the migration folder layout and drizzle-kit check reports a non-commutative conflict."
  • "Design CI so our team stops merging broken Drizzle migrations."
  • "Can I solve this production Drizzle migration conflict with drizzle-kit push?"
  • "Use the links in the skill to re-check the current official Drizzle migration conflict guidance."
  • "We're halfway through moving from the legacy flat layout to folder-based migrations. How do we handle a conflict during the transition?"
  • "Our drizzle.config.ts sets out from process.env.MIGRATIONS_DIR, and the helper says no out directory was found. What now?"
  • "drizzle-kit check keeps failing on a migration we know commutes. Can we just always pass --ignore-conflicts?"

© sickn33, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (scripts, references) in skills/drizzle-migration-conflict of sickn33/agentic-awesome-skills.

  • SKILL.md
  • references/ci-policy.md
  • references/conflict-resolution.md
  • references/report-template.md
  • references/sources.md
  • scripts/check_drizzle_migrations.py

Open the folder on GitHubat commit b84d35a

Used in 1 other repository

We found 3 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in sickn33/agentic-awesome-skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Drizzle Migration Conflict 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.

Drizzle Migration Conflict compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Drizzle Migration Conflict this skillsickn33/agentic-awesome-skills47k1 repos~2.5kAutomated safety check: NotesApache-2.0
Archestra Dev Migrationsarchestra-ai/archestra4.4k—~804Automated safety check: PassCustom licence
Drizzle Ormgrowupanand/ConvoForm1021 repos~2.7kAutomated safety check: PassApache-2.0
Drizzle OrmEpicenterHQ/epicenter4.8k—~1.3kAutomated safety check: PassCustom licence
Drizzle Orm D1secondsky/claude-skills227—~2.4kAutomated safety check: PassMIT
Safe SQL Executionsupabase/supabase111k—~4.2kAutomated safety check: PassApache-2.0

Similar skills

  • Archestra Dev Migrations

    archestra-ai/archestra

    A skill your agent uses when changing Drizzle schemas, generating migrations, editing migration SQL, creating data-only migrations, diagnosing drizzle-kit check failures, or resolving…

    4.4k GitHub stars~804 tokensUpdated today
    DatabasesAuto-check passed
  • Drizzle Orm

    growupanand/ConvoForm

    Type-safe SQL ORM for TypeScript with zero runtime overhead. An agent skill from growupanand/ConvoForm.

    102 GitHub starsUsed in 1 repo~2.7k tokens
    DatabasesAuto-check passed
  • Drizzle Orm

    EpicenterHQ/epicenter

    Apply Drizzle ORM patterns for schemas, migrations, queries, branded types, and Postgres or D1 boundaries.

    4.8k GitHub stars~1.3k tokensUpdated 2 days ago
    DatabasesAuto-check passed
  • Drizzle Orm D1

    secondsky/claude-skills

    | Type-safe ORM for Cloudflare D1 databases using Drizzle. An agent skill from secondsky/claude-skills.

    227 GitHub stars~2.4k tokensUpdated 12 days ago
    DatabasesAuto-check passed
  • Safe SQL Execution

    supabase/supabase

    Official

    A skill your agent uses whenever code will build, return, fetch, or execute SQL that runs against a user's real Postgres database — even when the request reads like an ordinary feature or bug fix…

    111k GitHub stars~4.2k tokensUpdated today
    DatabasesAuto-check passed
  • Wtf

    noobnooc/agent

    Pre-launch and pre-commit audit for vibe coding projects. An agent skill from noobnooc/agent.

    1.4k GitHub stars~2.1k tokensUpdated 1 mo ago
    DatabasesAuto-check: notes

More from sickn33/agentic-awesome-skills

All 1,497 skills in this repo
  • Liuguang Banlan UI

    sickn33/agentic-awesome-skills

    Implements an interface in one of two named color modes, iridescent white or colorful black, from a parameterized starter that reports measured color intensity.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • User Thoughts Memory

    sickn33/agentic-awesome-skills

    Saves a user's project decisions, rules and preferences into a project-local mdbase so later sessions and other agents can recover the intent.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Using LWC Memory and Graphs

    sickn33/agentic-awesome-skills

    Keeps project decisions, research and verified results available across coding-agent sessions through LWC memory, a document Wiki graph and a CodeGraph code index.

    47k GitHub starsUsed in 1 repo~2k tokens
    Auto-check passed
  • Find Complementary Founders

    sickn33/agentic-awesome-skills

    Guides an agent through assessing its own owner for cofounder fit, publishing an approved profile, and ranking complementary profiles other agents published for their owners.

    47k GitHub starsUsed in 1 repo~4.8k tokens
    Auto-check passed
  • Whatsapp Cloud API

    sickn33/agentic-awesome-skills

    Integracao com WhatsApp Business Cloud API (Meta). An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~4.5k tokens
    Auto-check passed
  • Cline Pilot

    sickn33/agentic-awesome-skills

    Acts as a proxy for the Cline CLI, dispatching coding tasks one at a time, monitoring runs by hard evidence, relaying decisions to you and learning per-project preferences.

    47k GitHub starsUsed in 1 repo~4.6k tokens
    Auto-check passed

Categories

Questions about Drizzle Migration Conflict

What does Drizzle Migration Conflict do?

Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows. Drizzle Migration Conflict is an agent skill from sickn33/agentic-awesome-skills. Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows.

When should I use Drizzle Migration Conflict?

Drizzle Migration Conflict fits situations like: tasks that involve ORMs and data access; tasks that involve SQL.

How do I install Drizzle Migration Conflict in Claude Code?

Run `npx skills add sickn33/agentic-awesome-skills --skill drizzle-migration-conflict -a claude-code`. Or copy the skill folder (skills/drizzle-migration-conflict in sickn33/agentic-awesome-skills) into .claude/skills/drizzle-migration-conflict in your project. Claude Code loads it when a task matches its description.

How do I install Drizzle Migration Conflict in Codex?

Run `npx skills add sickn33/agentic-awesome-skills --skill drizzle-migration-conflict -a codex`. Or copy the skill folder (skills/drizzle-migration-conflict in sickn33/agentic-awesome-skills) into .agents/skills/drizzle-migration-conflict in your project. Codex loads it when a task matches its description.

Can I use Drizzle Migration Conflict 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 sickn33/agentic-awesome-skills --skill drizzle-migration-conflict -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/drizzle-migration-conflict, .gemini/skills/drizzle-migration-conflict, .github/skills/drizzle-migration-conflict and .opencode/skills/drizzle-migration-conflict in your project.

What does Drizzle Migration Conflict need to run?

Going by SKILL.md and its folder, Drizzle Migration Conflict needs Python for the scripts in its folder and the command-line tools its instructions call (git, rg and python3). Our summary lists: Python 3.

Does Drizzle Migration Conflict access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Drizzle Migration Conflict safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Drizzle Migration Conflict use?

Drizzle Migration Conflict is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Drizzle Migration Conflict use?

About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4.7k tokens, read only when the agent opens those files.

What are the alternatives to Drizzle Migration Conflict?

Skills that share tags, products or a category with Drizzle Migration Conflict: Archestra Dev Migrations (archestra-ai/archestra, 4.4k stars), Drizzle Orm (growupanand/ConvoForm, 102 stars), Drizzle Orm (EpicenterHQ/epicenter, 4.8k stars) and Drizzle Orm D1 (secondsky/claude-skills, 227 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Drizzle Migration Conflict?

sickn33 (a GitHub user) maintains it in sickn33/agentic-awesome-skills, which has 47,405 GitHub stars. The repository holds 1,497 skills in this directory. The repository was last updated on October 9, 2026.

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