# Axiom audit database schema

> Axiom audit database schema is an open-source agent skill for developer tools. Audits Swift SQLite and GRDB schemas and migrations for data-loss and crash risks. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/CharlesWiltgen/Axiom/tree/main/axiom-codex/skills/axiom-audit-database-schema
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-audit-database-schema
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill turns the agent into a schema and migration auditor for SQLite-backed Swift apps, with GRDB as the main target. It has the agent first map the database setup, migration registrations and table relationships, then run a fixed set of detection checks for risky patterns such as unguarded column additions, drops, replace-style upserts, foreign key misuse, renames and unsafe merged migrations.

The workflow is phased. After the map, the agent verifies each grep hit by reading the surrounding code, checks for completeness gaps such as missing data backfills, append-only migration history and transaction coverage for batch writes, and combines related findings into higher severity ratings. It then reports a health rating and prioritized fixes, with false-positive exclusions for scratch tables, debug-only code and migrations that run once by design.

The skill expects a Swift project using GRDB, SQLite.swift or raw SQLite, and it reads files with search and file-read tools. It does not execute code or scripts. Its references point to companion Axiom skills for GRDB, migrations and SwiftData.

## When your agent uses it

> Use when the user mentions database schema review, migration safety, GRDB migration audit, or SQLite schema checking.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-audit-database-schema)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-audit-database-schema)

## Features

- **Migration safety checks:** Flags column additions, table drops and renames that can crash or erase data on app upgrade.
- **Foreign key audit:** Checks whether foreign keys are declared and enforced and whether existing orphan rows would block a rebuild.
- **Merged migration review:** Examines GRDB merged migrations for replay, ID reuse and superseded-guard lockout problems.
- **Transaction coverage review:** Looks for batch inserts that run outside a transaction and would be slow or non-atomic.
- **Schema health rating:** Summarizes findings as a SAFE, FRAGILE or DANGEROUS rating with prioritized recommendations.

## Good for

- Review my GRDB migrations before a release
- Check whether a new column migration will crash existing databases
- Find INSERT OR REPLACE calls that could cascade-delete child rows
- Audit foreign key enforcement in my SQLite setup
- Verify that a merged migration is safe for users upgrading from older versions

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-audit-database-schema` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/axiom-audit-database-schema &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-database-schema" ~/.claude/skills/axiom-audit-database-schema &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/axiom-audit-database-schema` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/axiom-audit-database-schema` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/axiom-audit-database-schema &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-database-schema" ~/.agents/skills/axiom-audit-database-schema &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/axiom-audit-database-schema` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/axiom-audit-database-schema` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/axiom-audit-database-schema &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-database-schema" ~/.cursor/skills/axiom-audit-database-schema &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/axiom-audit-database-schema` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/CharlesWiltgen/Axiom.git --path axiom-codex/skills/axiom-audit-database-schema
```

Or copy the folder to `~/.gemini/skills/axiom-audit-database-schema` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/axiom-audit-database-schema`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/axiom-audit-database-schema &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-database-schema" ~/.copilot/skills/axiom-audit-database-schema &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/axiom-audit-database-schema` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/CharlesWiltgen/Axiom.git
```

Then copy `Axiom/axiom-codex/skills/axiom-audit-database-schema` into your agent's skills folder as `axiom-audit-database-schema`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What triggers Axiom audit database schema?

It triggers when the user mentions database schema review, migration safety, a GRDB migration audit or SQLite schema checking.

### Does Axiom audit database schema change any code?

The skill instructs the agent to scan and read files and report findings with suggested fixes. It does not list any scripts or file-writing steps.

### Does Axiom audit database schema need any scripts or external tools?

No scripts are included. It relies on the agent's search and file-read capabilities over the Swift project.

### How do I install Axiom audit database schema in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/axiom-audit-database-schema to use it in all your projects, or to .claude/skills/axiom-audit-database-schema in one project.

### Does Axiom audit database schema run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Axiom audit database schema?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Axiom audit database schema?

The closest alternatives to Axiom audit database schema are Axiom audit grdb performance, Axiom audit swiftdata, Axiom audit core data, Axiom audit testing and Axiom audit codable.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Axiom audit grdb performance](https://ai-powered.com/skills/axiom-audit-grdb-performance): Axiom audit grdb performance is an open-source agent skill for databases.
- [Axiom audit swiftdata](https://ai-powered.com/skills/axiom-audit-swiftdata): Axiom audit swiftdata is an open-source agent skill for developer tools.
- [Axiom audit core data](https://ai-powered.com/skills/axiom-audit-core-data): Axiom audit core data is an open-source agent skill for developer tools.
- [Axiom audit testing](https://ai-powered.com/skills/axiom-audit-testing): Axiom audit testing is an open-source agent skill for developer tools.
- [Axiom audit codable](https://ai-powered.com/skills/axiom-audit-codable): Axiom audit codable is an open-source agent skill for developer tools.
- [Axiom audit storage](https://ai-powered.com/skills/axiom-audit-storage): Axiom audit storage is an open-source agent skill for security.
- [Axiom audit icloud](https://ai-powered.com/skills/axiom-audit-icloud): Axiom audit icloud is an open-source agent skill for developer tools.
- [Axiom health check](https://ai-powered.com/skills/axiom-health-check): Axiom health check is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/axiom-audit-database-schema
