axiom-audit-database-schema

Analyzes SQLite and GRDB schemas and migration scripts for integrity risks.

34|2|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/DengNaichen/Stet --skill axiom-audit-database-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axiom-audit-database-schema
Source: https://github.com/DengNaichen/Stet/tree/main/.agents/skills/axiom-audit-database-schema
Command: npx skills add https://github.com/DengNaichen/Stet --skill axiom-audit-database-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents critical data loss, migration crashes, and silent integrity failures in SQLite and GRDB-based applications by auditing schema changes against known anti-patterns.

Core Features & Use Cases

  • Migration Safety Audit: Automatically scans for dangerous operations like non-idempotent ALTER TABLE statements or destructive DROP commands.
  • Integrity Enforcement: Verifies that foreign key constraints are properly enabled and validated to prevent orphaned data.
  • Performance Optimization: Identifies batch operations that lack proper transaction wrapping, preventing disk I/O bottlenecks.

Quick Start

Use the axiom-audit-database-schema skill to perform a full audit of the current database migration files and schema setup.

Frequently Asked Questions about axiom-audit-database-schema

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit SQLite schema migrations for structural anti-patterns?

To audit SQLite schema migrations for structural anti-patterns, you analyze migration scripts to automatically identify dangerous operations like non-idempotent ALTER TABLE statements or destructive DROP commands, preventing critical data loss and crashes.

What is migration idempotency and why does it matter for database integrity?

Migration idempotency ensures that database migration scripts can be run multiple times without causing duplicate structural changes or data corruption. Validating idempotency is crucial to prevent silent integrity failures and ensure robust data persistence during schema evolution.

Can I use this to verify foreign key enforcement in GRDB databases?

Yes, you can verify foreign key enforcement in GRDB databases. The audit process checks that foreign key constraints are properly enabled and validated, which actively prevents orphaned data and maintains relational integrity across schema changes.

How do I check if batch database operations are wrapped in transactions?

To check if batch database operations are wrapped in transactions, scan your schema setup to identify batch operations lacking proper transaction wrapping. This audit prevents disk I/O bottlenecks and optimizes overall database performance.

What are the limitations of auditing GRDB schema changes automatically?

Auditing GRDB schema changes automatically focuses on structural anti-patterns, migration idempotency, and transaction atomicity. It targets development workflows involving schema evolution and migration testing, but does not fix runtime data conflicts outside the audited migration scripts.