CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

prisma-migration-assistant

This guide covers common schema changes, data transformations, migration sequencing, and backfills for small and large tables. It also provides migration testing examples, a SQL preview script, rollback guidance, and pre- and post-migration checklists.

Quality

84%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Medium

Suggest reviewing before use

SKILL.md
Quality
Evals
Security

Quality

Scored by GLM 5.3

Content

71%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.

The content is highly actionable and well-sequenced, with executable SQL and scripts covering the major migration patterns plus testing and rollback guidance. Its main weaknesses are the fully monolithic structure with no progressive disclosure to reference files, a duplicated example, and one script snippet that is not self-contained.

Suggestions

Split the four migration-type SQL examples, backfill scripts, and test suite into reference files (e.g., references/migration-types.md, references/backfills.md) and keep SKILL.md as an overview with clearly signaled one-level-deep links, also moving the preview script into an actual scripts/ file.

Make the large-table backfill snippet self-contained by including the PrismaClient import and instantiation, matching the small-table example.

Remove the duplicated split-name schema example from the "Migration Planning Workflow" section since it reappears in full under "Migration Types → 3", and add an explicit error-recovery loop (e.g., "if migration tests fail, fix the migration SQL and re-run before applying").

DimensionReasoningScore

Conciseness

The body is almost entirely concrete SQL, commands, and scripts with no explanations of concepts Claude already knows, but the "Migration Planning Workflow" section duplicates the split-name example that reappears in full under "Migration Types", which fits anchor 4's "minor instances that could be trimmed" rather than anchor 5's every-token-earns-its-place.

4 / 5

Actionability

Complete migration SQL, `npx prisma migrate dev --create-only` commands, a runnable backfill script, a bash preview script, and test code cover the common cases, but the `backfillBatched()` snippet references an undefined `prisma` client (no import or instantiation), so it is not copy-paste ready as anchor 5 requires.

4 / 5

Workflow Clarity

The 6-step sequence (update schema → create-only → review SQL → data migration → test → apply) with phased rollout plans, a testing section, and pre-migration checklist provides most checkpoints, but explicit error-recovery feedback loops (e.g., "if the test fails, fix the migration and re-test") are absent, keeping it below anchor 5. Validation steps are present, so the destructive/batch cap of 3 does not apply.

4 / 5

Progressive Disclosure

The skill is a single ~375-line file with no bundle files, and content that clearly belongs in separate references (four migration-type SQL catalogs, two backfill scripts, a test suite, a bash script even labeled `scripts/preview-migration.sh`) is inlined; section headers are well organized, which fits anchor 3's "content that should be separate is inline" better than anchor 2's "minimal structure".

3 / 5

Total

15

/

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 that clearly states concrete capabilities in third person and pairs them with an explicit "Use for" trigger clause. The only weakness is trigger-term coverage that misses a few natural variations users might say.

DimensionReasoningScore

Specificity

"Plans and executes safe Prisma schema migrations with data backfills, rollback strategies, and SQL preview. Handles complex schema changes including data transformations" lists multiple concrete actions (plan/execute migrations, backfills, rollbacks, SQL preview, data transformations) in third person, with comprehensive coverage matching the anchor-5 example's breadth.

5 / 5

Completeness

The description explicitly answers both "what" (the first two sentences of concrete capabilities) and "when" ("Use for 'Prisma migrations', 'schema changes', 'database migrations', or 'data backfills'") with concrete trigger phrases, exactly matching the anchor-5 example pattern.

5 / 5

Trigger Term Quality

Triggers "Prisma migrations", "schema changes", "database migrations", and "data backfills" are natural user phrases, but common variations like "rename column", "add field", "update schema", or "Prisma schema" are missing, which fits anchor 4 rather than the comprehensive synonym coverage of anchor 5.

4 / 5

Distinctiveness Conflict Risk

"Prisma schema migrations" carves out a clear niche with distinct, tool-specific triggers, so the risk of triggering for unrelated database or migration skills is minimal.

5 / 5

Total

19

/

20

Passed

Validation

93%

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

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

referenced_paths_exist

Referenced path issues: 3 possibly missing (scripts/backfill-large-table.ts, scripts/backfill-user-roles.ts, scripts/preview-migration.sh)

Warning

Total

15

/

16

Passed

Repository

sathishssj3/Stereix-Engine

Path

.agents/skills/prisma-migration-assistant/SKILL.md

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.