원클릭으로
schema-diff
Preview a SQLite schema change and its impact before applying it to a production database
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Preview a SQLite schema change and its impact before applying it to a production database
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Run the universal button emulator simulator with preset scenarios for testing elevator integration logic
Pre-flight validation checklist before deploying Accelerate Robotics to production
Scaffold a new Express API route with validation, auth middleware, test, and server.js registration
| name | schema-diff |
| description | Preview a SQLite schema change and its impact before applying it to a production database |
User wants to change src/db/database.js — adding a table, adding a column, changing a constraint — and wants to see the impact before applying it.
Read the current schema from src/db/database.js.
Read the production database schema (if accessible):
sqlite3 data/accelerate.db .schema
Compare the two. Differences mean a past change was made in code that hasn't been applied to the production DB yet.
Read the proposed change the user wants to make.
Print three things:
SELECT COUNT(*) on affected tablesRisk heuristics:
Generate the migration SQL:
CREATE TABLE statementALTER TABLE ... ADD COLUMN statementRemind the user of the backup runbook: docs/50-operations/runbooks/backup-database.md
Do not apply the change. This skill is read-only. The user makes the decision.
Schema Change Preview
---------------------
Current: src/db/database.js (N tables)
Proposed: + adds column `foo` to `inquiries`
Diff:
inquiries:
+ foo TEXT DEFAULT NULL
Rows affected:
inquiries: 142 rows (will get NULL foo)
Risk: LOW
New nullable column, no constraints, no data transformation.
Migration SQL:
ALTER TABLE inquiries ADD COLUMN foo TEXT;
Reminder: back up the production DB before applying.
See docs/50-operations/runbooks/backup-database.md