원클릭으로
db-review
Review database schemas and suggest improvements for indexing, types, and constraints.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Review database schemas and suggest improvements for indexing, types, and constraints.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Ruthlessly tear apart code design — naming, abstractions, coupling, complexity, and everything else.
Generate Mermaid diagrams in the README to visualise architecture, flows, or relationships from the codebase.
Analyse test coverage gaps and report uncovered code before making changes.
Run tests, fix failures, and re-run until the suite passes.
Write and improve tests — reuse existing patterns, ensure consistency, and maintain quality.
Isolate a function or code block into a self-contained, runnable script for study and manual testing.
| name | db-review |
| description | Review database schemas and suggest improvements for indexing, types, and constraints. |
| argument-hint | <files> [instructions] |
| user-invocable | true |
| context | fork |
| agent | Explore |
| allowed-tools | Read, Grep, Glob |
| paths | *.sql, *.prisma, *.schema, **/migrations/**, **/models/** |
Analyse the specified database schema files and provide actionable improvement suggestions.
Files and instructions: $ARGUMENTS
VARCHAR(255) where VARCHAR(50) suffices, BIGINT where INT is enough), incorrect types (e.g. strings for dates, floats for currency), and missing precision on decimals.NOT NULL where nullability is unlikely intentional, missing UNIQUE constraints, missing CHECK constraints for bounded values, and missing DEFAULT values.created_at/updated_at audit columns, soft-delete patterns without indexes on the deleted flag, missing composite primary keys on junction tables.The arguments are free-form and flexible. They may contain:
@schema.sql, migrations/001.sql, models.py, schema.prisma, schema.rb db/structure.sqlParse 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.
/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