🗄️
DataJavaScript

Database Design

by MoizIbnYousaf

Database Design is a Data skill for Claude Code, published by MoizIbnYousaf in Ai-Agent-Skills.

1.1K stars131 forkson MoizIbnYousaf/Ai-Agent-SkillsAdded 2026/08/20Repository updated 2026/08/17
agent-skillsai-agentsclaude-codeclicodexcursordeveloper-toolsmcpproductivity
Install in seconds
Install Database Design
Copy Database Design into your Claude Code skills folder. Run the command in your terminal, or review the source on GitHub before installing.
terminal
npx degit https://github.com/MoizIbnYousaf/Ai-Agent-Skills/tree/main/skills/database-design ~/.claude/skills/database-design

Requires Node.js. Downloads this skill only — not the rest of the repository — into your Claude Code skills folder.

Without Node.js

git clone https://github.com/MoizIbnYousaf/Ai-Agent-Skills.git

Clones the whole repository, then copy the skill’s own directory into your skills folder yourself.

In this catalog

Source file
skills/database-design/SKILL.md in MoizIbnYousaf/Ai-Agent-Skills
Installs to
~/.claude/skills/database-design
Collection
One of 18 skills cataloged from this repository
Category
Data668 skills

What Database Design does

Database Design provides patterns for designing schemas, writing migrations, and optimizing queries in PostgreSQL, MySQL, and NoSQL databases. Use it when setting up a new schema, planning a migration, or tuning slow queries.

Database Design is cataloged under Data on DirSkills. Database Design comes from a repository tagged agent-skills, ai-agents, claude-code, cli and codex.

Documentation

README

Database Design

Schema Design Principles

Normalization Guidelines

-- 1NF: Atomic values, no repeating groups
-- 2NF: No partial dependencies on composite keys
-- 3NF: No transitive dependencies

-- Users table (normalized)
CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  email VARCHAR(255) UNIQUE NOT NULL,
  created_at TIMESTAMPTZ DEFAULT NOW()
);

-- Addresses table (separate entity)
CREATE TABLE addresses (
  id SERIAL PRIMARY KEY,
  user_id INTEGER REFERENCES users(id) ON DELETE CASCADE,
  street VARCHAR(255),
  city VARCHAR(100),
  country VARCHAR(100),
  is_primary BOOLEAN DEFAULT false
);

This is the opening of the README. Read the full README on GitHub.

Frequently asked about Database Design

  • What else does MoizIbnYousaf publish alongside Database Design?

    Database Design is one of 18 skills that DirSkills catalogs from MoizIbnYousaf/Ai-Agent-Skills, the repository it ships in. Its siblings there include Add Upstream Skill, Ask Questions If Underspecified and Audit Library Health. Each one is a separate skill with its own page in this directory, installs the same way Database Design does, and is maintained by MoizIbnYousaf in that same repository. The rest of the collection is listed on the MoizIbnYousaf/Ai-Agent-Skills page.

  • How does Database Design compare to other Data skills?

    Database Design ranks #443 by stars among the 668 Data skills in this catalog. The most-starred ones next to it are Benchmark Methodology, Jupyter Notebook and Solana. DirSkills ranks by the star count of the repository each skill ships in, so that order reflects how popular those repositories are rather than any review of Database Design against them. Open each page to compare what they document and how they install.

More from MoizIbnYousaf/Ai-Agent-Skills

Database Design is one of 18 skills cataloged on DirSkills from MoizIbnYousaf/Ai-Agent-Skills.

See all 18 skills