Skip to content
Back to skills

Schema Review

ASecurity

Reviews database schema for normalization issues, missing indexes, and naming problems

  • 10 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 1, 2026
ai-agentsbashsqldatabase

Security analysis

A100/100

Scanned June 1, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill schema-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Schema Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Schema Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-schema-review/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-schema-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: schema-review
description: Reviews database schema for normalization issues, missing indexes, and naming problems
user-invocable: true
allowed-tools: Read Glob Bash
effort: medium
---

## Database Schema Review

1. Read the schema:
```bash
cat prisma/schema.prisma 2>/dev/null \
  || cat schema.sql 2>/dev/null \
  || ls migrations/ | sort | tail -5 | xargs -I{} cat migrations/{}
```

2. Check normalization:
   - Data duplicated across tables (denormalization without justification)
   - Missing junction tables for many-to-many
   - Arrays/JSON where a related table would be better

3. Check indexes:
   - Foreign keys without indexes (full table scan on joins)
   - Columns frequently filtered/sorted without indexes
   - Redundant indexes (covered by another)

4. Check naming conventions:
   - Consistent casing (snake_case vs camelCase)
   - Tables plural vs singular (pick one)
   - Foreign key naming (`userId` vs `user_id`)

5. Check data integrity:
   - Nullable columns that shouldn't be
   - Missing `NOT NULL` constraints
   - Missing `UNIQUE` constraints where applicable
   - Missing `ON DELETE` behavior on foreign keys

6. Report findings ranked by impact.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…