.claude/skills/db-review/SKILL.md
Reviews database schemas, queries, and migrations for correctness, performance, security, and best practices. Use when reviewing SQL migration files or when the user mentions database review, schema review, or query audit.
npx skillsauth add tranhieutt/software_development_department db-reviewInstall 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.
When this skill is invoked:
Read the target schema, migration, or query files in full.
Evaluate schema design:
created_at and updated_at columnsEvaluate indexing strategy:
Evaluate migration safety:
Evaluate data integrity:
deleted_at) not hard delete for important recordsEvaluate query quality (if queries provided):
Output the review:
## Database Review: [Schema/Migration Name]
### Schema Design: [CLEAN / ISSUES FOUND]
[List design problems]
### Indexes: [APPROPRIATE / MISSING / OVER-INDEXED]
[List index recommendations]
### Migration Safety: [SAFE / RISKY / BLOCKING]
[List migration risks and recommendations]
### Data Integrity: [ENFORCED / GAPS FOUND]
[List integrity concerns]
### Query Quality: [CLEAN / ISSUES FOUND]
[List query problems]
### Positive Observations
[What is well-designed]
### Required Changes
[Must-fix before applying]
### Suggestions
[Nice-to-have improvements]
### Verdict: [APPROVED / APPROVED WITH SUGGESTIONS / CHANGES REQUIRED]
Deliver exactly:
SAFE / RISKY / BLOCKING with specific risks listedAPPROVED / APPROVED WITH SUGGESTIONS / CHANGES REQUIREDtesting
Generates high-fidelity architecture diagrams, sequence flows, and component maps for SDD projects. Use when finalizing a design phase, documenting system architecture, or visualizing agentic workflows. Default style: Style 6 (Claude Official).
data-ai
Provides vector database and semantic search patterns for Pinecone, Weaviate, Qdrant, Milvus, and pgvector in RAG and recommendation systems. Use when implementing vector search or when the user mentions vector database, semantic search, embeddings, or similarity search.
development
Updates docs/technical/CODEMAP.md by scanning the current codebase structure. Run after a significant feature merge, refactor, or when CODEMAP feels stale.
development
Unlocks the codebase after a release freeze or incident freeze period to resume normal development. Use when a freeze period ends or when the user mentions unfreezing or lifting the code freeze.