agh-schema-migration
OfficialMigrate AGH SQLite schemas safely, every time
Software Engineering#test strategy#sqlite#schema migration#idempotence#transaction safety#wal shm recovery
Authorcompozy
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill prevents AGH database schema drift by forcing every SQLite schema change to go through a numbered, registry-backed migration with transactional safety and idempotence.
Core Features & Use Cases
- Migration registry enforcement: Ensures schema changes are recorded and applied via the
schema_migrationsmechanism instead of fragile EnsureSchema-style reconciliation. - Transactional, idempotent DDL: Requires wrapping changes in
BEGIN IMMEDIATE, guarding against re-application, and making operations resume safely after partial runs. - SQLite recovery hygiene: Verifies that when migrations touch SQLite recovery, the
-waland-shmcompanion files are renamed alongside the.dbto avoid corruption and missing-column failures after restarts. - Test-driven migration correctness: Requires fresh-DB and reopen-after-restart tests to confirm schema expectations and data preservation/backfill behavior.
Quick Start
Use this skill when you are editing any AGH code path that issues SQLite DDL for persistent stores, and author a numbered migration that is registered, transactional, idempotent, recorded in schema_migrations, and covered by fresh DB and restart tests.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: agh-schema-migration Download link: https://github.com/compozy/agh/archive/main.zip#agh-schema-migration Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.