# Axiom audit grdb performance

> Axiom audit grdb performance is an open-source agent skill for databases. Audits Swift GRDB and SQLite code for performance and cross-process database bugs. 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-grdb-performance
- **Repository:** https://github.com/charleswiltgen/axiom
- **GitHub stars:** 1,278
- **License:** MIT
- **Skill name:** axiom-audit-grdb-performance
- **Collection:** https://github.com/CharlesWiltgen/Axiom
- **Categories:** [databases](https://ai-powered.com/categories/databases), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill turns the agent into a reviewer for GRDB and SQLite usage in shipped Swift code. It first classifies the codebase by database library and connection type, whether writes happen, and whether an App Group database is shared with other processes, then runs its detectors only where that classification applies so that findings stay relevant.

The detectors look for raw SQL built with string interpolation, raw foreign keys without supporting indexes, redundant prefix indexes, missing PRAGMA optimize setup, and missing WAL or suspension handling on shared databases. They also check for stored databaseSelection properties that break Swift 6 concurrency, INSERT OR REPLACE used as an upsert, and observations on WITHOUT ROWID tables, along with a GRDB version check for a known upsert bug. The output is a severity-ranked report with a SAFE, FRAGILE or DANGEROUS health score and suggested fixes.

The skill expects Swift source files, migration code, and package manifests or lockfiles so it can read the GRDB version. It reads files with search and read tools and does not run scripts. It is one of the Axiom Codex skills and is released under the MIT license.

## When your agent uses it

> Use when the user mentions GRDB performance review, slow GRDB queries, app-group database setup audit, a ValueObservation that stopped updating, or pre-release GRDB scan.

## 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-grdb-performance)
- [License: MIT](https://github.com/CharlesWiltgen/Axiom/tree/HEAD/axiom-codex/skills/axiom-audit-grdb-performance)

## Features

- **Framework classification:** Identifies whether the project uses raw GRDB, SQLiteData or both, and whether its database is writable and shared across processes.
- **Raw SQL safety checks:** Flags string-interpolated SQL and recommends argument binding or the literal form instead.
- **Index and optimizer review:** Finds raw foreign keys lacking indexes, redundant prefix indexes, and missing PRAGMA optimize configuration.
- **App Group sharing checks:** Verifies WAL journaling and suspension notification handling for databases shared with widgets or extensions.
- **Silent staleness detection:** Catches observations on WITHOUT ROWID tables and INSERT OR REPLACE calls that can stop UI updates or delete child rows.
- **Severity-ranked report:** Produces findings with file locations, impact, fixes and a SAFE, FRAGILE or DANGEROUS health score.

## Good for

- Audit my GRDB code for slow queries and performance problems
- Check my App Group database setup before a release
- Scan my Swift code for raw SQL injection risks
- Find why my ValueObservation stopped updating
- Review how my app and widget share a SQLite database

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/axiom-audit-grdb-performance` 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-grdb-performance &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-grdb-performance" ~/.claude/skills/axiom-audit-grdb-performance &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/axiom-audit-grdb-performance` 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-grdb-performance &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-grdb-performance" ~/.agents/skills/axiom-audit-grdb-performance &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/axiom-audit-grdb-performance` 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-grdb-performance &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-grdb-performance" ~/.cursor/skills/axiom-audit-grdb-performance &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/axiom-audit-grdb-performance` 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-grdb-performance
```

Or copy the folder to `~/.gemini/skills/axiom-audit-grdb-performance` yourself.

### VS Code

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

```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-grdb-performance &&
cp -R "$tmp/axiom-codex/skills/axiom-audit-grdb-performance" ~/.copilot/skills/axiom-audit-grdb-performance &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/axiom-audit-grdb-performance` 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-grdb-performance` into your agent's skills folder as `axiom-audit-grdb-performance`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It reads Swift source files, migration code and package manifests or lockfiles, and uses search and read tools to scan them. It does not run any scripts.

### When does Axiom audit grdb performance trigger?

It triggers when the user mentions GRDB performance review, slow GRDB queries, an App Group database setup audit, a ValueObservation that stopped updating, or a pre-release GRDB scan.

### Does Axiom audit grdb performance change my code?

The skill's instructions produce a report with suggested fixes. They do not describe editing files automatically.

### Which AI clients does Axiom audit grdb performance support?

The skill's content does not tie it to specific clients beyond the Claude Code and Codex naming in the Axiom family.

### How do I install Axiom audit grdb performance in Claude Code?

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

### Does Axiom audit grdb performance 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 grdb performance?

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 grdb performance?

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

## Where this comes from

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

## Alternatives

- [Axiom audit database schema](https://ai-powered.com/skills/axiom-audit-database-schema): Axiom audit database schema is an open-source agent skill for developer tools.
- [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 health check](https://ai-powered.com/skills/axiom-health-check): Axiom health check 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 analyze swiftui performance](https://ai-powered.com/skills/axiom-analyze-swiftui-performance): Axiom analyze swiftui performance is an open-source agent skill for developer tools.
- [Axiom data](https://ai-powered.com/skills/axiom-data-charleswiltgen-2): Axiom data is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/axiom-audit-grdb-performance
