본문으로 건너뛰기
Skillpedia
배포 및 클라우드 (DevOps)48k · #4496

drizzle-migration-conflict

하는 일

팀에서 Drizzle Kit 마이그레이션을 사용할 때 발생하는 충돌을 해결하도록 돕습니다. 문제를 진단하고, 해결 방법을 제안하며, 앞으로 같은 문제가 다시 생기지 않도록 예방하는 데 도움을 줍니다.

사용하는 경우

  • ✓코드를 병합한 뒤 Drizzle 마이그레이션 파일이 충돌할 때.
  • ✓`drizzle-kit check` 명령이 마이그레이션 오류를 보고할 때.
  • ✓변경 후 팀이 마이그레이션을 안전하게 고치려고 할 때.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/drizzle-migration-conflict/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“병합 후 Drizzle 마이그레이션 충돌이 생겼습니다. 어떻게 해야 하나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

도구는 마이그레이션 파일과 코드의 현재 상태를 분석합니다. 차이점을 확인하고, 충돌을 해결하고 마이그레이션이 안전하고 일관되도록 단계를 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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

…
자주 묻는 질문

Drizzle 마이그레이션이란 무엇인가요?

데이터베이스 스키마의 변경 사항을 기록하는 파일입니다. Drizzle Kit이 이러한 변경을 체계적으로 관리하도록 돕습니다.

충돌은 왜 생기나요?

두 명 이상이 같은 마이그레이션 파일을 동시에 수정하고, 시스템이 어느 버전을 유지해야 할지 모를 때 충돌이 발생합니다.

도구가 데이터베이스를 건드리나요?

아니요, 도구는 파일만 분석하고 수정 방법을 제안합니다. 사용자가 명시적으로 분명하게 요청하지 않는 한 데이터베이스를 바꾸는 명령은 실행하지 않습니다.

상세 정보

작성자의 원본 설명

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

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#4496
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