db-check
SolidValidate database schema integrity and check for common issues
AI & Automation 71 stars
21 forks Updated today MIT
Install
Quality Score: 85/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
Database health check for the current project:
1. Read the ORM schema file (e.g., `prisma/schema.prisma`, `drizzle/schema.ts`, SQLAlchemy models, ActiveRecord schema, Entity Framework DbContext, GORM structs, or equivalent) and analyze all models
2. **CRITICAL**: Check all database tables have ORM models (unmodeled tables may be dropped on schema sync, e.g. Prisma db push; know whether your ORM's sync command is destructive)
3. Check for missing indexes on foreign keys and frequently queried columns
4. Scan services for N+1 query patterns (missing eager loading / includes in queries)
5. Verify `undefined` vs `null` usage in all ORM create/update operations
6. Check raw SQL queries for injection vulnerabilities (parameterized queries required)
7. Verify referential integrity (cascade rules, orphan prevention)
8. Check for date handling issues (check CLAUDE.md for system-specific date formats)
9. Review migration history for risky operations
Report findings with severity: CRITICAL / HIGH / MEDIUM / LOW.
Details
- Author
- faizkhairi
- Repository
- faizkhairi/claude-code-blueprint
- Created
- 6 months ago
- Last Updated
- today
- Language
- Shell
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Listed
db-check
Validate database schema integrity and check for common issues
0 Updated today
lethilu4796 AI & Automation Listed
awesome-database-audit
Read-only audit of a database layer: schema anti-patterns, query and index fit, integrity, concurrency, migrations, tenancy, with a verdict. Use when asked to review a schema, migrations or data model.
10 Updated yesterday
khasky API & Backend Listed
migration-check
Validate SQL migration safety, ORM-to-migration alignment, or schema drift between the DB and Zod/DTO types. NOT for deployment config (use deployment) or IaC drift (use infrastructure-as-code).
7 Updated today
atretyak1985