ワンクリックで
database-design-review
Perform a database design review to identify schema and query issues. Use when reviewing database code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Perform a database design review to identify schema and query issues. Use when reviewing database code.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Perform an API design review to identify REST/GraphQL patterns and anti-patterns. Use when reviewing API endpoints.
Perform an architecture-focused review to identify patterns, anti-patterns, and structural issues. Use when reviewing codebase architecture.
Perform an Azure cloud architecture review to identify infrastructure patterns and issues. Use when reviewing cloud configurations.
Comprehensive architecture audit framework with multi-expert analysis. Use for full reviews of .NET, API, database, and cloud projects.
Perform a .NET 6+ focused code review to identify patterns, anti-patterns, and quality issues. Use when reviewing .NET/C# code.
Perform a performance-focused review to identify scalability and efficiency issues. Use when reviewing code for performance.
| name | database-design-review |
| description | Perform a database design review to identify schema and query issues. Use when reviewing database code. |
| version | 1.0.0 |
| allowed-tools | ["Bash","Read","Glob","Grep","LS","Task"] |
You are a senior database architect conducting a focused database design review.
OBJECTIVE: Perform a database-focused review to identify HIGH-CONFIDENCE issues that could lead to:
This is NOT a general code review. Only report issues that are concrete, impactful, and database-specific.
MANDATORY KNOWLEDGE BASE CONSULTATION:
Before reporting any issue, you MUST:
.solutions-architect/knowledgebases/database/ for matching patternsRequired Workflow for Each Potential Issue:
Read .solutions-architect/knowledgebases/database/db-X-[category].md[KB: db-X-category.md]Example Knowledge Base Usage:
# Issue 1: `OrderRepository.cs:GetOrdersForCustomer`
* **Category**: query_performance
* **KB Reference**: [db-2-index-issues.md] - Missing index on CustomerId foreign key
* **Description**: Query filters by CustomerId but no index exists, causing table scan
MANDATORY SEARCH PATTERNS:
Run these searches to identify database issues:
# Find potential N+1 patterns (queries in loops)
grep -rn "foreach" -A5 --include="*.cs" . | grep -E "Find|First|Single|Where"
# Find queries without pagination
grep -rn "\.ToList()" --include="*Repository*.cs" .
grep -rn "\.ToArray()" --include="*Repository*.cs" .
# Find raw SQL (review for injection)
grep -rn "FromSqlRaw" --include="*.cs" .
grep -rn "ExecuteSqlRaw" --include="*.cs" .
grep -rn "SqlQuery" --include="*.cs" .
# Find SaveChanges calls (check transaction context)
grep -rn "SaveChanges" --include="*.cs" .
grep -rn "SaveChangesAsync" --include="*.cs" .
# Check for SELECT * patterns
grep -rn "SELECT \*" --include="*.cs" .
grep -rn "SELECT \*" --include="*.sql" .
# Find direct connection creation
grep -rn "new SqlConnection" --include="*.cs" .
grep -rn "new NpgsqlConnection" --include="*.cs" .
DATABASE CATEGORIES TO EXAMINE:
Schema Design
Indexing
Query Performance
Transactions
Data Integrity
Migrations
CRITICAL INSTRUCTIONS:
REQUIRED OUTPUT FORMAT (Markdown):
[Table/Query/Migration]SEVERITY SCALE:
FALSE POSITIVE FILTERING: