db-review
Skill9 starsChanged 8 months agoMITView on GitHub
Review database schemas and suggest improvements for indexing, types, and constraints.
5 other projects use a version of this.
Adopted by
Most recently taken up by
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- NotHarshhaa/devops-skillstheir own version, first seen Sep 19, 2026
- takuya-38/claude-skillstheir own version, first seen Jun 28, 2026
- tranhieutt/software_development_departmenttheir own version, first seen Apr 30, 2026
- 312362115/claudetheir own version, first seen Apr 8, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- 312362115/claude★ 107same name
- tranhieutt/software_development_department★ 72same name
- NotHarshhaa/devops-skills★ 8same name
- takuya-38/claude-skills★ 3same name
- AllThingsSmitty/proven-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository12 other files it gives its agents.
- codex-reviewSkill
- cost-reviewSkill
- coverage-reviewSkill
- functionalSkill
- learnifySkill
- mermaidSkill
- object-orientedSkill
- perf-reviewSkill
- proofreadSkill
- roast-reviewSkill
- testifySkill
- test-runnerSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
3
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 51
Read each specified file to understand the schema, dialect (PostgreSQL, MySQL, SQLite, etc.), and ORM (if applicable)
- Distinctive: line 52
If the user included additional instructions (e.g.
- Distinctive: line 59
If the database engine is known, tailor recommendations to its specific features and best practices
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Database Schema Review
Analyse the specified database schema files and provide actionable improvement suggestions.
Files and instructions: $ARGUMENTS
What to review
- Indexing: missing indexes on foreign keys, frequently queried columns, and composite indexes for multi-column lookups. Flag redundant or duplicate indexes.
- Data types: overly wide types (e.g.
VARCHAR(255)whereVARCHAR(50)suffices,BIGINTwhereINTis enough), incorrect types (e.g. strings for dates, floats for currency), and missing precision on decimals. - Normalisation: repeated data that should be extracted into separate tables, denormalisation without justification, and violation of normal forms.
- Naming conventions: inconsistent table/column naming (mixed camelCase and snake_case, plural vs singular), unclear or ambiguous column names.
- Constraints: missing
NOT NULLwhere nullability is unlikely intentional, missingUNIQUEconstraints, missingCHECKconstraints for bounded values, and missingDEFAULTvalues. - Referential integrity: missing or incorrect foreign key relationships, cascading deletes that may be dangerous, orphan-prone relationships.
- Performance: tables likely to grow large without partitioning strategy, missing covering indexes for known query patterns, N+1-prone relationship structures.
- Schema-level concerns: missing
created_at/updated_ataudit columns, soft-delete patterns without indexes on the deleted flag, missing composite primary keys on junction tables.
How to interpret arguments
The arguments are free-form and flexible. They may contain:
- File references of any type and in any format:
@schema.sql,migrations/001.sql,models.py, schema.prisma,schema.rb db/structure.sql - Additional natural language instructions alongside file references, such as:
- "focus on indexing only"
- "this is a read-heavy workload"
- "we use PostgreSQL 16"
- "also check the migration files in db/migrations"
Parse the arguments to identify which files to review and what additional instructions apply. When additional instructions reference related files (e.g. migrations, ORM models), follow those instructions to identify and include those files as well.
Examples
/db-review @schema.sql— review a single schema file/db-review schema.prisma, migrations/001.sql— review multiple files/db-review @models.py this is a write-heavy OLTP workload on PostgreSQL— review with workload context/db-review @schema.sql focus on indexing and performance only— targeted review
How to proceed
- Read each specified file to understand the schema, dialect (PostgreSQL, MySQL, SQLite, etc.), and ORM (if applicable)
- If the user included additional instructions (e.g. "also check migrations"), follow them to identify further files
- Analyse the schema against every review category listed above
- For each finding, provide:
- What: the specific issue
- Why: why it matters (performance, correctness, maintainability)
- Fix: a concrete SQL or schema change to resolve it
- Group findings by category and order by severity (critical first)
- If the database engine is known, tailor recommendations to its specific features and best practices
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

