database-schema-designer
Skill1 starsChanged 5 months agoApache-2.0View on GitHub
Designs normalized relational database schemas with proper constraints, indexes, and relationships. Use when modeling data for a new application or refactoring an existing schema.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- darkweb19/skillstheir own version, first seen Nov 8, 2026
- kazemcodes/skill-treetheir own version, first seen Nov 8, 2026
- JPeetz/agent-skillstheir own version, first seen Oct 28, 2026
- imMamdouhaboammar/kaku-chatgpt-harnesstheir own version, first seen Oct 25, 2026
- Samueladewole/claude-skillstheir own version, first seen Oct 13, 2026
- Tgoldi/claude-skillstheir own version, first seen Oct 13, 2026
Used with
Projects with it also use api-test-suite-builder, feedback-mastery and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Arnav-0Skillapi-test-suite-builder
Use when the user asks to generate API tests, create integration test suites, test REST endpoints, or build contract tests.
Also in 4 projects that use this
nbirknerSkillfeedback-mastery
Use when preparing to give difficult feedback, approaching a hard conversation with a direct report, peer, or manager, or navigating conflict at work. Also use before performance reviews or when addressing repeated behavior issues. Keywords: give feedback, hard conversation, conflict, performance issue, SBI framework.
Also in 3 projects that use this
jeasonstudioSkillagent-md-refactor
Refactor bloated AGENTS.md, CLAUDE.md, or similar agent instruction files to follow progressive disclosure principles. Splits monolithic files into organized, linked documentation.
Also in 5 projects that use this
Arnav-0Skillsecrets-vault-manager
Use when the user asks to set up secret management infrastructure, integrate HashiCorp Vault, configure cloud secret stores (AWS Secrets Manager, Azure Key Vault, GCP Secret Manager), implement secret rotation, or audit secret access patterns.
Also in 3 projects that use this
csiddhant796-blipSkillself-eval
Honestly evaluate AI work quality using a two-axis scoring system. Use after completing a task, code review, or work session to get an unbiased assessment. Detects score inflation, forces devil's advocate reasoning, and persists scores across sessions.
Also in 3 projects that use this
csiddhant796-blipSkillthreat-detection
Use when hunting for threats in an environment, analyzing IOCs, or detecting behavioral anomalies in telemetry. Covers hypothesis-driven threat hunting, IOC sweep generation, z-score anomaly detection, and MITRE ATT&CK-mapped signal prioritization.
Also in 3 projects that use this
- +1 more from csiddhant796-blip
- +1 more from Arnav-0
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- meshery/meshery★ 12ksame name
- OneWave-AI/claude-skills★ 378same name
- meshery/meshkit★ 233same name
- nahisaho/MUSUBI★ 74same name
- kumaran-is/claude-code-onboarding★ 35same name
- Hassaan146/claude-skills★ 18same name
- JPeetz/agent-skills★ 14same name
- nek1987/auto-agent-harness★ 4same name
- csiddhant796-blip/claude-skills-collection★ 2same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository58 other files it gives its agents.
- agent-chain-designerSkill
- api-wrapper-builderSkill
- embeddings-builderSkill
- evaluation-harnessSkill
- fine-tuning-preparerSkill
- llm-router-builderSkill
- ml-model-trainerSkill
- model-benchmarkerSkill
- prompt-engineerSkill
- rag-pipeline-builderSkill
- synthetic-data-generatorSkill
- vector-db-integratorSkill
- csv-processorSkill
- data-pipeline-builderSkill
- etl-workflow-designerSkill
- json-transformerSkill
- pandas-data-cleanerSkill
- report-generatorSkill
- sql-query-optimizerSkill
- time-series-analyzerSkill
- visualization-generatorSkill
- backup-strategySkill
- ci-cd-optimizerSkill
- docker-compose-generatorSkill
- github-actions-pipelineSkill
- kubernetes-deploymentSkill
- load-balancer-configSkill
- log-aggregator-setupSkill
- monitoring-dashboardSkill
- nginx-config-generatorSkill
- security-hardeningSkill
- ssl-certificate-managerSkill
- terraform-module-builderSkill
- api-security-auditorSkill
- compliance-checkerSkill
- dependency-checkerSkill
- incident-responderSkill
- jwt-security-auditorSkill
- owasp-checkerSkill
- penetration-test-plannerSkill
- secret-detectorSkill
- threat-model-designerSkill
- vulnerability-scannerSkill
- accessibility-auditorSkill
- api-route-builderSkill
- auth-flow-builderSkill
- css-animation-crafterSkill
- form-validatorSkill
- graphql-schema-designerSkill
- html-component-builderSkill
- nextjs-app-scaffoldSkill
- performance-auditorSkill
- pwa-setupSkill
- react-component-generatorSkill
- responsive-layout-systemSkill
- seo-optimizerSkill
- tailwind-design-systemSkill
- websocket-integrationSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 17 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 51
Check constraints for business rules (e.g., price > 0).
- Distinctive: line 52
Not null where appropriate.
- Distinctive: line 77
Polymorphic associations: Use a join table or separate tables per type instead of a single foreign key + type column when possible.
“Common” is measured: kept by at least 6 in 10 of the 17 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Overview
Designs well-normalized relational database schemas (target 3NF with pragmatic denormalization where justified). Covers naming conventions, primary key strategies (UUID vs serial/bigserial), foreign keys with cascade options, index design, soft delete pattern, audit columns, and generation of ER diagrams from SQL.
When to Use This Skill
- Designing the data model for a new application or feature.
- Refactoring a messy or performance-problematic schema.
- The user provides business requirements or an existing schema to improve.
Prerequisites
- Understanding of the domain and entities/relationships.
- Chosen database (PostgreSQL strongly recommended for new projects; MySQL/SQLite also supported).
- Tool for ERD generation (dbdiagram.io, draw.io, or
schemaspy/pgadmin).
Steps
- Identify entities and relationships:
- List all nouns that need to be stored.
- Define relationships (one-to-many, many-to-many, one-to-one).
- Normalization:
- 1NF: atomic values, no repeating groups.
- 2NF: no partial dependency on composite PK.
- 3NF: no transitive dependencies.
- Note when to denormalize (read-heavy reporting tables, materialized views).
- Naming & conventions:
- Tables: plural snake_case (
users,order_items). - Columns: snake_case, consistent (
created_at,updated_at). - Primary keys:
id(bigserial or uuid). - Foreign keys:
user_id,order_id.
- Tables: plural snake_case (
- Keys & constraints:
- Primary key.
- Foreign keys with
ON DELETE/ON UPDATE(RESTRICT, CASCADE, SET NULL — choose deliberately). - Unique constraints.
- Check constraints for business rules (e.g.,
price > 0). - Not null where appropriate.
- Indexes:
- B-tree on foreign keys (almost always).
- Composite on common filter + sort combinations.
- Partial indexes for common subsets.
- GIN for JSONB, full-text, arrays when needed.
- Patterns:
- Soft delete (
deleted_at+is_deletedgenerated column or partial unique indexes). - Audit columns (
created_at,updated_at,created_by,updated_by). - JSONB for flexible attributes (with GIN index).
- Soft delete (
- Output:
- Complete
CREATE TABLEstatements (Postgres syntax, adaptable). - Index creation statements.
- ERD (Mermaid or dbdiagram.io syntax).
- Migration notes (how to apply without downtime).
- Complete
Examples
A complete e-commerce schema (users, products, orders, order_items, reviews, inventory) with proper normalization, indexes, soft deletes, audit columns, and a Mermaid ERD is included, plus a denormalized reporting table example with justification.
Edge Cases & Error Handling
- Polymorphic associations: Use a join table or separate tables per type instead of a single foreign key + type column when possible.
- High cardinality: Careful with indexes on very high-cardinality columns.
- Sharding / partitioning: Note when a table will need to be partitioned by date or tenant.
Verification
- All
CREATE TABLEstatements run cleanly on a fresh database. - Foreign key constraints prevent invalid data.
- Common queries have efficient plans (EXPLAIN shows index usage).
- ERD matches the SQL.
- Soft delete and audit columns are present where expected.
- Success: Schema is normalized, constraints protect data integrity, and common access patterns are fast.
References
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

