sql-schema-design

sql-schema-design is a skill for Claude Code, Codex from fabiandistler/agents. It costs 45 tokens per session (2,035 once invoked), scanned A, original, no licence file.

A way to design SQL databases and queries using clear boundaries. Database views act as the stable interface, while named CTEs—temporary query steps—break complex queries into readable parts.

In plain words
What is it for?
Use it when defining SQL tables, views, query pipelines, and deployment checks for database changes.
Why use it?
It keeps application code separate from the database's physical storage details and helps catch schema drift, meaning the database structure changing unexpectedly during deployment.

Skill for Claude CodeCodex

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 skills/fabiandistler/agents/sql-schema-design
Any agent
npx skills add fabiandistler/agents --skill sql-schema-design
Clone the repo
git clone --depth 1 https://github.com/fabiandistler/agents

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 sql-schema-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/fabiandistler/agents/sql-schema-design.svg)](https://agentmods.dev/skills/fabiandistler/agents/sql-schema-design)
Your own site
<a href="https://agentmods.dev/skills/fabiandistler/agents/sql-schema-design"><img src="https://agentmods.dev/badge/skills/fabiandistler/agents/sql-schema-design.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,035 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00045 $0.02035
Opus 5 $0.00023 $0.01018
Sonnet 5 $0.00009 $0.00407
Haiku 4.5 $0.00005 $0.00203

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

Security

Grade A, and why

sql-schema-design 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 today.

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/sql-schema-design/SKILL.md · 130 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. today Changed · -4 tokens per session ecb3a39c4463
  2. 4d ago First seen · 130 lines · 49 tokens per session scan A ab91ab13b9eb

Subscribe to this mod's changes

sql-schema-design is a skill published in the GitHub repository fabiandistler/agents (2 stars, last pushed yesterday), with no licence file. It adds 45 tokens to every session and 2,035 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-31.

Related

Other skills, from other repositories

architecture-paradigm-cqrs-es

Applies CQRS and Event Sourcing for read/write separation and audit trails. Use when designing systems with complex domain logic or full state-change history.

athola/claude-night-market · 39 tokens

architecture-paradigm-space-based

Applies data-grid architecture for high-traffic stateful workloads. Use when a single database cannot scale and in-memory partitioning is needed.

athola/claude-night-market · 35 tokens

backend-cqrs-patterns

Use this skill when the user says 'CQRS', 'command query segregation', 'separate read write model', 'command model', 'query model', 'read model', 'write model', 'materialized view', 'command handler', 'query handler'. This skill enforces: strict command/query separation, write model optimized for consistency, read…

j4flmao/agent-skills · 125 tokens

backend-event-sourcing

Use this skill when the user says 'event sourcing', 'event store', 'event stream', 'event sourced', 'rehydrate from events', 'event replay', 'projection rebuild', 'event log', 'append-only log', 'event history'. This skill enforces: events as the single source of truth, current state derived from event replay…

j4flmao/agent-skills · 118 tokens

data-storage

Use when thinking through, reviewing, changing, or verifying data models and storage behavior: schemas, identifiers, time, money, constraints, indexes, queries, deletion, lifecycle, files, media, search, provenance, authority, reconciliation, or cleanup. For concurrency use transactions-consistency; for schema…

d4rkNinja/arcforge · 75 tokens

migration-evolution

Use when thinking through, reviewing, changing, or verifying data and contract evolution: schema migrations, expand-and-contract, resumable backfills, API or event compatibility, synchronization, CDC, reindexing, traffic cutover, or legacy integration. For outbox and inbox delivery use async-messaging; for transaction…

d4rkNinja/arcforge · 81 tokens