database-design

database-design is a skill for Claude Code from DDS-Solutions/AI-TadPole-OS. It costs 44 tokens per session (1,491 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.

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 with agentmods
npx agentmods add skills/dds-solutions/ai-tadpole-os/database-design
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 DDS-Solutions/AI-TadPole-OS --skill database-design
Clone the repo
git clone --depth 1 https://github.com/DDS-Solutions/AI-TadPole-OS

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,491 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.01491
Opus 5.5 $0.00018 $0.00596
Sonnet 5.5 $0.00009 $0.00298
Haiku 4.5 $0.00004 $0.00149

Measured 3d ago against content hash 3e993b2d4798, 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 3d 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 — 107 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 · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 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 divergence, N+1 query loops.
  • 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.


🏛️ 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 Expand-contract zero-downtime migrations, rollback safety 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 · 96 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. 3d ago Changed · +33 lines · +21 tokens per session 3e993b2d4798
  2. 1mo 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 (8 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 1,491 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 107 lines, and is treated as a copy.

Related

Other skills, from other repositories

build-with-tinybase

Scaffold, extend, and verify reactive local-first JavaScript or TypeScript applications with TinyBase. Use when choosing TinyBase for in-memory tabular or key-value state, generating an app with create-tinybase, adding schemas or UI bindings, resolving TinyBase import paths, configuring browser or database…

tinyplex/tinybase · 90 tokens

monitoring-ingestion-pipeline

Guide for using the Grafana MCP to monitor and diagnose the Node.js ingestion pipeline workers in production. Use when investigating event lag, drops, pipeline errors, person/group processing, Kafka consumer health, Redis, Postgres, ClickHouse downstream health, or any ingestion worker question. Covers prod-us and…

PostHog/posthog · 71 tokens

django-migrations

Django migration patterns and safety workflow for PostHog. Use when creating, adjusting, or reviewing Django/Postgres migrations, including non-blocking index/constraint changes, multi-phase schema changes, data backfills, migration conflict rebasing, and product model moves that require SeparateDatabaseAndState. Also…

PostHog/posthog · 99 tokens

monitoring-capture-service

Guide for using the Grafana MCP to monitor and diagnose the capture service (rust/capture) in production. Use when investigating latency, event loss, Kafka backpressure, Redis issues, rate limiting, Envoy proxy issues, or any capture health question. Covers prod-us and prod-eu environments.

PostHog/posthog · 66 tokens

querying-local-postgres

Run read-only SQL against the local Postgres app database (SELECT, EXPLAIN, EXPLAIN ANALYZE on SELECT). Default local URL postgres://posthog:posthog@localhost:5432/posthog; else DATABASEURL. Use when querying the local DB, inspecting tables, debugging data, or analyzing query plans. Mutations are strictly forbidden.

PostHog/posthog · 79 tokens

adding-warehouse-person-properties

Sync columns from a synced data warehouse table onto PostHog person or group properties, so warehouse data becomes usable anywhere person and group properties already work: feature flag targeting, cohorts, insight filters and breakdowns, surveys, session replay filters, workflows, and the person profile. Use when the…

PostHog/posthog · 139 tokens