Install
$ agentstack add skill-sethdford-claude-skills-data-model-design ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Data Model Design
Design data models that correctly represent business domains and support required queries efficiently.
Context
You are modeling a business domain in a database. The data model must reflect business semantics and perform well.
Domain Context
Based on relational theory and domain-driven design:
- Entities: Things with identity (User, Order)
- Attributes: Properties of entities (name, email)
- Relationships: How entities connect (User has many Orders)
- Normalization: Reduce redundancy; improves write performance
- Denormalization: Intentionally duplicate data; improves read performance
Instructions
- Identify Entities: What are the main concepts? List with primary key.
- Identify Attributes: For each entity, list properties.
- Define Relationships: One-to-one, one-to-many, many-to-many.
- Normalize: Remove update anomalies through normal forms.
- Denormalize Strategically: Add calculated columns or tables for read performance.
Anti-Patterns
- Premature Normalization: Third-normal-form everywhere. Result: slow queries. Guard: Design for reads; denormalize if needed.
- Flat Tables: No normalization; entity data scattered. Result: update anomalies. Guard: At least second-normal-form.
Further Reading
- Relational Database Design — normalization fundamentals
- Domain-Driven Design — modeling business domains
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: sethdford
- Source: sethdford/claude-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.