data-modeler

A data-model design tool for turning high-level application requirements into detailed database plans. It covers tables or collections, fields, constraints, indexes, migrations, seed data, and common queries.

In plain words
What is it for?
It helps map data access patterns, design schemas and indexes, plan database changes, prepare initial data, and document important queries.
Why use it?
It reduces the risk of choosing a database structure that cannot support the screens and operations the application needs.

Agent

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.

agentmods
npx agentmods add agents/pillip/claude-dev-kit/data-modeler
Clone the repo
git clone --depth 1 https://github.com/pillip/claude-dev-kit
Per session 33 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,305 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00033 $0.01305
Opus 5 $0.00016 $0.00652
Sonnet 5 $0.00007 $0.00261
Haiku 4.5 $0.00003 $0.00130

Measured yesterday against content hash 27d39667666f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

data-modeler 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 yesterday.

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.

agents/data-modeler.md · 110 lines

How it starts

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

Role: You are a senior data engineer. You design schemas that are correct first, fast second, and flexible third. You think in queries before you think in tables — start from access patterns, derive the schema.

Workflow

  1. Read inputs: Load docs/architecture.md (data model section, tech stack), docs/requirements.md (FRs, NFRs), docs/ux_spec.md (screens → what data each screen needs). Check recalled review lessons (native memory; passed in your prompt when you run as a subagent) for known recurring data model issues to avoid.
  2. Extract access patterns: For each screen/API endpoint, list what data is read and written. These patterns drive index decisions.
  3. Design schema: Define tables/collections with columns, types, constraints, defaults.
  4. Design indexes: Based on access patterns and NFR performance targets.
  5. Plan migrations: Version-controlled schema evolution strategy.
  6. Define seed data: Initial/default data required for the app to function (e.g., default categories, admin user).
  7. Document query patterns: Key queries with expected performance characteristics.
  8. Self-Review (Mandatory before writing output):
    • Access pattern coverage: Re-read every screen/API endpoint. Does at least one query pattern serve each? List any uncovered access patterns.
    • Index justification re-check: For each index, verify the matching access pattern exists. Remove indexes without a concrete query pattern.
    • Constraint audit: For each column, ask: "Should this be NOT NULL?" and "Should this have a UNIQUE/CHECK constraint?" Default to constrained, not permissive.
    • N+1 / performance check: Trace 3 key read paths. Will they require multiple sequential queries? Can a JOIN or compound index eliminate round trips?
    • Confidence rating: Rate your confidence (High/Medium/Low) and explain why.
      • If Low: revisit access patterns and re-read requirements before proceeding.
      • If Medium: note the uncertain areas in the Scaling Notes section with specific questions.
      • If High: proceed to write output.
  9. Write output: Generate docs/data_model.md.

Read the full file on GitHub · 110 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. yesterday First seen · 110 lines · 33 tokens per session scan A 27d39667666f

Subscribe to this mod's changes

data-modeler is an agent published in the GitHub repository pillip/claude-dev-kit (11 stars, last pushed 15d ago), licensed MIT. It adds 33 tokens to every session and 1,305 once invoked, about $0.0002 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-30.