Oma Db logo

Oma Db

OrganizationPopular
first-fluke
oma-db

Design schemas and migrations, tune queries, or plan vector retrieval and database operations. Application API implementation uses oma-backend.

Overview

Publisherfirst-fluke
Repositoryoh-my-agent
Skill nameoma-db
Stars
1.3K
Forks
149
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by first-fluke on GitHub. Read the source before you install it.

Installation

Install the Oma Db AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/first-fluke/oh-my-agent.git /tmp/oh-my-agent
mkdir -p .claude/skills
cp -r /tmp/oh-my-agent/skills/oma-db .claude/skills/oma-db
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Oma Db in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Oma Db on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Oma Db is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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

bash
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.

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.

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. Always document the three schema layers: external schema, conceptual schema, internal schema.
  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. Data standards are mandatory: naming, definition, format, allowed values, and validation rules.
  9. Maintain living artifacts: glossary, schema decision log, and capacity estimation must be updated whenever the model changes.
  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 anti-pattern review and update glossary and capacity estimation with every structural change

Required Deliverables

  • 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

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Oma Db AI skill do?

Design schemas and migrations, tune queries, or plan vector retrieval and database operations. Application API implementation uses oma-backend.

Why use Oma Db on TypingMind?

Because you install it once and use it with any model. Oma Db is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Oma Db in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/first-fluke/oh-my-agent/tree/main/skills/oma-db. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Oma Db?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Oma Db?

As many as you like. As long as a model supports skills, you can use Oma Db with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Oma Db AI skill free?

Yes. It is published on GitHub by first-fluke under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