database/SKILL.md
--- name: database description: Database quality system. 7 modes: score (10-category audit), fix (auto-fix from scorecard), loop (score->fix until target). Prisma + Neon patterns. license: Complete terms in LICENSE.txt --- # Database Quality System One skill, 7 modes. Score database design, fix issues, or run the full loop. ## Modes | Mode | Trigger | What It Does | |------|---------|--------------| | **score** | "score my database", "audit DB" | 10-category audit -> scorecard with grade (A+
npx skillsauth add clownnvd/claude-code-skills databaseInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
One skill, 7 modes. Score database design, fix issues, or run the full loop.
| Mode | Trigger | What It Does | |------|---------|--------------| | score | "score my database", "audit DB" | 10-category audit -> scorecard with grade (A+ to F) | | fix | "fix database issues", provide a scorecard | Parse scorecard -> prioritize -> apply fixes -> verify | | loop | "score and fix until B+", "database loop" | Run score, then fix, then re-score until target grade reached | | generate | Create new code | Load criteria -> Generate meeting all 10 -> Self-check | | review | Quick 1-2 file check | Read files -> Score applicable categories -> Annotate + fix | | migrate | Framework upgrade | Detect versions -> Map breaking changes -> Migrate -> Verify | | test | Generate test cases | Map categories to assertions -> Generate test files |
Audit any database against 10 weighted categories. Score 0-100 with letter grade and prioritized issues list.
Load references/scoring/scoring-workflow.md for the full 6-step process.
| # | Category | Weight | Criteria Reference |
|---|----------|--------|--------------------|
| 1 | Schema Design | 15% | scoring/criteria/schema-design.md |
| 2 | Data Integrity | 12% | scoring/criteria/schema-design.md |
| 3 | Indexing Strategy | 12% | scoring/criteria/performance-scaling.md |
| 4 | Security | 15% | scoring/criteria/security-compliance.md |
| 5 | Query Performance | 10% | scoring/criteria/performance-scaling.md |
| 6 | Migration & Versioning | 10% | scoring/criteria/operations-reliability.md |
| 7 | Monitoring & Observability | 8% | scoring/criteria/operations-reliability.md |
| 8 | Backup & Recovery | 8% | scoring/criteria/operations-reliability.md |
| 9 | Scalability | 5% | scoring/criteria/performance-scaling.md |
| 10 | Developer Experience | 5% | scoring/criteria/operations-reliability.md |
| Grade | Score | Grade | Score | Grade | Score | |-------|-------|-------|-------|-------|-------| | A+ | 97-100 | B+ | 87-89 | C+ | 77-79 | | A | 93-96 | B | 83-86 | C | 73-76 | | A- | 90-92 | B- | 80-82 | D | 60-72 | | | | | | F | <60 |
| Severity | Criteria | Action | |----------|----------|--------| | CRITICAL | Score 0-3 or security hole | Fix before deploy | | HIGH | Score 4-5 | Fix in current sprint | | MEDIUM | Score 6-7 | Fix next sprint | | LOW | Score 8 | Backlog |
Take a scorecard and systematically implement all fixes. Prioritize by severity * weight.
Load references/fix/implementation-workflow.md for the full 6-step process.
| Priority | Severity | Score Range | Action | |----------|----------|-------------|--------| | 1 | CRITICAL | 0-3 or security hole | Fix immediately -- blocks deploy | | 2 | HIGH + high weight (>=12%) | 4-5 | Fix next -- moves score most | | 3 | HIGH + low weight (<12%) | 4-5 | Fix after high-weight items | | 4 | MEDIUM | 6-7 | Fix next sprint | | 5 | LOW | 8 | Backlog or skip |
| Scorecard Category | Fix Pattern Reference |
|-------------------|----------------------|
| Schema Design, Data Integrity | fix/fix-patterns/schema-integrity.md |
| Security | fix/fix-patterns/security.md |
| Indexing, Query Performance, Scalability | fix/fix-patterns/performance-scaling.md |
| Migration, Monitoring, Backup, DevEx | fix/fix-patterns/operations.md |
Load references/fix/verification.md for post-fix checklist, re-scoring protocol, and comparison template.
Automated score-fix cycle. Runs score -> fix -> re-score until target grade is met.
Default target: B+ (87+). Override with "loop until A-" or similar.
Generate code meeting all 10 categories at 9-10/10. Load references/generate/workflow.md.
Parse request → Load criteria → Generate with all patterns → Self-check → Output (assets/templates/generated-code.md.template)
Quick 1-2 file review. Load references/review/workflow.md.
Read files → Score applicable categories → Annotate line numbers → Suggest fixes (assets/templates/review-report.md.template)
Upgrade code for framework changes. Load references/migrate/workflow.md.
Detect versions → Map breaking changes → Apply migrations → Verify (assets/templates/migration-report.md.template)
Generate tests from scoring criteria. Load references/test/workflow.md.
Map categories to assertions → Generate tests → Output suite (assets/templates/test-suite.md.template)
| Stack | Additional Reference |
|-------|---------------------|
| Prisma (any version) | references/prisma-patterns.md -- schema patterns, query anti-patterns, migration commands |
| Prisma 7 specifically | references/prisma-patterns.md -- prisma.config.ts requirement (critical) |
| Neon PostgreSQL | references/neon-patterns.md -- branching, pooling, PITR, edge runtime |
| Prisma 7 + Neon (enhanced) | references/prisma7-neon-reference.md -- 34 errors (PERR-001–034), Prisma 7 breaking changes, connection pooling, Json typing, migrations, Better Auth integration, Next.js 16 patterns |
references/scoring/overview.md -- Scoring system, grade scale, scorecard formatreferences/scoring/best-practices.md -- Do/Don't for schema, security, performance, migrationsreferences/scoring/scoring-workflow.md -- 6-step audit process, category mapping, issue formatreferences/scoring/criteria/ -- 4 files covering 10 categories (schema-design, security-compliance, performance-scaling, operations-reliability)references/neon-patterns.md -- Branching, pooling, PITR, edge runtime, region selectionreferences/prisma-patterns.md -- Prisma 7 config, schema/query patterns, migration commandsreferences/fix/overview.md -- How fix works, priority order, score targetsreferences/fix/best-practices.md -- Fix discipline, schema change safety, migration patternsreferences/fix/implementation-workflow.md -- 6-step process, priority matrix, which refs to loadreferences/fix/verification.md -- Post-fix checklist, re-scoring protocol, comparison templatereferences/fix/fix-patterns/ -- 4 files covering 10 categories (schema-integrity, security, performance-scaling, operations)assets/templates/scorecard.md.template | Fix: assets/templates/fix-report.md.templateassets/templates/generated-code.md.template | Review: assets/templates/review-report.md.templateassets/templates/migration-report.md.template | Test: assets/templates/test-suite.md.template
Fill {{VARIABLE}} placeholders with actual values.tools
Zustand v5 state management for Next.js 16. Store patterns, middleware (persist/immer/devtools), SSR hydration, CV editor multi-step wizard, 20 documented errors. Triggers: zustand, store, state management, useState replacement, global state, persist, immer.
development
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.
development
Ultimate UI/UX design intelligence with real app flow knowledge. 93 styles, 121 palettes, 81 font pairings, 35 charts, 79 components, 62 animations, 65 WCAG criteria, 46 responsive patterns, 46 dark mode rules, 60 design tokens, 13 stacks. PLUS: Claude.ai full UI blueprint (19 flows, all screens), PageFlows app patterns. Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check, clone, recreate, rebuild. Styles: glassmorphism, brutalism, neumorphism, bento, dark mode, view transitions, scroll-driven, container queries, AI-native, liquid glass, neo-minimalism, mesh gradient, geometric abstraction. Topics: color, accessibility, animation, layout, typography, spacing, shadow, gradient, responsive, dark mode, WCAG 2.2, design tokens, components, spring physics, kinetic typography, container queries, popover API, semantic tokens. Apps: claude.ai, ChatGPT-style, AI chat UI, SaaS dashboard.
development
--- name: ui description: UI quality system. 4 modes: research (design brief), score (10-category audit), fix (auto-fix from scorecard), pipeline (end-to-end chain). license: Complete terms in LICENSE.txt --- # UI Quality System One skill, 4 modes. Research real products, score UI quality, fix issues, or run the full pipeline. ## Modes | Mode | Use When | Workflow | |------|----------|---------| | **research** | Before building any page | Extract tokens → Search → Fetch → Design Brief | | **