SOC 직업 분류 기준
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/AsiaOstrich/universal-dev-standards --skill database-assistant명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
[UDS] 以 Claude 原生 Agent tool 编排多任务执行计划(DAG-based,无外部引擎)。 Use when: executing a plan.json file with parallel/sequential task dependencies. Keywords: orchestrate, plan, execute, DAG, task plan, 编排, 执行计划, 并行.
[UDS] 从 Spec 文档、OpenSpec 变更或自由文本需求生成 plan.json。 Use when: converting specifications into executable task plans for /orchestrate. Keywords: plan, spec, task plan, 计划, 规格, 任务, plan.json, DAG.
[UDS] AI 辅助 git push 安全层:质量门禁 + 协作护栏。 Use when: pushing commits, force pushing, pushing to protected branches, pushing feature branches. Keywords: git push, force push, protected branch, quality gate, push receipt, PR automation, 推送, 保护分支, 质量门禁.
| name | database-assistant |
| source | ../../../../skills/database-assistant/SKILL.md |
| source_version | 1.0.0 |
| translation_version | 1.0.0 |
| last_synced | "2026-03-23T00:00:00.000Z" |
| status | current |
| description | [UDS] 引導資料庫設計、遷移規劃和查詢最佳化 |
語言: English | 繁體中文
引導資料庫設計、遷移規劃和查詢最佳化。
| 原則 | 說明 |
|---|---|
| 正規化 | 消除冗餘(至少 3NF) |
| 參照完整性 | 強制外鍵約束 |
| 索引策略 | 依查詢模式建立索引 |
| 遷移安全 | 可逆、零停機 |
| 資料保護 | 加密敏感欄位、稽核存取 |
| 正規形式 | 規則 |
|---|---|
| 1NF | 原子值、無重複群組 |
| 2NF | 1NF + 無部分相依 |
| 3NF | 2NF + 無遞移相依 |
| 反正規化 | 僅針對已證實的讀取效能需求 |
PLAN ──► WRITE ──► TEST ──► DEPLOY ──► VERIFY
識別受影響的表、估算資料量、規劃回滾策略。
撰寫正向和回滾腳本。使用遞增編號的遷移。
在 staging 環境使用類生產資料執行。驗證遷移後資料完整性。
在維護窗口執行,或使用線上 Schema 變更工具。
檢查列數、約束有效性、應用程式功能。
| 類型 | 使用場景 |
|---|---|
| B-tree | 等值、範圍查詢(預設) |
| Hash | 僅精確匹配 |
| GIN | 全文搜尋、JSONB |
| Partial | 過濾子集 |
| Composite | 多欄位查詢 |
/database - 互動式資料庫設計引導/database schema - 審查 Schema 設計/database --migration - 遷移規劃助手/database 完成後,AI 助手應建議:
資料庫設計完成。建議下一步:
- 執行
/security檢查資料保護措施- 執行
/testing規劃資料庫測試策略- 執行
/checkin確認遷移符合提交規範- 產生 API 端點 → 執行
/api-design