Db Check banner
cveralyon cveralyon

Db Check

Data & AI community

Description

--- description: Validate database state — pending migrations, schema consistency, missing indexes. tools: ["Bash", "Read", "Grep", "Glob"] --- Check database health for your Rails API. 1. **Pending migrations:** `RAILS_ENV=development rails db:migrate:status` 2. **Schema consistency:** compare `db/schema.rb` with actual migrations 3. **Missing indexes:** scan models for `belongs_to`/`has_many` without corresponding indexes 4. **N+1 risks:** grep for `.each` loops calling associations without

Installation

Installs to ~/.claude/agents/cveralyon-axel-setup-db-check.md

Terminal
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.

Full documentation available on GitHub

View Source Repository