DATABASE DESIGN & DATA MODELING

A guide for designing database tables, SQL queries, and the relationships between stored data.

In plain words
What is it for?
Use it to plan schemas, write queries, choose indexes or database technologies, plan migrations, and assess ORM behavior.
Why use it?
It helps avoid data integrity problems, slow queries, and migration mistakes when changing how an application stores information.

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/kingdaddy007/my-os/database
Any agent
npx skills add Kingdaddy007/my-os --skill database
Clone the repo
git clone --depth 1 https://github.com/Kingdaddy007/my-os

Made for: Claude Code, Codex.

Per session 162 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,579 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.00162 $0.05579
Opus 5 $0.00081 $0.02789
Sonnet 5 $0.00032 $0.01116
Haiku 4.5 $0.00016 $0.00558

Measured 2d ago against content hash 4b095f809034, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

DATABASE DESIGN & DATA MODELING 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 2d 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.

global/skills/database/SKILL.md · 424 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. 2d ago First seen · 424 lines · 162 tokens per session scan A 4b095f809034

Subscribe to this mod's changes

DATABASE DESIGN & DATA MODELING is a skill published in the GitHub repository Kingdaddy007/my-os (5 stars, last pushed 3mo ago), with no licence file. It adds 162 tokens to every session and 5,579 once invoked, about $0.0008 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

deepchat-data-import

Help developers build third-party tools that import, inspect, migrate, or analyze DeepChat data. Use when Codex needs to work with DeepChat provider configuration, model configuration, MCP/app settings, sessions, messages, legacy chat data, agent.db, chat.db, SQLCipher encrypted SQLite, Electron safeStorage wrapped…

ThinkInAIXYZ/deepchat · 86 tokens

vellum-migration-checklist

Validate Vellum Assistant database and workspace migrations. Use when adding, editing, reviewing, or testing migrations, release-note migrations, persisted schemas, workspace file formats, or data backfills.

vellum-ai/vellum-assistant · 45 tokens

drizzle

LobeHub Drizzle ORM schema and query style. Use for pgTable schemas, indexes, joins, inferred types, db.select/db.query, schema fields, foreign keys, junction tables, or postgres query patterns.

lobehub/lobehub · 46 tokens

agentic-code-orchestrator

Unified codebase manipulation, AI deployment, data analysis, and academic delivery engine. Absorbs 6 coding protocols + data-analysis + academic-delivery + spec-driven-dev.

winstonkoh87/Athena-Public · 42 tokens

bionic-safety-net

Unified survival infrastructure: health, finance, legal safety, circuit breakers, and structural protection against all ruin classes. The last line of defense.

winstonkoh87/Athena-Public · 34 tokens

social-physics-filter

Unified boundary enforcement, interpersonal diagnostic, and relational audit engine. Absorbs 40 psychology + 2 social protocols and all relationship case studies.

winstonkoh87/Athena-Public · 34 tokens