CtrlK
BlogDocsLog inGet started
Tessl Logo

d1-migration

Cloudflare D1 migration workflow: generate with Drizzle, inspect SQL for gotchas, apply to local and remote, fix stuck migrations, handle partial failures. Use when running migrations, fixing migration errors, or setting up D1 schemas.

76

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

The canonical home for this skill is d1-migration in jezweb/claude-skills

SKILL.md
Quality
Evals
Security

Quality

Content

96%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

Excellent operational content: every section is executable, the migration flow has explicit inspection and verification checkpoints, and recovery from partially applied migrations is fully covered. The only structural improvement is moving the auxiliary topics (bulk inserts, naming conventions, project setup) into reference files to keep SKILL.md focused on the core workflow.

Suggestions

Move 'Bulk Insert Batching', 'Column Naming', and 'New Project Setup' into a references/ file (e.g., references/auxiliary.md) and link them from SKILL.md so the main file stays a lean migration workflow overview.

Add a one-line pointer at the top of the Standard Migration Flow stating that Steps 3–4 should be skipped or adapted when only diagnosing (users arriving via the 'fixing migration errors' trigger), to make the entry point for the repair path more explicit.

DimensionReasoningScore

Conciseness

The body is lean and command-first throughout — no explanation of what D1, Drizzle, or SQLite are, no filler, just commands, patterns, and gotchas ('Drizzle sometimes generates destructive migrations for simple schema changes'). Every token earns its place, matching the score-5 anchor; there is no over-explanation that would justify a 4.

5 / 5

Actionability

Fully executable guidance: exact pnpm/wrangler commands ('npx wrangler d1 execute DB_NAME --remote --command "PRAGMA table_info(my_table)"'), a concrete SQL red-flag pattern with the corrected statement, and copy-paste batching code for the D1 parameter limit. Matches the score-5 anchor for copy-paste-ready commands covering the common cases; placeholders like DB_NAME are appropriate, not gaps.

5 / 5

Workflow Clarity

The standard flow is numbered 1–5 with an explicit 'Inspect the SQL (CRITICAL)' checkpoint before applying and a Step 5 verify using PRAGMA table_info on both local and remote; the stuck-migrations section adds a full diagnosis → fix → retry feedback loop. Validation for destructive/batch operations is present, so the workflow-clarity cap at 3 does not apply, and it matches the score-5 anchor with explicit validation and error-recovery loops.

5 / 5

Progressive Disclosure

Sections are well-organized with clear headers and no buried or nested references, and no bundle files exist to mismanage. However, the body runs ~130 lines (beyond the under-50-line simple-skill exception) and tangential sections — Bulk Insert Batching, Column Naming, New Project Setup — are inlined when they could live in reference files, leaving SKILL.md as a leaner migration-flow overview. This fits the score-4 'good structure; minor organization gaps' anchor rather than the score-5 ideal split.

4 / 5

Total

19

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong description: it states what the skill does with five concrete lifecycle actions and gives an explicit 'Use when...' clause with natural trigger phrases. The only weakness is modest trigger-term coverage — a few common phrasings like 'database migration' or 'schema change' are absent.

DimensionReasoningScore

Specificity

Lists five concrete actions — 'generate with Drizzle, inspect SQL for gotchas, apply to local and remote, fix stuck migrations, handle partial failures' — covering the full migration lifecycle. This matches the score-5 anchor for multiple specific concrete actions with comprehensive coverage; score 4 would require minor gaps in coverage, which are absent.

5 / 5

Completeness

Explicitly answers both: what ('generate with Drizzle, inspect SQL for gotchas, apply to local and remote, fix stuck migrations, handle partial failures') and when ('Use when running migrations, fixing migration errors, or setting up D1 schemas'). This matches the score-5 anchor exactly; score 4 would require the 'when' to be less explicit, but it states concrete trigger phrases directly.

5 / 5

Trigger Term Quality

Includes good natural phrases users would say: 'running migrations', 'fixing migration errors', 'setting up D1 schemas', plus 'Drizzle' and 'Cloudflare D1'. A few natural terms are missing (e.g., 'database migration', 'migration failed', 'schema change'), so it fits the 'good keyword coverage; a few natural terms missing' anchor rather than the comprehensive score-5 anchor with synonyms and extensions.

4 / 5

Distinctiveness Conflict Risk

Clear niche — Cloudflare D1 with Drizzle ORM — with triggers specific to D1 migrations, so minimal conflict risk with generic database or ORM skills. Fits the 'clear niche with distinct triggers' anchor; not 4 because the D1/Drizzle framing is not merely 'mostly distinct' but sharply scoped.

5 / 5

Total

19

/

20

Passed

Validation

100%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
jezweb/claude-skills
Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.