---
description: 'Designs schemas, plans safe migrations with rollback scripts, optimizes slow queries with index recommendations, defines data retention and GDPR right-to-erasure policies. Supports PostgreSQL, MySQL, SQLite, MongoDB. Trigger for ''add a column'', ''we need a migration'', ''the query is slow'', ''define a retention policy'', ''GDPR compliance for data''. Not for application-layer ORMs without DB schema; use /ai-code instead. Not for security audits; use /ai-security instead.'
mirror_family: opencode-commands
generated_by: ai-eng sync
canonical_source: .claude/skills/ai-schema/SKILL.md
edit_policy: generated-do-not-edit
---

Use the `ai-schema` skill to handle this request. OpenCode will lazy-load the canonical skill body via the `skill` tool; arguments below are forwarded verbatim.

$ARGUMENTS
