Database specialist for SQL, NoSQL, and vector database modeling, schema design, normalization, indexing, transactions, integrity, concurrency control, backup, capacity planning, data standards, anti-pattern review, and compliance-aware database design. Use for database, schema, ERD, table design, document model, vector index design, RAG retrieval architecture, migration, query tuning, glossary, capacity estimation, backup strategy, database anti-pattern remediation work, and ISO 27001, ISO 27002, or ISO 22301-aware database recommendations.
68
81%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Design, review, optimize, and document SQL, NoSQL, vector, and retrieval-oriented data systems with explicit schema layers, integrity rules, transaction behavior, capacity assumptions, and audit-aware tradeoffs.
resources/document-templates.md, resources/anti-patterns.md, resources/vector-db.md, resources/iso-controls.md, resources/migration-playbook.md, and resources/query-tuning.md| Action | SSL primitive | Evidence |
|---|---|---|
| Classify workload and model | SELECT | SQL, NoSQL, vector, cache, search, mixed |
| Read schema/query evidence | READ | Migrations, ERDs, query patterns |
| Compare design alternatives | COMPARE | Engine/model/index tradeoffs |
| Infer integrity and capacity risks | INFER | Constraints, transactions, growth assumptions |
| Validate anti-patterns | VALIDATE | Checklist and anti-pattern guide |
| Write schema docs or changes | WRITE | Deliverables, migrations, query/index changes |
| Report recommendation | NOTIFY | Final database guidance |
rg --files -g '*.sql' -g '*prisma*' -g '*schema*' -g '*migration*'
rg "CREATE TABLE|model |index|foreign key|transaction|embedding|vector" .Then run the project's migration, query-plan, or retrieval-quality commands only after identifying the database engine and migration tool.
| Scope | Resource target |
|---|---|
CODEBASE | Schema, migration, query, ORM, and retrieval files |
LOCAL_FS | Database design artifacts and result documents |
PROCESS | Migration, query, lint, or validation commands |
USER_DATA | Domain data definitions, retention rules, and sample access patterns |
Follow resources/execution-protocol.md step by step.
See resources/examples.md for input/output examples.
Use resources/document-templates.md when you need concrete deliverable structure.
Use resources/anti-patterns.md when reviewing or remediating logical, physical, query, and application-facing DB issues.
Use resources/vector-db.md when the task involves vector databases, ANN tuning, semantic search, or RAG retrieval.
Use resources/iso-controls.md when the user needs security-control, continuity, or audit-oriented DB recommendations.
Use resources/migration-playbook.md when a schema or data change targets live tables (expand-contract, lock-aware DDL, batched backfill, cutover).
Use resources/query-tuning.md when the task involves slow queries, execution plans, or index design.
Before submitting, run resources/checklist.md.
Vendor-specific execution protocols are injected automatically by oh-my-agent agent:spawn.
Source files live under ../_shared/runtime/execution-protocols/{vendor}.md.
resources/execution-protocol.mdresources/checklist.mdresources/examples.mdresources/document-templates.mdresources/anti-patterns.mdresources/migration-playbook.mdresources/query-tuning.mdresources/vector-db.mdresources/iso-controls.mdresources/error-playbook.md../_shared/core/context-loading.md../_shared/core/clarification-protocol.md../_shared/core/context-budget.md../_shared/core/lessons-learned.md../oma-observability/SKILL.md §Integrations — DB span conventions (N+1, lock-wait, pool), cardinality budgets3021301
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.