Agent skill

Oma DB

by first-fluke in first-fluke/oh-my-agent

Design schemas and migrations, tune queries, or plan vector retrieval and database operations.

MITAuto-check passedDatabases

Install Oma DB

skills CLI
$ npx skills add first-fluke/oh-my-agent --skill oma-db -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install first-fluke/oh-my-agent oma-db --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/first-fluke/oh-my-agent.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/oma-db .claude/skills/oma-db && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
oma-db
GitHub stars
1.3k
Token cost
~3.1k tokens
SKILL.md length
1,400 words
Files
11
Skills in repo
57
Repo updated
First seen
Licence
MIT

At a glance

Design schemas and migrations, tune queries, or plan vector retrieval and database operations.

  • Works in 3 steps: Identify workload, data domain, existing… → Gather access patterns, consistency… → Decide whether the task is design,…
  • Tasks that involve Database schema design
  • SKILL.md covers Scheduling, Structural Flow, Logical Operations and References
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Oma DB is an agent skill from first-fluke/oh-my-agent. Design schemas and migrations, tune queries, or plan vector retrieval and database operations. Application API implementation uses oma-backend.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 11 other files (for example `resources/anti-patterns.md`, `resources/checklist.md` and `resources/document-templates.md`).

It sits in Databases, covering Database schema design and Database administration. The repository describes itself as: Mechanical verification for AI coding agents — skills pack or full harness (stop-hook gates, artifact checks, independent judges). The licence is MIT.

When your agent uses it

  • Tasks that involve Database schema design
  • Tasks that involve Database administration

Example prompts

  • “/oma-db”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Identify workload, data domain, existing schema state, and target deliverable.
  2. Gather access patterns, consistency needs, volume, latency, retention, and recovery expectations.
  3. Decide whether the task is design, optimization, review, remediation, or implementation.

What it can do on your machine

Read from SKILL.md and the folder at commit b364119. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Oma DB loads about 3.1k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 1,400 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from first-fluke/oh-my-agent at commit b364119, republished under its MIT licence (© first-fluke). 1,400 words, ~3,110 tokens.

Download SKILL.mdSave it as .claude/skills/oma-db/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
oma-db
description
Design schemas and migrations, tune queries, or plan vector retrieval and database operations. Application API implementation uses oma-backend.

DB Agent - Data Modeling & Database Architecture Specialist

Scheduling

Goal

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.

Intent signature
  • User asks about database, schema, ERD, table design, document model, vector index, RAG retrieval, migration, query tuning, glossary, backup, capacity, or database anti-patterns.
  • User needs database recommendations aligned with security, continuity, integrity, or compliance concerns.
When to use
  • Relational database modeling, ERD, and schema design
  • NoSQL document, key-value, wide-column, or graph data modeling
  • Vector database and retrieval architecture design for semantic search and RAG
  • SQL/NoSQL technology selection and tradeoff analysis
  • Normalization, denormalization, indexing, and partitioning
  • Transaction design, locking, isolation level, and concurrency control
  • Data standards, glossary, naming rules, and metadata governance
  • Capacity estimation, storage planning, hot/cold data separation, and backup strategy
  • Database anti-pattern review and remediation guidance
  • ISO 27001, ISO 27002, and ISO 22301-aware database design recommendations
When NOT to use
  • API-only implementation without schema impact -> use Backend Agent
  • Infra provisioning only -> use TF Infra Agent
  • Final quality/security audit -> use QA Agent
Expected inputs
  • Business entities, events, access patterns, volume, latency, retention, and recovery targets
  • Existing schema, queries, migrations, indexes, data standards, or retrieval pipeline context
  • Consistency, transaction, backup, audit, and compliance constraints
  • Optional target deliverable such as ERD, migration plan, glossary, or capacity estimate
Expected outputs
  • External, conceptual, and internal schema documentation
  • Data standards, glossary, capacity estimate, indexing/partitioning plan, and backup/recovery strategy
  • Integrity, transaction, isolation, and concurrency recommendations
  • Vector/RAG-specific embedding, chunking, filtering, reranking, and re-index plans when relevant
Dependencies
  • Existing database schemas, migration files, query logs, workload descriptions, and application access paths
  • 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
  • SQL/NoSQL/vector database tools or project-specific migration toolchains when implementation is requested
Control-flow features
  • Branches by workload type, database model, transaction criticality, scale, retrieval needs, and compliance posture
  • May read schemas and write documentation, migrations, indexes, or query changes
  • Treats vector DBs as retrieval infrastructure, not canonical source-of-truth storage

Structural Flow

Entry
  1. Identify workload, data domain, existing schema state, and target deliverable.
  2. Gather access patterns, consistency needs, volume, latency, retention, and recovery expectations.
  3. Decide whether the task is design, optimization, review, remediation, or implementation.
