
oma-db
Design schemas and migrations, tune queries, or plan vector retrieval and database operations. Application API implementation uses oma-backend.
- Installs
- 153
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/gracefullight/stock-checker --skill oma-db- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads oma-db automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
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, andresources/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
- Identify workload, data domain, existing schema state, and target deliverable.
- Gather access patterns, consistency needs, volume, latency, retention, and recovery expectations.
- Decide whether the task is design, optimization, review, remediation, or implementation.
Scenes
- PREPARE: Classify workload and constraints.
- ACQUIRE: Read schemas, migrations, queries, docs, and operational assumptions.
- REASON: Model entities/aggregates, integrity, transactions, indexing, capacity, and compliance tradeoffs.
- ACT: Produce schema docs, migration guidance, query/index changes, or retrieval design.
- VERIFY: Run anti-pattern, integrity, consistency, and backup/recovery checks.
- 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
| 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 |
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
| 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 |
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.
- Choose model first, engine second: workload, access pattern, consistency, and scale drive DB selection.
- For relational workloads, enforce at least 3NF by default. Break 3NF only with explicit performance justification.
- For distributed/non-relational workloads, model around aggregates and access paths; document BASE and consistency tradeoffs.
- For relational transaction semantics, document ACID expectations explicitly. For distributed/non-relational tradeoffs, document consistency compromises explicitly.
- For full schema design, document external, conceptual and internal schema views. For a scoped index/query/model change, update only the affected existing views.
- Treat integrity as first-class: entity, domain, referential, and business-rule integrity must be explicit.
- Concurrency is never implicit: define transaction boundaries, locking strategy, and isolation level per critical flow.
- Apply existing data standards; add relevant naming, definition, format and validation rules for newly modeled data.
- Update affected existing glossary, decision and capacity artifacts when the change alters their assumptions. A query-only task does not require new modeling documents.
- Proactively flag anti-patterns and insecure shortcuts instead of silently implementing them.
- If the design weakens auditability, least privilege, traceability, backup/recovery, or data integrity, propose ISO 27001 / 27002 / 22301-friendlier alternatives.
- Vector DBs are retrieval infrastructure, not source-of-truth databases. Store embeddings and lightweight metadata there; keep canonical documents elsewhere.
- Never treat vector search as a drop-in replacement for lexical search. Default to hybrid retrieval when exact match, compliance filtering, or explainability matters.
- Embeddings are schema-like assets: version model, dimension, chunking, and preprocessing, and plan re-embedding migrations explicitly.
- Retrieval quality is won at chunking, filtering, reranking, and observability, not only at the vector index layer.
- 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.
- Query tuning starts from measurement and execution plans, never guesswork: measure, explain, nominate the dominant cost node, then optimize and re-measure.
Default Workflow
- 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
- 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
- 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
FAQ
What does the oma-db skill do?
Design schemas and migrations, tune queries, or plan vector retrieval and database operations. Application API implementation uses oma-backend.
How do I install oma-db?
Run npx skills add https://github.com/gracefullight/stock-checker --skill oma-db in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/oma-db/ (personal) or .claude/skills/oma-db/ (project).
Which AI agents can use oma-db?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is oma-db safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains oma-db?
It is published by gracefullight in gracefullight/stock-checker. It has 153 recorded installs.
More from gracefullight/stock-checker
stock-analysis
gracefullight/stock-checker
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market cap), and periodic performance reports (daily/weekly/monthly/quarterly/yearly). 8 analysis dimensions for stocks, 3 for crypto. Use for stock analysis, portfolio tracking, earnings reactions, or crypto monitoring.
yahoo-finance
gracefullight/stock-checker
Get stock prices, quotes, fundamentals, earnings, options, dividends, and analyst ratings using Yahoo Finance. Uses yfinance library - no API key required.
trading-analysis
gracefullight/stock-checker
Generate professional investment reports for stocks and ETFs. Use when user requests market analysis, investment reports, stock analysis, or trading recommendations for financial instruments (SPY, AAPL, TSLA, etc.). Creates institutional-grade reports with technical indicators, AI-powered insights, charts, and investment recommendations.
backtesting-trading-strategies
gracefullight/stock-checker
Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".
financial data fetcher
gracefullight/stock-checker
Fetches real-time and historical market data, financial news, and fundamental data for trading decisions
oma-debug
gracefullight/stock-checker
Open the skill to read its SKILL.md instructions.
Popular backend & apis skills
find-skills
vercel-labs/skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. This skill should be used when the user is looking for functionality that might exist as an installable skill.
entra-app-registration
microsoft/azure-skills
Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.
google-agents-cli-adk-code
google/agents-cli
This skill should be used when the user wants to "write agent code", "build an agent with ADK", "add a tool", "create a callback", "define an agent", "use state management" — in a project that needs ADK (Agent Development Kit) API patterns and code examples. It provides a quick reference for agent types, tool definitions, orchestration patterns, callbacks, state management, the graph Workflow API, and reference recipes to study. Do NOT use for scaffolding (use google-agents-cli-scaffold) or deployment (use google-agents-cli-deploy).
embedded-captions
heygen-com/hyperframes
Add captions or subtitles to an existing single-subject talking-head video without editing the footage. Use for plain verbatim captions, cinematic captions embedded behind the subject, VFX captions, “炸/特效/酷炫字幕,” or a named identity from the 35-style catalog. Route by visual identity, not by backend engine. The quiet anchor rail is the default; embed every word only when the user explicitly wants a fully cinematic treatment. The workflow runs locally end to end, including transcription and subject matting; split multi-shot footage before applying it.
entra-agent-id
microsoft/azure-skills
Provision Microsoft Entra Agent Identity Blueprints, BlueprintPrincipals, and per-instance Agent Identities via Microsoft Graph, and configure OAuth 2.0 token exchange (fmipath, OBO, cross-tenant) including the Microsoft Entra SDK for AgentID sidecar. USE FOR: Agent Identity Blueprint, BlueprintPrincipal, agent OAuth, fmipath token exchange, agent OBO, Workload Identity Federation for agents, polyglot agent auth, Microsoft.Identity.Web.AgentIdentities. DO NOT USE FOR: standard Entra app registration (use entra-app-registration), Microsoft Foundry agent authoring (use microsoft-foundry).
neon
neondatabase/agent-skills
Overview of Neon, a complete set of cloud backend primitives around Lakebase Postgres: Auth, Object Storage, Functions, the AI Gateway, and Realtime. Start here to choose Neon for undecided login, files, APIs, and LLM calls, set up the CLI or MCP server, and follow the branch-first workflow. Use when building an app or backend on Neon, or when "Neon" or "Lakebase Postgres" is mentioned. Child skill neon-postgres wins for an existing DATABASEURL, SQL, schema, inspect, or search. Child skill neon-auth wins for login, users, sessions, identity routing, and Managed Better Auth setup. Child skill neon-realtime wins for live queries in reactive apps and agents. Also use for object storage, S3, buckets, serverless functions, function triggers, cron, AI gateway, LLM calls, realtime, logs, Loki, Grafana, observability, postgres, database, backend, Claimable Neon, neon.new, or a no-signup database.