Claude Code Cloudflare D1 Skill for Local Drizzle Migration Checks
Review the existing Worker binding and schema before planning a Drizzle change. Verify a new column against existing and new rows on local D1.
中文Install in Claude Code
Use Claude Code with the pinned skill and a Worker project with a local D1 test database. Use the project's Wrangler and Drizzle tools.
- Get the complete `skills/cloudflare-d1` directory from the pinned revision.
- Copy it into the target project's `.claude/skills/` and confirm `.claude/skills/cloudflare-d1/SKILL.md`. Start Claude Code at the project root and describe a task matching the skill's purpose.
Example task
Add a nullable summary column to a fictional documents table. Use local D1 with one old row, then insert a new row that includes a summary.What to check
The old row remains readable with a null summary. The new row stores and returns its summary. Verify against local D1 as well as the types.
Original SKILL.md on GitHub · Updated
Frequently asked question
Do nullable additions still need existing-row checks?
Use an old row to check query and serialization assumptions. Add a new row to confirm the field can be written and read.