DB Check — Data & AI agent for Claude Code
Validate database state — pending migrations, schema consistency, missing indexes.
How to install DB Check
Installs to ~/.claude/agents/cveralyon-axel-setup-db-check.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/cveralyon/axel-setup/HEAD/agents/db-check.md -o ~/.claude/agents/cveralyon-axel-setup-db-check.md Restart Claude Code, or start a new session, for it to be picked up.
What DB Check does
description: Validate database state — pending migrations, schema consistency, missing indexes. tools: ["Bash", "Read", "Grep", "Glob"]
Check database health for your Rails API.
- Pending migrations:
RAILS_ENV=development rails db:migrate:status - Schema consistency: compare
db/schema.rbwith actual migrations - Missing indexes: scan models for
belongs_to/has_manywithout corresponding indexes - N+1 risks: grep for
.eachloops calling associations without
Alternatives in Data & AI
- Database Migration — Master database schema and data migrations across ORMs (Sequelize, TypeORM, Prisma), including rollb 31.9k ★
- Migration Agent — Creates safe, reversible database migrations with proper indexes, constraints, and zero-downtime strategies 652 ★
- Module Migration — Use this agent to create, review, or fix database migrations for LaraDashboard modules — handles table creatio 407 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Chadi Data
Database and data-flow helper for schema, migrations, queries, indexes, Prisma/Supabase/Postgres/MySQL/Redis,
Perf Analyzer
Detects performance issues in code changes: N+1 query patterns, missing database indexes, unnecessary re-rende
Django Migrate
Use this agent PROACTIVELY when running Django database migrations. This includes checking pending migrations,
Map Validator
Validate repo-intel output for obvious errors and missing data. Use this agent after /repo-intel init or updat
SQL
SQL specialist — schema design, indexes, query optimization, migrations, eliminating table scans and N+1 patte
Draft Reviewer
Review AND FIX any draft for AI slop, writing craft, and voice consistency. Runs three quality checks, then ap
Related Skills
Design Database
Design a database schema with ERD, migrations, and indexes for a given domain
Migration Audit
Safety review of pending Supabase / Postgres migrations: destructive ops, locking impact on large tables, miss
Symfony Migrations
Create and manage Doctrine migrations for database schema changes