Scenes
  1. PREPARE: Classify workload and constraints.
  2. ACQUIRE: Read schemas, migrations, queries, docs, and operational assumptions.
  3. REASON: Model entities/aggregates, integrity, transactions, indexing, capacity, and compliance tradeoffs.
  4. ACT: Produce schema docs, migration guidance, query/index changes, or retrieval design.
  5. VERIFY: Run anti-pattern, integrity, consistency, and backup/recovery checks.
  6. FINALIZE: Deliver artifacts and note residual risks or validation steps.
Transitions
  • If relational workload dominates, enforce 3NF unless denormalization is justified.
  • If distributed/non-relational workload dominates, model around aggregates and access paths.
  • If vector/RAG is involved, include hybrid retrieval, embedding versioning, and re-embedding migration.
  • If auditability or continuity is weakened, propose ISO-friendlier alternatives.
Failure and recovery
  • If workload or access patterns are missing, state assumptions and ask for representative queries or flows.
  • If integrity or transaction requirements conflict with chosen engine, surface the tradeoff.
  • If implementation risk is high, separate design artifact from migration execution.
Exit
  • Success: deliverables state model, constraints, integrity, transactions, capacity, and validation.
  • Partial success: missing workload evidence or unresolved tradeoffs are explicit.

Logical Operations

Actions
ActionSSL primitiveEvidence
Classify workload and modelSELECTSQL, NoSQL, vector, cache, search, mixed
Read schema/query evidenceREADMigrations, ERDs, query patterns
Compare design alternativesCOMPAREEngine/model/index tradeoffs
Infer integrity and capacity risksINFERConstraints, transactions, growth assumptions
Validate anti-patternsVALIDATEChecklist and anti-pattern guide
Write schema docs or changesWRITEDeliverables, migrations, query/index changes
Report recommendationNOTIFYFinal database guidance
Tools and instruments
  • Project DB schemas, migrations, query tools, and migration commands
  • Document templates, anti-pattern guide, vector DB guide, and ISO control guide
  • Optional spreadsheet or diagram artifacts when capacity or ERD output is requested
Canonical workflow path

Use the configured code-intelligence provider to locate files and inspect symbols or content. For Serena, use find_file, search_for_pattern, get_symbols_overview, and find_symbol. Native search is limited to the provider exclusions and non-code paths permitted by the project's search policy.

Then run the project's migration, query-plan, or retrieval-quality commands only after identifying the database engine and migration tool.

Resource scope
ScopeResource target
CODEBASESchema, migration, query, ORM, and retrieval files
LOCAL_FSDatabase design artifacts and result documents
PROCESSMigration, query, lint, or validation commands
USER_DATADomain data definitions, retention rules, and sample access patterns
Preconditions
  • Target database concern and scope are identifiable.
  • Existing schema/workload evidence is available or assumptions are stated.
Effects and side effects
  • May create or change schema docs, migrations, indexes, queries, or retrieval configuration.
  • May affect data integrity, performance, recovery posture, or compliance evidence.
  • Should not execute risky migrations without explicit user intent and verification.
Show full SKILL.md (623 more words)Show less
Guardrails

Apply framework, library, architecture, and data-model defaults only when the target project has no established choice. Scoped edits do not authorize a stack migration or unrelated infrastructure.

  1. Choose model first, engine second: workload, access pattern, consistency, and scale drive DB selection.
  2. For relational workloads, enforce at least 3NF by default. Break 3NF only with explicit performance justification.
  3. For distributed/non-relational workloads, model around aggregates and access paths; document BASE and consistency tradeoffs.
  4. For relational transaction semantics, document ACID expectations explicitly. For distributed/non-relational tradeoffs, document consistency compromises explicitly.
  5. For full schema design, document external, conceptual and internal schema views. For a scoped index/query/model change, update only the affected existing views.
  6. Treat integrity as first-class: entity, domain, referential, and business-rule integrity must be explicit.
  7. Concurrency is never implicit: define transaction boundaries, locking strategy, and isolation level per critical flow.
  8. Apply existing data standards; add relevant naming, definition, format and validation rules for newly modeled data.
  9. Update affected existing glossary, decision and capacity artifacts when the change alters their assumptions. A query-only task does not require new modeling documents.
  10. Proactively flag anti-patterns and insecure shortcuts instead of silently implementing them.
  11. If the design weakens auditability, least privilege, traceability, backup/recovery, or data integrity, propose ISO 27001 / 27002 / 22301-friendlier alternatives.
  12. Vector DBs are retrieval infrastructure, not source-of-truth databases. Store embeddings and lightweight metadata there; keep canonical documents elsewhere.
  13. Never treat vector search as a drop-in replacement for lexical search. Default to hybrid retrieval when exact match, compliance filtering, or explainability matters.
  14. Embeddings are schema-like assets: version model, dimension, chunking, and preprocessing, and plan re-embedding migrations explicitly.
  15. Retrieval quality is won at chunking, filtering, reranking, and observability, not only at the vector index layer.
  16. Schema or data changes on live tables follow expand-contract (parallel change): additive expand, dual-write + batched backfill, verified read switch, delayed contract. DDL on hot tables is lock-aware with timeouts; destructive steps ship in a separate deploy after a soak window.
  17. Query tuning starts from measurement and execution plans, never guesswork: measure, explain, nominate the dominant cost node, then optimize and re-measure.
Default Workflow
  1. Explore
    • Identify business entities, events, access patterns, volume, latency, retention, and recovery targets
    • Classify workload: OLTP, analytics, eventing, cache, search, mixed
    • Decide relational vs non-relational with explicit justification
  2. Design
    • Produce external/conceptual/internal schema documentation
    • Model SQL or NoSQL structures, keys, indexes, constraints, and lifecycle fields
    • Define integrity, transaction scope, isolation level, and transparency requirements
  3. Optimize
    • Validate 3NF or deliberate denormalization
    • Tune indexes, partitioning, archival strategy, hot/cold split, and backup plan
    • For vector systems, tune ANN, chunking, filtering, reranking, and observability as one pipeline
    • Run the relevant anti-pattern review and update artifacts whose definitions or capacity assumptions changed
Deliverables by Scope

For full modeling/design requests, use the following as applicable. Scoped tuning or migration work needs the relevant artifact delta, SQL/plan evidence and verification outcome; omit unaffected documents.

  • External schema summary by user/view/consumer
  • Conceptual schema with core entities or aggregates and relationships
  • Internal schema with physical storage, indexes, partitioning, and access paths
  • Data standards table: name, definition, type/format, rule
  • Glossary / terminology dictionary
  • Capacity estimation sheet
  • Backup and recovery strategy including full + incremental backup cadence
  • For vector/RAG systems: embedding version policy, chunking policy, hybrid retrieval strategy, and re-index / re-embedding plan

References

  • Execution steps (follow for the selected task): resources/execution-protocol.md
  • Self-check (run before handoff): resources/checklist.md
  • Examples: resources/examples.md
  • Deliverable templates: resources/document-templates.md
  • Anti-pattern review guide: resources/anti-patterns.md
  • Live migration playbook: resources/migration-playbook.md
  • Query tuning and index design: resources/query-tuning.md
  • Vector DB and RAG guide: resources/vector-db.md
  • ISO control guide: resources/iso-controls.md
  • Error recovery: resources/error-playbook.md
  • Context loading: ../_shared/core/context-loading.md
  • Clarification: ../_shared/core/clarification-protocol.md
  • Context budget: ../_shared/core/context-budget.md
  • Lessons learned: ../_shared/core/lessons-learned.md (matching prior failure or requested retrospective)
  • Observability handoff: ../oma-observability/SKILL.md §Integrations — DB span conventions (N+1, lock-wait, pool), cardinality budgets

© first-fluke, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files in skills/oma-db of first-fluke/oh-my-agent.

  • SKILL.md
  • resources/anti-patterns.md
  • resources/checklist.md
  • resources/document-templates.md
  • resources/error-playbook.md
  • resources/examples.md
  • resources/execution-protocol.md
  • resources/iso-controls.md
  • resources/migration-playbook.md
  • resources/query-tuning.md
  • resources/vector-db.md

Open the folder on GitHubat commit b364119

Used in 1 other repository

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in first-fluke/oh-my-agent, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Oma DB next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Oma DB compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Oma DB this skillfirst-fluke/oh-my-agent1.3k—~3.1kAutomated safety check: PassMIT
Ddia Principlesluoling8192/ai-coding-principles173—~4.7kAutomated safety check: PassMIT
Prisma Expertdavila7/claude-code-templates32k7 repos~2.6kAutomated safety check: PassMIT
Database Architecture InterviewerPrepLabsAI/InterviewMentor112—~2.4kAutomated safety check: PassMIT
MySQL Schema and Query Tuningplanetscale/database-skills7063 repos~1.4kAutomated safety check: PassMIT
Vitess for PlanetScaleplanetscale/database-skills7061 repos~1.2kAutomated safety check: PassMIT

