Content
57%Weight 40%Scale 1-5Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
The body delivers genuinely executable and thorough data-integrity tooling, but it is padded by the same queries repeated across four sections, and its destructive fix workflow lacks any validation or dry-run safety net. The bulk scripts should live in actual bundle files rather than inlined, as their own comments already suggest.
Suggestions
Consolidate the duplicated queries: the four 'Integrity Check Types' sections repeat almost every query that the Comprehensive Audit Script already contains — present each check once and let the audit script reference it.
Add explicit validation checkpoints to the fix workflow: a dry-run mode (report what would be deleted/updated), a backup/snapshot step, and row-count verification before and after destructive DELETE/UPDATE statements.
Move the full audit, fix, and test implementations into actual scripts/ and tests/ bundle files (as the code comments already name them) and keep SKILL.md as a concise overview with one-level-deep references.
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | The content is all executable code with no conceptual over-explanation, but is noticeably redundant: the orphaned-orders query appears in five separate sections, negative-price checks in four, and duplicate-email checks in three, so the ~505-line body could be tightened to roughly a third of its size. This sits between the efficient-with-tightening anchor and the noticeably-verbose anchor. | 3 / 5 |
Actionability | Provides concrete, executable SQL queries, TypeScript functions, migrations, and tests that are mostly copy-paste ready, matching the mostly-executable anchor. Minor gaps: the `prisma` client and imports are assumed without setup context, and the output checklist promises "Fix scripts (with dry-run)" while the actual fix code implements no dry-run mode. | 4 / 5 |
Workflow Clarity | Section ordering implies a rough sequence (checks → audit → fix → prevent → test → monitor), but the automated fixes perform destructive DELETE/UPDATE operations with no validation, backup, or dry-run checkpoint before execution. Per the rubric, missing validation in destructive/batch database workflows caps this at 3 even though the audit script's non-zero exit on critical issues is a partial checkpoint. | 3 / 5 |
Progressive Disclosure | Sections are clearly headed and easy to navigate, but ~300 lines of full script implementations are inlined in SKILL.md when they clearly belong in separate bundle files — the code comments even label them "scripts/audit-data-integrity.ts", "scripts/fix-integrity-issues.ts", and "tests/data-integrity.test.ts", yet no such files exist in the bundle. This matches the well-structured-but-bulk-inline anchor. | 3 / 5 |
Total | 13 / 20 Passed |