Zum Inhalt springen
Skillpedia
Deployment & Cloud (DevOps)48k · #4496

drizzle-migration-conflict

Was er macht

Dieses Tool hilft dir, Konflikte bei Drizzle-Kit-Migrationen im Team zu lösen. Es findet das Problem, schlägt vor, wie du es beheben kannst, und hilft dir, dass es später nicht wieder passiert.

Wann du ihn nutzt

  • ✓Wenn sich Drizzle-Migrationsdateien nach einem Merge von Code widersprechen.
  • ✓Wenn der Befehl `drizzle-kit check` Fehler bei Migrationen meldet.
  • ✓Wenn dein Team einen sicheren Weg braucht, Migrationen nach Änderungen zu reparieren.

Link zum Skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/drizzle-migration-conflict/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/drizzle-migration-conflict/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Ich habe nach einem Merge einen Drizzle-Migrationskonflikt. Was soll ich tun?”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Das Tool analysiert den aktuellen Stand deiner Migrationsdateien und deines Codes. Es prüft die Unterschiede und schlägt Schritte vor, um die Konflikte zu lösen, damit Migrationen sicher und konsistent bleiben.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von 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, 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:

git status --short
git rev-parse --show-toplevel

…
Häufige Fragen

Was sind Drizzle-Migrationen?

Migrationen sind Dateien, die Änderungen am Schema deiner Datenbank festhalten. Drizzle Kit hilft dabei, diese Änderungen geordnet zu verwalten.

Warum entstehen Konflikte?

Konflikte entstehen, wenn zwei oder mehr Personen gleichzeitig dieselben Migrationsdateien ändern und das System nicht weiß, welche Version behalten werden soll.

Verändert das Tool meine Datenbank?

Nein, das Tool analysiert nur die Dateien und schlägt Lösungen vor. Es führt keine Befehle aus, die die Datenbank verändern, außer du bittest ausdrücklich und klar darum.

Details

Originalbeschreibung des Autors

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

repo: sickn33/agentic-awesome-skills

Beliebtheit

GitHub-Sterne
48k
Platz im Ranking
#4496
Lizenz
MIT
Aktualisiert
15.10.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills