/universal-dev-standards:database [schema or migration to review | 要審查的 schema 或遷移]from universal-dev-standards
Guides database design, migration planning, and query optimization. Useful for schema design, index strategy, and safe migration workflows.
Ships in universal-dev-standards. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guide database design, migration planning, and query optimization.
引導資料庫設計、遷移規劃和查詢最佳化。
| Principle | Description | 說明 |
|---|---|---|
| Normalization | Eliminate redundancy (3NF minimum) | 消除冗餘(至少 3NF) |
| Referential Integrity | Enforce FK constraints | 強制外鍵約束 |
| Index Strategy | Index query patterns, not all columns | 依查詢模式建立索引 |
| Migration Safety | Always reversible, zero-downtime | 可逆、零停機 |
| Data Protection | Encrypt sensitive fields, audit access | 加密敏感欄位、稽核存取 |
| Normal Form | Rule | 規則 |
|---|---|---|
| 1NF | Atomic values, no repeating groups | 原子值、無重複群組 |
| 2NF | 1NF + no partial dependencies | 1NF + 無部分相依 |
| 3NF | 2NF + no transitive dependencies | 2NF + 無遞移相依 |
| Denormalize | Only for proven read performance needs | 僅針對已證實的讀取效能需求 |
PLAN ──► WRITE ──► TEST ──► DEPLOY ──► VERIFY
Identify affected tables, estimate data volume, plan rollback strategy.
識別受影響的表、估算資料量、規劃回滾策略。
Write forward and rollback scripts. Use incremental, numbered migrations.
撰寫正向和回滾腳本。使用遞增編號的遷移。
Run on staging with production-like data. Verify data integrity post-migration.
在 staging 環境使用類生產資料執行。驗證遷移後資料完整性。
Apply during maintenance window or use online schema change tools.
在維護窗口執行,或使用線上 Schema 變更工具。
Check row counts, constraint validity, application functionality.
檢查列數、約束有效性、應用程式功能。
| Type | Use Case | 使用場景 |
|---|---|---|
| B-tree | Equality, range queries (default) | 等值、範圍查詢(預設) |
| Hash | Exact match only | 僅精確匹配 |
| GIN | Full-text search, JSONB | 全文搜尋、JSONB |
| Partial | Filtered subsets | 過濾子集 |
| Composite | Multi-column queries | 多欄位查詢 |
/database - Interactive database design guide | 互動式資料庫設計引導
/database schema - Review schema design | 審查 Schema 設計
/database --migration - Migration planning assistant | 遷移規劃助手
After /database completes, the AI assistant should suggest:
資料庫設計完成。建議下一步 / Database design complete. Suggested next steps:
- 執行
/security檢查資料保護措施 — Check data protection measures- 執行
/testing規劃資料庫測試策略 ⭐ Recommended / 推薦 — Plan database testing strategy- 執行
/checkin確認遷移符合提交規範 — Verify migrations meet check-in standards- 產生 API 端點 → 執行
/api-design— Generate API endpoints → Run/api-design
| Version | Date | Changes | 變更說明 |
|---|---|---|---|
| 1.0.0 | 2026-03-23 | Initial release | 初始版本 |
CC BY 4.0 — Documentation content
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
database-design, migration, query-optimization, schema-design, index-strategy, sql
57 skills in this plugin
/ac-coverage[UDS] Analyze AC-to-test traceability and generate requirement-level coverage reports.
Use when: auditing which acceptance criteria have tests, building a traceability matrix from a SPEC file, finding uncovered AC before release.
Not for: code-level line/branch/function coverage — use /coverage; writing the missing tests — use /tdd or /spec-derive.
Keywords: AC coverage, traceability, acceptance criteria, SPEC, traceability matrix, 驗收條件, 需求追蹤, 覆蓋率矩陣.
/adr[UDS] Create, manage, and track Architecture Decision Records (ADR).
Use when: architecture decisions, technology choices, design trade-offs, pattern selection.
Not for: decisions that do not change architecture — record them in the spec or commit; ideas not yet formed enough to decide — use /brainstorm.
Keywords: ADR, architecture decision, decision record, trade-off.
/ai-collaboration-standardsPrevent AI hallucination and ensure evidence-based responses when analyzing code or making suggestions.
Use when: analyzing code, making recommendations, providing options, or when user asks about confidence/certainty.
Not for: authoring the AI instruction files themselves — use /ai-instruction-standards; reviewing a concrete diff — use /code-review.
Keywords: certainty, assumption, inference, evidence, source.
/ai-friendly-architectureDesign AI-friendly architecture with explicit patterns, layered documentation, and semantic boundaries.
Use when: structuring projects for AI collaboration, optimizing codebase for AI analysis, setting up AI context.
Not for: writing the instruction files — use /ai-instruction-standards; language-conventional directory layout — use /project-structure-guide.
Keywords: architecture, AI-friendly, context, modules, documentation layers, .ai-context.yaml.
/ai-instruction-standardsCreate and maintain AI instruction files (CLAUDE.md, AGENTS.md, .cursor/rules/, etc.) with proper structure.
Use when: creating AI instruction files, separating universal vs project-specific rules, configuring AI tools.
Not for: shaping the codebase so AI can navigate it — use /ai-friendly-architecture; enforcing evidence-based answers — use /ai-collaboration-standards.
Keywords: CLAUDE.md, AGENTS.md, cursorrules, windsurfrules, clinerules, AI instructions, system prompt.
/api-designGuide API design following REST, GraphQL, and gRPC best practices.
Use when: designing APIs, reviewing endpoints, API versioning decisions.
Not for: verifying a running API against its consumers — use /contract-test; schema design behind the API — use /database.
Keywords: API, REST, GraphQL, gRPC, endpoint, versioning.
asiaostrich-universal-dev-standards@cascade-code-general-misc-3 is listed by joshuarweaver/cascade-code-general-misc-3 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-code-general-misc-3 --plugin asiaostrich-universal-dev-standardsOther plugins' skills for the same job