Similar skills

  • Ddia Principles

    luoling8192/ai-coding-principles

    Designing Data-Intensive Applications (DDIA) distilled reference guide by Martin Kleppmann.

    173 GitHub stars~4.7k tokensUpdated 6 mo ago
    DatabasesAuto-check passed
  • Prisma Expert

    davila7/claude-code-templates

    Prisma ORM expert for schema design, migrations, query optimization, relations modeling, and database operations.

    32k GitHub starsUsed in 7 repos~2.6k tokens
    DatabasesAuto-check passed
  • Database Architecture Interviewer

    PrepLabsAI/InterviewMentor

    A Principal Database Engineer interviewer. An agent skill from PrepLabsAI/InterviewMentor.

    112 GitHub stars~2.4k tokensUpdated 2 days ago
    DatabasesAuto-check passed
  • MySQL Schema and Query Tuning

    planetscale/database-skills

    Official

    Guides safe, measurable MySQL and InnoDB changes across schema design, indexing, query tuning, transactions, locking and replication, with rollout steps.

    706 GitHub starsUsed in 3 repos~1.4k tokens
    DatabasesAuto-check passed
  • Vitess for PlanetScale

    planetscale/database-skills

    Official

    Guidance on Vitess sharding, VSchema design, query tuning and connection problems for MySQL-compatible databases running on PlanetScale.

    706 GitHub starsUsed in 1 repo~1.2k tokens
    DatabasesAuto-check passed
  • SPD V1 Batch. An agent skill from flaqai/backlink_skills.

    754 GitHub stars~1.7k tokensUpdated 15 days ago
    DatabasesAuto-check passed

More from first-fluke/oh-my-agent

All 57 skills in this repo
  • OMA Multi-Agent Orchestration

    first-fluke/oh-my-agent

    Decomposes a complex feature into tasks, dispatches parallel specialist agents with durable state, and supervises verification, QA review and retries.

    1.3k GitHub stars~4.1k tokensUpdated today
    Auto-check passed
  • OMA Multi-Agent Orchestrator

    first-fluke/oh-my-agent

    Splits a complex feature into prioritized tasks, spawns specialist CLI subagents in parallel, tracks them through shared memory and verifies each result.

    1.3k GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Architecture Decisions and ADRs

    first-fluke/oh-my-agent

    Evaluates system boundaries and tradeoffs and writes architecture recommendations, option comparisons or ADRs, with a Mermaid diagram when structure changes.

    1.3k GitHub stars~2.6k tokensUpdated today
    Auto-check passed
  • OMA Backend Agent

    first-fluke/oh-my-agent

    Backend specialist for APIs, database work, authentication and migrations that follows clean architecture with router, service and repository layers.

    1.3k GitHub stars~2.4k tokensUpdated today
    Auto-check passed
  • oma Bootstrap

    first-fluke/oh-my-agent

    Installs or checks the oma CLI and its runtimes (bun, uv, serena) in a fresh workspace so that oma-* skills can run their commands.

    1.3k GitHub stars~719 tokensUpdated today
    Auto-check passed
  • Design-First Brainstorm

    first-fluke/oh-my-agent

    Explores intent, constraints and alternative approaches before any planning, working through questions one at a time and saving an approved design for later steps.

    1.3k GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Categories

Questions about Oma DB

What does Oma DB do?

Design schemas and migrations, tune queries, or plan vector retrieval and database operations. Oma DB is an agent skill from first-fluke/oh-my-agent. Design schemas and migrations, tune queries, or plan vector retrieval and database operations.

When should I use Oma DB?

Oma DB fits situations like: tasks that involve Database schema design; tasks that involve Database administration.

How do I install Oma DB in Claude Code?

Run `npx skills add first-fluke/oh-my-agent --skill oma-db -a claude-code`. Or copy the skill folder (skills/oma-db in first-fluke/oh-my-agent) into .claude/skills/oma-db in your project. Claude Code loads it when a task matches its description.

How do I install Oma DB in Codex?

Run `npx skills add first-fluke/oh-my-agent --skill oma-db -a codex`. Or copy the skill folder (skills/oma-db in first-fluke/oh-my-agent) into .agents/skills/oma-db in your project. Codex loads it when a task matches its description.

Can I use Oma DB in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add first-fluke/oh-my-agent --skill oma-db -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/oma-db, .gemini/skills/oma-db, .github/skills/oma-db and .opencode/skills/oma-db in your project.

What does Oma DB need to run?

SKILL.md names no scripts, command-line tools or credentials: Oma DB is instructions for the agent only.

Does Oma DB access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Oma DB safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Oma DB use?

Oma DB is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Oma DB use?

About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Oma DB?

Skills that share tags, products or a category with Oma DB: Ddia Principles (luoling8192/ai-coding-principles, 173 stars), Prisma Expert (davila7/claude-code-templates, 32k stars), Database Architecture Interviewer (PrepLabsAI/InterviewMentor, 112 stars) and MySQL Schema and Query Tuning (planetscale/database-skills, 706 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Oma DB?

first-fluke (a GitHub organization) maintains it in first-fluke/oh-my-agent, which has 1,338 GitHub stars. The repository holds 57 skills in this directory. The repository was last updated on October 9, 2026.

Source: first-fluke/oh-my-agent on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.