data-tier-audit

data-tier-audit is a skill for Claude Code from ivegamsft/basecoat. It costs 59 tokens per session (341 once invoked), scanned A, original, MIT.

A review guide for database schemas, migrations, indexes, query plans, and the rules that keep application data consistent.

In plain words
What is it for?
Use it to audit migrations, backfills, nullability changes, query scans, pagination, N+1 patterns, indexes, data ownership, and repository conventions.
Why use it?
It finds schema drift, unsafe rollbacks, risky queries, missing indexes, and data-contract problems before they cause failures or slowdowns.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to audit migrations, backfills, nullability changes, query scans, pagination, N+1 patterns, indexes, data ownership, and repository conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ivegamsft/basecoat/data-tier-audit
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 ivegamsft/basecoat --skill data-tier-audit
Clone the repo
git clone --depth 1 https://github.com/ivegamsft/basecoat

Made for: Claude Code.

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 data-tier-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/ivegamsft/basecoat/data-tier-audit.svg)](https://agentmods.dev/skills/ivegamsft/basecoat/data-tier-audit)
Your own site
<a href="https://agentmods.dev/skills/ivegamsft/basecoat/data-tier-audit"><img src="https://agentmods.dev/badge/skills/ivegamsft/basecoat/data-tier-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 341 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.00059 $0.00341
Opus 5 $0.00030 $0.00170
Sonnet 5 $0.00012 $0.00068
Haiku 4.5 $0.00006 $0.00034

Measured 4d ago against content hash e168c3d7ddf5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

data-tier-audit 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 4d 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.

skills/data-tier-audit/SKILL.md · 51 lines

What it actually says

Data Tier Audit Skill

Review data-layer changes for schema drift, migration safety, query risk, and index health.

USE FOR

  • Auditing schema changes and data contract drift
  • Reviewing migrations for reversibility and rollout safety
  • Checking indexes, pagination, and query plans for performance risk
  • Verifying repository and data-access patterns remain consistent

DO NOT USE FOR

  • UI copywriting or visual design
  • Infrastructure-only changes with no data-layer impact
  • Generic code review without a data concern
  • Fixing runtime bugs outside the data layer

Workflow

  1. Compare the proposed schema or migration against existing contracts.
  2. Verify rollback support, nullability changes, and backfill risk.
  3. Inspect queries for N+1 patterns, scans, and missing indexes.
  4. Check data integrity, ownership boundaries, and repository patterns.
  5. Summarize findings with severity, evidence, and remediation.

Output

Return:

  • Verdict: pass, pass with notes, or request changes
  • Findings with severity and evidence
  • Rollback and backfill risks
  • Suggested remediation steps

Use with data-tier agent.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 51 lines · 59 tokens per session scan A e168c3d7ddf5

Subscribe to this mod's changes

data-tier-audit is a skill published in the GitHub repository ivegamsft/basecoat (4 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 341 once invoked, about $0.0003 per session on Opus 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-03.

Related

Other skills, from other repositories

triage-contributor-pr

Triage open pull requests from external contributors to prisma/prisma and produce a per-PR verdict with evidence. Use when a maintainer asks to triage, evaluate, assess, or review the queue of incoming contributor PRs, to decide whether a fork PR is safe to run CI on, to check whether a PR is in scope for its version…

prisma/orm · 131 tokens

review-implement-phase

Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.

prisma/orm · 38 tokens

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

review-prs

Review a GitHub pull request in the googleapis/mcp-toolbox repo against the team's reviewer checklist: PR title/description conventions, linked issue, logic errors and unhandled edge cases, breaking changes, test coverage, docs updates, security (input handling), and new dependencies. Use whenever a maintainer asks…

googleapis/mcp-toolbox · 162 tokens

migration-review

Review database migration files when a change adds or modifies paths under migrations/. Use it before merge to collect forward, rollback, locking, and data-safety evidence.

rohitg00/ai-engineering-from-scratch · 35 tokens

migration-ready-schema

Data-model rules that make a schema importable from day one, so the migration-import-engineer is never blocked on missing columns. Every SMB Product-Builder product must let a customer bring their data from an incumbent (ServiceTitan/Toast/Mindbody/Shopify) — that requires provenance (sourceref) and rollback…

avelikiy/great_cto · 133 tokens