database-design-advisor

database-design-advisor is a skill for Claude Code, Codex from khalilbenaz/claude-skills-collection. It costs 72 tokens per session (1,972 once invoked), scanned A, original, MIT.

A guide to designing database schemas, the structures that define tables, relationships, and rules for stored data. It covers entity-relationship diagrams, relationship types, normalization, and design decisions for different workloads.

In plain words
What is it for?
Use it to model business entities, draw an ERD, choose relationships, normalize tables, and account for scale, workload, auditing, and multi-tenant needs.
Why use it?
It helps prevent duplicated data, unclear relationships, inconsistent updates, and schemas that do not match how an application reads or writes data.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to model business entities, draw an ERD, choose relationships, normalize tables, and account for scale, workload, auditing, and multi-tenant needs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khalilbenaz/claude-skills-collection/database-design-advisor
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 khalilbenaz/claude-skills-collection --skill database-design-advisor
Clone the repo
git clone --depth 1 https://github.com/khalilbenaz/claude-skills-collection

Made for: Claude Code, Codex.

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 database-design-advisor

README.md
[![agentmods](https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/database-design-advisor/github.svg)](https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/database-design-advisor)
Your own site
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/database-design-advisor"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/database-design-advisor/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 database-design-advisor

Your own site · 80×15
<a href="https://agentmods.dev/skills/khalilbenaz/claude-skills-collection/database-design-advisor"><img src="https://agentmods.dev/badge/skills/khalilbenaz/claude-skills-collection/database-design-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 72 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,972 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00072 $0.01972
Opus 5.5 $0.00029 $0.00789
Sonnet 5.5 $0.00014 $0.00394
Haiku 4.5 $0.00007 $0.00197

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

Security

Grade A, and why

database-design-advisor 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 2mo 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.

database-skills/database-design-advisor/SKILL.md · 170 lines

How it starts

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

Database Design Advisor

Workflow

1. Recueillir les exigences

Questions à poser systématiquement :

  • Quelles sont les entités métier principales ? (ex. : Commande, Client, Produit)
  • Quels sont les volumes estimés ? (lignes/table, croissance annuelle)
  • Profil de charge : read-heavy, write-heavy, ou mixte ?
  • Contraintes de latence ? (OLTP < 10 ms vs OLAP analytique)
  • Multitenancy ? Soft delete ? Audit trail ?

2. Construire le modèle conceptuel (ERD)

Notation Crow's Foot recommandée. Identifier :

  • Entités fortes vs entités faibles
  • Cardinalités : 1:1, 1:N, N:M
  • Attributs multivalués → table séparée obligatoire
  • Agréger les associations N:M en entité d'association avec ses propres attributs
Client (1) ──────< (N) Commande (N) >──────< (N) Produit
                            |
                     LigneCommande (entité d'association)
                       quantite, prix_unitaire

3. Normalisation — critères de décision

Forme Normale Ce qu'elle élimine S'arrêter ici si…
1NF Groupes répétés, attributs multivalués Jamais en dessous
2NF Dépendances partielles (clés composites) Table sans clé composite
3NF Dépendances transitives (A→B→C) Cible par défaut
BCNF Déterminants non-clés Données très structurées
4NF/5NF Dépendances multi-valuées Rarement nécessaire

Règle pratique : viser 3NF par défaut ; BCNF si les anomalies persistent avec des clés candidates multiples.

4. DDL — squelette opérationnel

-- Convention : snake_case, PK surrogate, timestamps audit
CREATE TABLE client (
    id          BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
    code_client VARCHAR(20)  NOT NULL UNIQUE,
    nom         VARCHAR(100) NOT NULL,
    email       VARCHAR(255) NOT NULL UNIQUE,
    actif       BOOLEAN      NOT NULL DEFAULT TRUE,
    created_at  TIMESTAMPTZ  NOT NULL DEFAULT now(),
    updated_at  TIMESTAMPTZ  NOT NULL DEFAULT now()
);

CREATE TABLE commande (
    id          BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
    client_id   BIGINT       NOT NULL REFERENCES client(id),
    statut      VARCHAR(20)  NOT NULL CHECK (statut IN ('BROUILLON','VALIDEE','LIVREE','ANNULEE')),
    total_ht    NUMERIC(14,4) NOT NULL CHECK (total_ht >= 0),
    created_at  TIMESTAMPTZ  NOT NULL DEFAULT now()
);
CREATE INDEX idx_commande_client ON commande(client_id);
CREATE INDEX idx_commande_statut ON commande(statut) WHERE statut NOT IN ('LIVREE','ANNULEE');

Read the full file on GitHub · 170 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. 2mo ago First seen · 170 lines · 72 tokens per session scan A c241fbb317b2

Subscribe to this mod's changes

database-design-advisor is a skill published in the GitHub repository khalilbenaz/claude-skills-collection (27 stars, last pushed 3mo ago), licensed MIT. It adds 72 tokens to every session and 1,972 once invoked, about $0.0003 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-03.

Related

database-design-advisor compared with skills from other repositories

database-design-advisor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-design-advisorkhalilbenaz/claude-skills-collectionSkill273mo agoMITA72Claude Code, Codex
database-patternssoftspark/ai-toolkitSkill18013d agoApache-2.0A55Claude Code
migration-patternssoftspark/ai-toolkitSkill18013d agoApache-2.0A41Claude Code
migratesoftspark/ai-toolkitSkill18013d agoApache-2.0A38Claude Code
tageszeitungellmos-ai/skillsSkill10todayMITA112Claude Code, Codex
mysql-migrationjohnqtcg/awesome-skillsSkill311mo agoMITA132Claude Code, Codex
oracle-migrationjohnqtcg/awesome-skillsSkill311mo agoMITA141Claude Code, Codex