database-engineering
Deliver language-agnostic database design, migration, performance, and reliability guidance across relational, document, and in-memory data systems.
by HanTechnology★ 38 GitHub stars
Install database-engineering in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
About this skill
Database Engineering
Use this pack for database work: schema design, data modeling, migrations, query and index tuning, replication planning, backup and restore strategy, and operational reliability across major datastore families. Defer first-pass route choice and lane selection to .opencode/reference/routing-matrix.md.
This is the general database pack for the repo. Use the overlays in reference/postgres-mysql-mongodb-redis.md and reference/analytics-search-stores.md to sharpen engine-specific, analytical, and search-serving choices while keeping schema, migration, query-planning, index or mapping contracts, lifecycle policy, freshness, and recovery expectations explicit.
Core focus
- Design schemas and data models around business invariants, access patterns, and change frequency.
- Treat migrations as production changes: forward compatibility, rollback, and zero-downtime sequencing belong in the design.
- Tune query shape and index strategy with planner evidence instead of intuition alone.
- Make transaction boundaries, consistency needs, caching assumptions, and retention rules visible.
- Plan for replication, high availability, backup, restore, and recovery objectives before the system is under stress.
Shared database standards
- Choose relational, document, and in-memory stores based on data shape and consistency needs, not habit or framework defaults.
- Keep primary keys, foreign keys, uniqueness, constraints, and data ownership readable in the schema.
- Use representative data,
EXPLAIN, query plans, and slow-query evidence before claiming a performance win. - Stage migrations so application code and data changes can coexist during rollout, rollback, and backfill windows.
- Rehearse restore paths and failure scenarios; backups without restore confidence are not enough.
Default workflow
- Inspect the current schema, query paths, write patterns, retention rules, and operational constraints.
- Choose the relevant database overlay or overlay set:
reference/postgres-mysql-mongodb-redis.mdfor engine-specific tradeoffs, orreference/analytics-search-stores.mdwhen warehouse, analytical, search-serving, reindex, or recovery behavior dominates the design. - Define the schema, migration sequence, rollback shape, and consistency model before broad implementation.
- Implement schema changes, indexes, query updates, and backup or recovery implications together so operational risk stays visible.
- Run
review-workafter substantial database changes.
Collaboration in this repo
- Use
Explorebefore editing so new work matches local schema, migration, and query patterns. - Use
LibrarianorContext7when engine behavior, planner rules, or driver capabilities need a source-of-truth check. - Pair with
architecture-integrationwhen service boundaries, event contracts, or ownership across systems dominate the task. - Pair with
security-engineeringwhen encryption, access control, or sensitive-data handling changes the storage design. - Pair with
devops-platformwhen replication, backup, restore, or failover concerns extend into runtime operations.
Overlays
reference/postgres-mysql-mongodb-redis.mdfor engine choice boundaries, indexing and query planning, transactions and consistency, and replication or durability tradeoffs.reference/analytics-search-stores.mdfor warehouse and search-serving boundaries, index or mapping contracts, schema evolution and reindex flow, lifecycle policy, hot-path guardrails, and recovery posture.
Guardrails
- Do not reduce this pack to ORM-only or web-stack-only guidance.
- Do not ship destructive migrations without compatibility, rollback, and data-recovery thinking.
- Do not assume replicas, backups, or caches are safe defaults without testing their failure behavior.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
- reference/analytics-search-stores.md
- reference/postgres-mysql-mongodb-redis.md
FAQ
What does the database-engineering skill do?
Deliver language-agnostic database design, migration, performance, and reliability guidance across relational, document, and in-memory data systems.
How do I install the database-engineering skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the database-engineering skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…