review-data-model

review-data-model is a command for Claude Code from hollandkevint/data-product-operator. It costs 17 tokens per session (775 once invoked), scanned A, original, MIT.

A structured review of a data model, meaning the tables, fields, and relationships used to organize data. It checks naming, normalization, row-level detail, relationships, and whether the design can grow with future needs.

In plain words
What is it for?
Use it to review SQL table definitions or schema descriptions for analytics, reporting, machine-learning features, APIs, or operational data stores.
Why use it?
It can reveal duplicated rows, unclear table meaning, unsuitable normalization, and relationships that make important queries unreliable or difficult.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the data-product-operator plugin — 17 skills, 7 commands, 1 MCP server shipped together

Good fit Use it to review SQL table definitions or schema descriptions for analytics, reporting, machine-learning features, APIs, or operational data stores.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/hollandkevint/data-product-operator/review-data-model
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.

Clone the repo
git clone --depth 1 https://github.com/hollandkevint/data-product-operator

Made for: Claude Code.

Or install data-product-operator, the plugin that ships this one along with the rest of its 17 skills, 7 commands, 1 MCP server.

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 review-data-model

README.md
[![agentmods](https://agentmods.dev/badge/commands/hollandkevint/data-product-operator/review-data-model.svg)](https://agentmods.dev/commands/hollandkevint/data-product-operator/review-data-model)
Your own site
<a href="https://agentmods.dev/commands/hollandkevint/data-product-operator/review-data-model"><img src="https://agentmods.dev/badge/commands/hollandkevint/data-product-operator/review-data-model.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 775 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.00017 $0.00775
Opus 5 $0.00009 $0.00387
Sonnet 5 $0.00003 $0.00155
Haiku 4.5 $0.00002 $0.00077

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

Security

Grade A, and why

review-data-model 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 8d 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.

commands/review-data-model.md · 78 lines

How it starts

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

Review a Data Model

Evaluate a schema design for a data product. This review covers normalization strategy, naming conventions, relationship design, grain correctness, and extensibility. Output is conversational critique with specific recommendations.

Gather Context

If $ARGUMENTS provides a file path, read it. If it provides DDL or a description, use it directly. Otherwise, ask:

Question 1: Share your schema. Options: paste DDL, provide a file path, describe the tables and relationships.

Question 2: What is this data product used for? (analytics, reporting, ML features, API serving, operational data store)

Question 3: What query patterns matter most? (what questions will consumers ask this data?)

Review Checklist

Evaluate each area and provide specific feedback:

1. Grain Check

  • Is the grain of each fact table clearly defined?
  • Is there unexpected row multiplication from joins?
  • Does the grain match the intended query patterns?

Flag: "This table has one row per [X]. Is that correct? Your query pattern suggests you need one row per [Y] instead."

2. Normalization Strategy

  • Is the normalization level appropriate for the use case? (OLTP needs 3NF; analytics needs star schema)
  • Are there unnecessary joins that could be eliminated with strategic denormalization?
  • Are there One Big Table anti-patterns (full denormalization causing row explosion)?

Flag: "This many-to-many relationship between patients and diagnoses will cause [N]x row multiplication if fully denormalized. Use a bridge table instead."

3. Naming Conventions

  • Are table and column names consistent? (snake_case, no abbreviations unless standard)
  • Do fact tables use fact_ prefix and dimension tables use dim_ prefix?
  • Do column names include units when ambiguous? (duration_days not duration)
  • Are foreign keys named consistently? (<dimension>_id)

Flag specific violations. Don't say "naming could be improved." Say "ptnt_id should be patient_id. los should be length_of_stay_days."

Read the full file on GitHub · 78 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. 8d ago First seen · 78 lines · 17 tokens per session scan A 063146b89b18

Subscribe to this mod's changes

review-data-model is a command published in the GitHub repository hollandkevint/data-product-operator (3 stars, last pushed 5mo ago), licensed MIT. It adds 17 tokens to every session and 775 once invoked, about $0.0001 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-08-31.