guide-data-model

guide-data-model is a skill for Claude Code from joao-aires/agent-skills-public. It costs 43 tokens per session (1,455 once invoked), scanned A, original, MIT.

A guide for documenting a logical data model: the durable facts a system stores, their relationships, ownership, identity, lifecycle, and rules. It focuses on what the data means and must preserve, rather than merely listing database tables.

In plain words
What is it for?
Use it to describe entities, keys, relationships, ownership, tenancy, lifecycle, and invariants before or alongside database implementation. It helps readers understand the model without needing to know the original design discussion.
Why use it?
A table inventory or diagram alone may not explain who owns records, which relationships are allowed, or how data changes over time. This guide captures those rules, along with access, retention, consistency, compatibility, evidence, and unresolved decisions.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it to describe entities, keys, relationships, ownership, tenancy, lifecycle, and invariants before or alongside database implementation. It helps readers understand the model without needing to know the original design discussion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/joao-aires/agent-skills-public/guide-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.

Any agent
npx skills add joao-aires/agent-skills-public --skill guide-data-model
Clone the repo
git clone --depth 1 https://github.com/joao-aires/agent-skills-public

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/joao-aires/agent-skills-public/guide-data-model/github.svg)](https://agentmods.dev/skills/joao-aires/agent-skills-public/guide-data-model)
Your own site
<a href="https://agentmods.dev/skills/joao-aires/agent-skills-public/guide-data-model"><img src="https://agentmods.dev/badge/skills/joao-aires/agent-skills-public/guide-data-model/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 guide-data-model

Your own site · 80×15
<a href="https://agentmods.dev/skills/joao-aires/agent-skills-public/guide-data-model"><img src="https://agentmods.dev/badge/skills/joao-aires/agent-skills-public/guide-data-model.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,455 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.00043 $0.01455
Opus 5.5 $0.00017 $0.00582
Sonnet 5.5 $0.00009 $0.00291
Haiku 4.5 $0.00004 $0.00145

Measured 11d ago against content hash 252c09367776, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

guide-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 11d 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/sdlc/skills/guide-data-model/SKILL.md · 102 lines

How it starts

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

Data model guide

A data model explains the durable facts a system keeps, how they relate, who owns them and which rules must remain true. It is logical system knowledge: entities, relationships, identity, lifecycle, invariants, consistency, retention and evolution. It is not a table inventory, an entity-relationship picture on its own, or a copy of the physical schema.

The database-design method owns logical and physical data design: entities, keys, invariants, migration mechanics and engine behavior. This guide owns the artifact — reader questions, required sections, evidence and review. The data model states what must be true and why; the schema implements it; link the migration or schema at a named revision rather than duplicating it.

Reader questions

A reader who was not in the design conversation must be able to answer:

  1. Which system or domain does the model cover, and what is out of scope?
  2. What are the entities and what does each represent in the business or system?
  3. How do entities relate, and what cardinality and optionality apply?
  4. Who owns each record or aggregate, and what can another owner read or change?
  5. How is each entity identified, and what makes a duplicate?
  6. How does a record move through its lifecycle, including correction and deletion?
  7. Which invariants must remain true, and where are they enforced?
  8. Which changes must be consistent together, and what happens under concurrency or partial failure?
  9. How long is data kept, who may access it, and how is it exported or deleted?
  10. How does the model change without breaking existing readers and writers?
  11. What is current versus proposed, and which decisions remain open?

Minimum content

  • scope, status, revision and the systems or stores covered;
  • entities with their meaning, granularity and authoritative owner;
  • relationships with cardinality, optionality and the rule each expresses;
  • identity and keys: natural or surrogate identity, uniqueness, duplicate handling and references;
  • ownership and tenancy: record owner, tenant boundary, sharing and cross-tenant rules;
  • lifecycle: creation, state transitions, correction, archival, deletion and restoration;
  • invariants: the facts that must remain true, their enforcement point and failure behavior;
  • consistency: which changes must become visible together, conflict handling and derived data;
  • retention, access and deletion: periods, legal or contractual constraints, export and backups;
  • compatibility and evolution: readers, writers, supported versions, deprecation window and rollback limits; link the migration plan for expand/migrate/contract steps;
  • evidence: schema, migrations, constraints, tests, observed data or decisions at a revision;
  • current versus proposed state and any open decisions with owners.

Read the full file on GitHub · 102 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. 11d ago Changed · -3 lines 252c09367776
  2. 16d ago First seen · 105 lines · 43 tokens per session scan A 3e7f89265f41

Subscribe to this mod's changes

guide-data-model is a skill published in the GitHub repository joao-aires/agent-skills-public (2 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,455 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-11-20.

Related

guide-data-model compared with skills from other repositories

guide-data-model next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
guide-data-modeljoao-aires/agent-skills-publicSkill2yesterdayMITA43Claude Code
create-prprisma/ormSkill48kyesterdayApache-2.0A47Claude Code, Codex
schema-explorationlangchain-ai/deepagentsSkill32ktodayMITA57Claude Code, Codex
atlas-mssqlariga/atlasSkill8.9k5d agoApache-2.0A163Claude Code
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex
bex-keyvaluebex-co/bexSkill1.6ktodayApache-2.0A117Claude Code, Codex
pentesting-mysqlxalgorix/xalgorixSkill1.6k2d agoApache-2.0A65Claude Code, Codex