drizzle-migration-conflict
Skill này làm gì
Công cụ này giúp giải quyết xung đột khi làm việc với migration của Drizzle Kit trong nhóm. Nó chẩn đoán vấn đề, gợi ý cách sửa và giúp ngăn ngừa việc lặp lại trong tương lai.
Khi nào nên dùng
- ✓Khi các tệp migration của Drizzle bị xung đột sau khi gộp mã.
- ✓Khi lệnh `drizzle-kit check` báo lỗi migration.
- ✓Khi nhóm của bạn muốn một cách an toàn để sửa migration sau khi có thay đổi.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/drizzle-migration-conflict/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Sau khi gộp mã, tôi gặp xung đột migration của Drizzle. Tôi nên làm gì?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ phân tích trạng thái hiện tại của các tệp migration và mã của bạn. Nó kiểm tra sự khác biệt và đề xuất các bước để giải quyết xung đột, đảm bảo migration an toàn và nhất quán.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
…
Câu hỏi thường gặp
Migration của Drizzle là gì?
Migration là các tệp ghi lại những thay đổi đối với cấu trúc cơ sở dữ liệu. Drizzle Kit giúp quản lý các thay đổi này một cách có tổ chức.
Vì sao xung đột xảy ra?
Xung đột xảy ra khi hai hoặc nhiều người cùng sửa một tệp migration, và hệ thống không biết nên giữ phiên bản nào.
Công cụ có động đến cơ sở dữ liệu của tôi không?
Không, công cụ chỉ phân tích các tệp và đề xuất cách sửa. Nó không chạy các lệnh làm thay đổi cơ sở dữ liệu trừ khi bạn yêu cầu rõ ràng.
Chi tiết
Mô tả gốc của tác giả
Diagnose, repair, and prevent Drizzle Kit migration conflicts involving generated SQL, snapshots, journals, merge queues, and team workflows.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #4496
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.