validate-schema

validate-schema is a skill for Claude Code from Abilityai/abilities. It costs 39 tokens per session (1,054 once invoked), scanned A, original, MIT.

A schema consistency checker that compares database models, migration files, applied changes, and architecture documentation. A migration is a recorded database change used to update one database version to the next.

In plain words
What is it for?
Use it after schema-related changes or on a schedule to produce a dated report about mismatches and migration drift.
Why use it?
It helps find cases where the live database, code definitions, migration history, and documentation no longer agree.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dev-methodology plugin — 18 skills, 3 agents shipped together

Good fit Use it after schema-related changes or on a schedule to produce a dated report about mismatches and migration drift.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abilityai/abilities/validate-schema
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Abilityai/abilities --skill validate-schema
Clone the repo
git clone --depth 1 https://github.com/Abilityai/abilities

Made for: Claude Code.

Or install dev-methodology, the plugin that ships this one along with the rest of its 18 skills, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for validate-schema

README.md
[![agentmods](https://agentmods.dev/badge/skills/abilityai/abilities/validate-schema/github.svg)](https://agentmods.dev/skills/abilityai/abilities/validate-schema)
Your own site
<a href="https://agentmods.dev/skills/abilityai/abilities/validate-schema"><img src="https://agentmods.dev/badge/skills/abilityai/abilities/validate-schema/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for validate-schema

Your own site · 80×15
<a href="https://agentmods.dev/skills/abilityai/abilities/validate-schema"><img src="https://agentmods.dev/badge/skills/abilityai/abilities/validate-schema.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,054 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.01054
Opus 5.5 $0.00016 $0.00422
Sonnet 5.5 $0.00008 $0.00211
Haiku 4.5 $0.00004 $0.00105

Measured 1mo ago against content hash 1a2509004386, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

validate-schema scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/dev-methodology/skills/validate-schema/SKILL.md · 136 lines

How it starts

The opening of the file, as written. The whole thing — 136 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Validate Schema

ℹ️ First, set expectations: before anything else, print one short line with this skill's version and its most recent change — the top entry of metadata.changelog above — e.g. validate-schema vX.Y — recent: <summary>. Then proceed.

Detect drift between database schema definitions, migration files, and architecture documentation. Run weekly or after any schema-related PR merges.

State Dependencies

Source Location Read Write Description
Schema definitions src/*/schema.py, src/*/models.py, etc. ✅ ORM models / type definitions
Migration files migrations/, alembic/, etc. ✅ Applied migrations
Architecture docs/memory/architecture.md ✅ Documented schema
Schema report docs/reports/schema-{date}.md ✅ Saved output

Process

Step 1: Locate Schema and Migration Files

# Find model/schema definitions
find src/ -name "schema.py" -o -name "models.py" -o -name "types.py" 2>/dev/null

# Find migration files
find . -type d -name "migrations" -o -name "alembic" 2>/dev/null
ls migrations/ 2>/dev/null || ls alembic/versions/ 2>/dev/null

Step 2: Extract Model Definitions

Read schema/model files and extract:

  • Table/collection names
  • Column/field names and types
  • Relationships and foreign keys
  • Indexes and constraints

Step 3: Extract Migration History

Read the migration files and determine:

  • What the migration history adds up to (final applied state)
  • The most recent migration's timestamp
  • Any migrations marked as squashed or pending

Step 4: Compare Schema vs Migrations

Check that every column/field defined in schema.py has a corresponding migration:

  • New fields without a migration = drift
  • Fields removed from schema but migration not written = drift
# Check if there are uncommitted migration changes
# (example for Alembic)
alembic check 2>/dev/null || echo "alembic not available — manual check required"

Read the full file on GitHub · 136 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 136 lines · 39 tokens per session scan A 1a2509004386

Subscribe to this mod's changes

validate-schema is a skill published in the GitHub repository Abilityai/abilities (12 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 1,054 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-07.

Related

Other skills, from other repositories

reproduce-bug

Reproduce a reported bug in googleapis/mcp-toolbox and decide whether it is real, delivering an evidence-backed verdict: confirmed, already fixed, misconfiguration, client-side, works as intended, not reproducible, or blocked. Use whenever a maintainer asks you to reproduce, verify, confirm, or investigate a bug…

googleapis/mcp-toolbox · 130 tokens

triage-issues

Triage GitHub issues in the googleapis/mcp-toolbox repo: propose the correct labels (type / priority / product / status), check for duplicates, verify a bug has enough info to act on, and draft a triage comment. Use whenever a maintainer asks you to triage, label, categorize, prioritize, or "look at" an issue (or a…

googleapis/mcp-toolbox · 164 tokens

postgresql-indexing

PostgreSQL indexing best practices for Prowler: index design, partial indexes, partitioned table indexing, EXPLAIN ANALYZE validation, concurrent operations, monitoring, and maintenance. Trigger: When creating or modifying PostgreSQL indexes, analyzing query performance with EXPLAIN, debugging slow queries, reviewing…

prowler-cloud/prowler · 108 tokens

graphjin-eval

Create, extend, run, baseline, and diagnose GraphJin agent evaluations through the graphjin eval CLI.

dosco/graphjin · 27 tokens

axiom-audit-grdb-performance

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.

CharlesWiltgen/Axiom · 43 tokens

django-perf-review

Django performance code review. Use when asked to "review Django performance", "find N+1 queries", "optimize Django", "check queryset performance", "database performance", "Django ORM issues", or audit Django code for performance problems.

getsentry/skills · 55 tokens