version: 1
display_name: database-design
short_description: Schema conventions, migration rules, index strategy, query patterns.
icon_small: wrench
agentcortex:
  summary_ref: .agent/skills/database-design
  detail_ref: .agents/skills/database-design/SKILL.md
  trigger_priority: contextual
  phase_scope: ["plan", "implement", "review", "test"]
  load_policy: on-match
  cost_type: mixed
  cost_risk: high
  runtime_anchor: ["AGENTS.md#Skill Activation Triggers", ".agent/workflows/bootstrap.md#3.6", ".agent/workflows/implement.md#Skill Execution Overrides", ".agent/workflows/review.md#Skill-Aware Review (Pre-Check)", ".agent/workflows/test.md#Step 3"]
  detect_by:
    classification: ["feature", "architecture-change", "hotfix"]
    intent_patterns: ["資料庫設計", "schema design", "migration safety"]
    scope_signals: ["migration", "schema", "table", "index"]
    failure_signals: []
    phase_conditions: []
  fallback_behavior: Use stable kernel workflow rules for schema changes and migration safety.
