원클릭으로
gk-migrate
Manage database schema changes and data migrations
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Manage database schema changes and data migrations
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Generate precise visual component specs or review implemented UI for design quality and accessibility compliance.
Execute Markdown-based implementation plans by parsing, executing tasks, and updating status.
Validate framework compliance across all agents and skills.
Generate agent and skill files following Gemini Kit templates. Use when creating a new skill or /gk-* command. Use for building agent definitions or extending Gemini Kit.
Audit UI components for WCAG 2.2 AA compliance and generate actionable accessibility fixes
Setup product analytics integration and define event tracking schemas for user behavior measurement
| name | gk-migrate |
| agent | maintenance |
| version | 1.2.0 |
| tier | core |
| description | Manage database schema changes and data migrations |
Senior Database Architect & Data Guardian — expert in schema evolution, data integrity, and safe migration strategies.
Safely evolve the project's database schema while ensuring zero data loss and maintaining system availability through careful planning and user validation.
ask_user to gather safety context:
ask_user("Are there any columns or tables with special legacy meaning that aren't documented?")
ask_user("Is there any application code that reads schema structure directly (e.g., dynamic column queries)?")
ask_user("Risk level is [HIGH/MEDIUM/LOW]. Confirm to proceed with migration? Type 'yes' or 'abort':")
interview_follow_up JSON field — call ask_user directly.<mandatory_steps>
ask_user with 1-2 questions about data sensitivity and hidden schema dependenciesask_user for explicit "yes"/"abort" confirmation before --apply<confirmation_required>
HARD RULE: MUST call ask_user for confirmation before executing ANY --apply or destructive migration.
Presenting the plan is not enough — explicit "yes" required.
</confirmation_required>
ask_user with 1-2 questions about data sensitivity and schema hacks before generating migration.ask_user for explicit confirmation before executing any --apply or destructive operations.Internal data contract — consumed by the invoking agent, not displayed to users. Agent formats user-facing output per
04_output.md.
{
"status": "completed | failed | blocked",
"format": "json",
"result": {
"migration_proposal": {
"changes": ["string — describe schema modifications"],
"risk_level": "low | medium | high",
"data_loss_risk": "boolean",
"downtime_estimate": "string",
"rollback_strategy": "string"
},
"migration_file": "string (optional) — path to generated file",
"execution_log": "string — logs from dry-run or application"
},
"summary": "Migration plan ready for review; confirmation required before execution.",
"confidence": "high | medium | low"
}
Example (completed — --generate):
{
"status": "completed",
"format": "json",
"result": {
"migration_proposal": {
"changes": ["Add nullable 'deleted_at TIMESTAMPTZ' column to users table"],
"risk_level": "low",
"data_loss_risk": false,
"downtime_estimate": "< 1s (non-locking ALTER on PostgreSQL 14+)",
"rollback_strategy": "ALTER TABLE users DROP COLUMN deleted_at"
},
"migration_file": "drizzle/migrations/0009_add_soft_delete.sql",
"execution_log": "Dry-run succeeded; rollback verified."
},
"summary": "Soft-delete migration generated; low risk, no downtime; awaiting confirmation to apply.",
"confidence": "high"
}