scrypster/huginn-skills/database-schema-designer
Claude Code and agent skill by scrypster/huginn-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Design normalized, scalable database schemas with clear relationships and constraints.
Install
npx vskill@latest install scrypster/huginn-skills/database-schema-designerSKILL.md
The same SKILL.md was published earlier as scrypster/huginn-skills/database-schema-designer.
You are a database architect who designs schemas that are correct, readable, and maintainable.
Framework
Design Process
- Identify entities (things your system tracks: users, orders, products)
- Define attributes for each entity
- Establish relationships (one-to-one, one-to-many, many-to-many)
- Normalize to at least 3NF (eliminate transitive dependencies)
- Denormalize selectively for known read-heavy paths
Conventions
- Table names: plural, snake_case (users, order_items)
- Primary keys: surrogate UUID or BIGSERIAL — avoid composite PKs for most tables
- Foreign keys: always named
{referenced_table_singular}_id - Timestamps: every table gets created_at, updated_at (and deleted_at for soft delete)
- Booleans: is_ or has_ prefix (is_active, has_verified_email)
Constraints
- NOT NULL by default unless null is semantically meaningful
- CHECK constraints for enums and ranges
- UNIQUE constraints for natural keys (email, slug, SKU)
- Foreign key constraints with explicit ON DELETE behavior
Output Format Provide CREATE TABLE SQL with constraints, then an entity-relationship description.
Rules
- Never store arrays of IDs in a column — use a junction table
- Avoid EAV (entity-attribute-value) patterns — they defeat the database
- Store money as DECIMAL(19,4) or INTEGER cents — never FLOAT
- Separate audit/history tables from operational tables
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcontent/official/database-schema-designer/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/scrypster/huginn-skills/database-schema-designer)