database-design

database-design is a skill for Claude Code from DDS-Solutions/AI-TadPole-OS. It costs 44 tokens per session (1,698 once invoked), scanned A, a copy of database-design, MIT.

A set of guidelines for planning databases: choosing a database system, designing tables and relationships, adding indexes, selecting an ORM, and changing schemas safely. An ORM is a tool that lets application code work with database data without writing every query by hand.

In plain words
What is it for?
It supports database selection, table and relationship design, index planning, query optimization, ORM selection, and migration planning.
Why use it?
It helps avoid mismatched data structures, slow queries, unsafe schema changes, and poorly suited database or ORM choices.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is - **Dense Vector Memory & LanceDB**: Delegates vector tables, RAG, and cosine deduplication to [`vector-memory-lancedb`](../vector-memory-lancedb/SKILL.md)..

Good fit It supports database selection, table and relationship design, index planning, query optimization, ORM selection, and migration planning.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/DDS-Solutions/AI-TadPole-OS
agentmods
npx agentmods add skills/dds-solutions/ai-tadpole-os/database-design

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/dds-solutions/ai-tadpole-os/database-design"><img src="https://agentmods.dev/badge/skills/dds-solutions/ai-tadpole-os/database-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,698 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 86% copy Near-identical to another mod 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.00044 $0.01698
Opus 5.5 $0.00018 $0.00679
Sonnet 5.5 $0.00009 $0.00340
Haiku 4.5 $0.00004 $0.00170

Measured 1mo ago against content hash 0a4f10ac01e0, 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 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/schema_validator.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Origin

This is a copy

86% identical to database-design — 116 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agent/skills/database-design/SKILL.md · 105 lines

How it starts

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

[!IMPORTANT] AI Context & Knowledge Heritage

  • Subsystem: Agent Skills Registry / database-design
  • Architecture: @docs ARCHITECTURE:Documentation
  • Failure Path: Suboptimal schema design, unindexed foreign keys, migration checksum divergence, SQLx VersionMismatch panics, or SQLite table locks.
  • Observability: Traceability via execution/parity_guard.py ([SKILL])

Database Design — Schema Engineering & Persistence Protocol

Learn to THINK: Select the right persistence engine, schema model, and indexing strategy for the specific operational topology.

Skill Synergy & Boundaries:

  • Dense Vector Memory & LanceDB: Delegates vector tables, RAG, and cosine deduplication to vector-memory-lancedb.
  • Domain Terminology & Glossaries: Synchronizes entity names with domain-modeling.
  • Rust Engine & Axum State: Coordinates connection pool injection with rust-pro.

🏛️ Tadpole OS Native Persistence Architecture

Within this codebase, persistence is governed by strict sovereign invariants:

  1. Sovereign Primary Engine: Local-first embedded SQLite managed via async sqlx in Rust (server-rs/Cargo.toml).
  2. Deterministic Migration Pipeline: Forward-only, timestamped SQL migrations located in server-rs/migrations/ verified on startup.
  3. Dense Vector Memory: LanceDB (vector-memory feature flag) for dense embeddings and semantic nearest-neighbor retrieval.
  4. External & Full-Stack Apps: Prisma or Drizzle when provisioning external client web applications, edge nodes (Turso), or cloud Postgres (Neon/Supabase).

📚 Progressive Disclosure & L3 Reference Index

Read REQUIRED core standards below; consult deep L3 Topic Guides on demand:

Guide Topic & Scope Trigger / When to Read
references/database-selection.md SQLite vs PostgreSQL vs Neon vs Turso vs LanceDB Selecting the persistence engine
references/orm-selection.md sqlx vs Drizzle vs Prisma vs SQLAlchemy 2.0 Choosing query layer or ORM
references/schema-design.md Normalization, ULID/UUID keys, relationships, soft deletes Designing or restructuring entity schemas
references/indexing.md B-tree, Hash, GIN, HNSW vector, composite ordering Performance tuning and query plan optimization
references/optimization.md N+1 mitigation, EXPLAIN QUERY PLAN, pagination Query debugging and latency bottlenecks
references/migrations.md SQLx migration immutability, offline compilation cache (sqlx-data.json), WAL pragmas Writing and deploying schema changes
scripts/schema_validator.py Deterministic automated schema validation script Pre-commit schema & migration verification

Read the full file on GitHub · 105 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +9 lines 0a4f10ac01e0
  2. 1mo ago Changed · +33 lines · +21 tokens per session 3e993b2d4798
  3. 3mo ago First seen · 63 lines · 23 tokens per session scan A 2442e63f014f

Subscribe to this mod's changes

database-design is a skill published in the GitHub repository DDS-Solutions/AI-TadPole-OS (9 stars, last pushed 3d ago), licensed MIT. It adds 44 tokens to every session and 1,698 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 86% identical to database-design, differing in 116 lines, and is treated as a copy.

Related

database-design compared with skills from other repositories

database-design next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
database-designDDS-Solutions/AI-TadPole-OSSkill93d agoMITA44Claude Code
build-with-tinybasetinyplex/tinybaseSkill5.2kyesterdayMITA90Claude Code, Codex
anarlogfastrepl/anarlogSkill10kyesterdayMITA50Claude Code
monitoring-ingestion-pipelinePostHog/posthogSkill41ktodaynoneA70Claude Code, Codex
monitoring-capture-servicePostHog/posthogSkill41ktodaynoneA92Claude Code, Codex
django-migrationsPostHog/posthogSkill41ktodaynoneA99Claude Code, Codex
querying-production-databasesPostHog/posthogSkill41ktodaynoneA175Claude Code, Codex