Agent skill

Omh Relational DB

by rlaope in rlaope/oh-my-hermes

[omh] Database work on a relational store -- a slow query, an index to size, a migration on a big table, a lock taken during deploy, N+1 queries: plan it with the checks that prove it safe, and…

MITAuto-check passedDevOps & Cloud

Install Omh Relational DB

skills CLI
$ npx skills add rlaope/oh-my-hermes --skill omh-relational-db -a claude-code

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

GitHub CLI
$ gh skill install rlaope/oh-my-hermes omh-relational-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/rlaope/oh-my-hermes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/omh-relational-db .claude/skills/omh-relational-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
omh-relational-db
GitHub stars
3.2k
Token cost
~2.3k tokens
SKILL.md length
1,212 words
Files
2 (incl. references)
Skills in repo
143
Repo updated
First seen
Licence
MIT

At a glance

[omh] Database work on a relational store -- a slow query, an index to size, a migration on a big table, a lock taken during deploy, N+1 queries: plan it with the checks that prove it safe, and…

  • The user says: relational-db
  • SKILL.md covers Why This Exists, First Steps, Do Not Use When and Examples, plus 6 more sections
  • Calls mysql
  • Relational database

What it does

Omh Relational DB is an agent skill from rlaope/oh-my-hermes. [omh] Database work on a relational store -- a slow query, an index to size, a migration on a big table, a lock taken during deploy, N+1 queries: plan it with the checks that prove it safe, and never call a migration ready without its lock behaviour and rollback. Use when the user says: relational-db, relational database, online migration, migration for a large table, lock-safe ddl, alter table, took a lock, table lock.

Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/engine-lock-tables.md`).

It sits in DevOps & Cloud, covering Query optimization. The repository describes itself as: All in one plugin for Hermes Agent ⚚ the coding intelligence, a long-term memory system and model optimized workflow packages. The licence is MIT.

When your agent uses it

  • The user says: relational-db
  • Relational database
  • Online migration
  • Migration for a large table

Example prompts

  • “/omh-relational-db”

What it can do on your machine

Read from SKILL.md and the folder at commit 7cd0d02. 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

    Shell commands in SKILL.md call:

    • mysql

    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

Omh Relational DB loads about 2.3k tokens when it runs, and up to ~3.6k if it reads all its reference files. Until then it costs about 110 tokens; SKILL.md has 1,212 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~110
When it runs · the whole SKILL.md, loaded when a task matches
~2.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.6k

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 rlaope/oh-my-hermes at commit 7cd0d02, republished under its MIT licence (© rlaope). 1,212 words, ~2,297 tokens.

Download SKILL.mdSave it as .claude/skills/omh-relational-db/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
omh-relational-db
description
[omh] Database work on a relational store -- a slow query, an index to size, a migration on a big table, a lock taken during deploy, N+1 queries: plan it with the checks that prove it safe, and never call a migration ready without its lock behaviour and rollback. Use when the user says: relational-db, relational database, online migration, migration for a large table, lock-safe ddl, alter table, took a lock, table lock.

Relational Db

This is a Hermes-native relational-db workflow skill.

Why This Exists

relational-db exists because the database work itself had no owner: backend owns schema_migration_plan/v1 for a service change, and an index question, a lock taken during deploy, or an N+1 finding was answered by a data, deploy, or interview lane with no lock model at all.

First Steps

  • Ask for the engine, the version, and the table sizes before proposing any statement.
  • For a migration, give every step its lock behaviour and its rollback before calling the plan ready.

Do Not Use When

  • The request is a service or API change whose storage part is one section of the contract; use backend, which owns schema_migration_plan/v1.
  • The request is an end-to-end performance goal across the whole system rather than one database; use ultraperf.
  • The request is analysis of the data itself -- trends, metrics, a report; use data-analysis.
  • The request is watching a release roll out with its health signals and rollback criteria; use deploy-and-monitor.

Examples

Good example:

  • Prompt: write an online migration for a 200M row table
  • Expected behavior: Ask for the engine and version, then prepare online_migration_plan/v1: expand, batched backfill, switch, and contract, each step with the lock it takes, its lock_timeout, and its rollback, and a readiness verdict.
  • Why: At 200M rows the lock each statement takes decides whether the deploy is an outage.

Bad example:

  • Prompt: just add the index, it will be fine
  • Expected behavior: Size the index, cite the plan it changes, build it with the non-blocking method, and name what is unverified.
  • Why: An index built with a blocking statement on a large table locks writes for the whole build.

Completion Checklist

  • Engine, version, and table sizes are stated.
  • Every proposed index cites an observed plan or is marked unverified.
  • Every migration step states its lock mode, its duration bound, and its rollback.
  • The readiness verdict is ready only when no step lacks lock behaviour or rollback.
  • Nothing was connected to, run, or applied by OMH.

Recovery Notes

  • If the engine or version is unknown, plan for the most restrictive lock behaviour and say so.
  • If no query plan is available, ask for the observed plan before proposing an index, and mark any proposal unverified.

Workflow Lane

  • Current lane: Coding handoff (idea-to-deploy, llm-app-dev, cto-loop, deploy-and-monitor, code-review, build-failure-triage, verification-gate, security-safety-review, +28 more) - coding owners, handoffs, review, CI, and merge evidence.
  • If intent belongs to another lane, hand back to oh-my-hermes or name the adjacent workflow.
  • Shared product, routing, compatibility, and evidence rules: omh-routing/references/skill-common-rail.md.

Use When

Use when the work is the database itself on a relational engine such as Postgres or MySQL: a slow query and the index that fixes it, an online migration on a large table, DDL that took or would take a lock during deploy, N+1 queries from an endpoint, or when to partition or shard. The output is a plan plus the checks that prove it safe to run; OMH never connects to a database.

Strong routing signals: `relational-db`, `relational database`, `online migration`, `migration for a large table`, `lock-safe ddl`, `alter table`, `took a lock`, `table lock`, `lock during deploy`, `create index concurrently`, `which index`, `what index`, `missing index`, `index size`, `seq scan`, `seq-scans`, `sequential scan`, `explain analyze`, `query plan`, `n+1`, `n+1 query`, `n+1 queries`, `need to shard`, `shard the database`, `database sharding`, `table partitioning`, `partition the table`, `index bloat`, `postgres lock`, `mysql online ddl`

Catalog Metadata

Category: planning Phase: relational-db Hermes role: planner Quality tier: db-lock-and-rollback-gated Reasoning demand: standard

Quality bar:

  • State the engine and version first; lock behaviour differs by engine and by version.
  • Load references/engine-lock-tables.md for the per-engine lock modes, the online DDL rules, and index-type selection instead of recalling them.
  • Size an index before proposing it: rows, key width, and the write amplification it adds.
  • Order an online migration as expand, backfill in batches, switch, contract, with the rollback for each step.
  • Keep planned, observed, and applied as separate states for every statement.

Handoff policy:

Keep the problem statement, the index proposal, the migration plan with its lock behaviour and rollback, and the readiness verdict in Hermes. Query plans, row counts, lock waits, and every applied statement are recorded only from executor, operator, or wrapper observed output; OMH never connects to a database.

Required inputs:

  • engine and version, and whether it is managed or self-hosted
  • the table sizes involved, in rows and bytes, and the write rate
  • the query, its observed plan (EXPLAIN (ANALYZE, BUFFERS) or the engine's equivalent), and its latency
  • for a migration: the statements, the deploy mechanism, and the longest lock the service tolerates
  • observed evidence for any readiness or completion claim
Show full SKILL.md (444 more words)Show less

Expected outputs:

  • db_problem_statement/v1
  • query_plan_evidence/v1 when a query is involved
  • index_proposal/v1 when an index is proposed
  • online_migration_plan/v1 when a table changes shape
  • n_plus_one_finding/v1 when an endpoint issues per-row queries
  • capacity_projection/v1 when partitioning or sharding is asked
  • migration_readiness_verdict/v1

Artifact expectations:

  • db_problem_statement/v1 names the engine, the version, the table sizes, and the observed symptom separately from the suspected cause
  • index_proposal/v1 gives the columns in order, the index type, the estimated size, the write cost, and the non-blocking build method
  • online_migration_plan/v1 gives every step its statement, the lock mode it takes and for how long, the lock_timeout guarding it, the backfill batch size, and its rollback
  • migration_readiness_verdict/v1 reads ready only when every step states lock behaviour and a rollback; otherwise it names the steps that do not
  • capacity_projection/v1 projects rows, bytes, and write rate against the single-node limit before recommending a partition or a shard

Safety rules:

  • A migration plan cannot be ready while any step lacks a stated lock behaviour or a rollback; migration_readiness_verdict/v1 names each such step instead.
  • Never recommend an index from a guess: cite the observed plan it changes, or mark the proposal unverified until the plan is observed.
  • Build indexes on live tables with the engine's non-blocking method (CREATE INDEX CONCURRENTLY, online DDL LOCK=NONE), and state what that method cannot do.
  • OMH never connects to a database, and does not claim a plan, a row count, a lock wait, or an applied migration it did not observe.
  • Never put connection strings, credentials, or customer rows into the plan or the handoff.

Runtime Evidence

Preferred harness for this skill: coding-handling.

sh
omh runtime record --skill relational-db --harness coding-handling --status started

Record observed delegation results; otherwise return not_available or not_observed. Prepared OMH routing is not execution, review, CI, merge-readiness, or merge evidence.

  • Treat wrapper memory/context summaries as advisory local context, not proof of opaque Hermes memory reads or changes. Preserve workflow intent and stop conditions; verify before claiming completion. Reply in the user's own words and the host's own voice: its SOUL.md persona owns reply language, tone, speech level, and sentence endings, progress updates included (where it sets no language, use the one the user wrote in), and OMH shapes structure and content only; OMH's record terms (surface, lane, wrapper, handoff, evidence boundary, not_observed) stay in records and tool calls, never in the sentence the user reads unless they ask about one; and when a stop condition or a decision the user owns ends the turn, offer the next action as a question rather than declaring what will not be done.

Use Hermes-native subagent/delegation features when available: native subagents -> Hermes delegation when available, otherwise sequential lanes.

Shared product, compatibility, topology, memory, harness, and execution rules: omh-routing/references/skill-common-rail.md. Load it when applicable; otherwise name an unavailable capability.

© rlaope, 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 1 other file (references) in skills/omh-relational-db of rlaope/oh-my-hermes.

  • SKILL.md
  • references/engine-lock-tables.md

Open the folder on GitHubat commit 7cd0d02

Compare with similar skills

Omh Relational 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.

Omh Relational DB compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Omh Relational DB this skillrlaope/oh-my-hermes3.2k—~2.3kAutomated safety check: PassMIT
Cloudflare Workers Otel Utelsmizchi/skills360—~1.4kAutomated safety check: NotesNone
Database Observabilitygrafana/skills282—~1.1kAutomated safety check: PassApache-2.0
Database ObservabilityKilo-Org/kilo-marketplace190—~1.4kAutomated safety check: PassApache-2.0
DB Ops SopOpenDCAI/DataMind451—~388Automated safety check: PassApache-2.0
Dt Platform CostsDynatrace/dynatrace-for-ai163—~5.7kAutomated safety check: PassApache-2.0

Similar skills

  • Cloudflare Worker telemetry at the fetch boundary — OTLP traces / metrics / logs + utels error tracking + D1 Proxy that emits slow-query warnings.

    360 GitHub stars~1.4k tokensUpdated 9 days ago
    DevOps & CloudAuto-check: notes
  • Official

    Set up Grafana Cloud Database Observability for MySQL and PostgreSQL — enables pgstatstatements / Performance Schema, creates a least-privilege monitoring user, configures the…

    282 GitHub stars~1.1k tokensUpdated 2 days ago
    DevOps & CloudAuto-check passed
  • Database Observability

    Kilo-Org/kilo-marketplace

    Grafana Cloud Database Observability — query-level performance insights for MySQL and PostgreSQL.

    190 GitHub stars~1.4k tokensUpdated 12 days ago
    DevOps & CloudAuto-check passed
  • DB Ops Sop

    OpenDCAI/DataMind

    Database operations runbook — backup, recovery, performance tuning, troubleshooting.

    451 GitHub stars~388 tokensUpdated 21 days ago
    DatabasesAuto-check passed
  • Dt Platform Costs

    Dynatrace/dynatrace-for-ai

    Query and analyze a Dynatrace tenant's ACTUAL billing and usage data with DQL against dt.system.events — DPS consumption breakdown, cost-normalized spend ranking, included volume deduction…

    163 GitHub stars~5.7k tokensUpdated 9 days ago
    DatabasesAuto-check passed
  • Incident Response

    chmonitor/chmonitor

    Structured triage recipes for common ClickHouse incidents: disk, errors, replication, mutations, cluster health, and slow queries.

    300 GitHub stars~3.4k tokensUpdated 5 days ago
    DatabasesAuto-check passed

More from rlaope/oh-my-hermes

All 143 skills in this repo
  • Omh Accessibility Audit

    rlaope/oh-my-hermes

    [omh] Screen-reader or keyboard accessibility gaps: prepare WCAG, keyboard, focus, screen-reader, target-size, and reflow evidence gates for UI surfaces.

    3.3k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Omh Agent Debug

    rlaope/oh-my-hermes

    [omh] Agent is stuck, looping, or drifting: capture a stuck, looping, drifting, or repeatedly failing agent run, diagnose the likely failure pattern, and prepare the smallest safe recovery action.

    3.3k GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Omh Agent Evaluation

    rlaope/oh-my-hermes

    [omh] Choosing between coding agents on evidence: compare executor or agent choices on reproducible tasks using quality, cost, time, tool, and evidence metrics.

    3.3k GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Omh Agent Instructions

    rlaope/oh-my-hermes

    [omh] Agent instruction file for a repo -- AGENTS.md, CLAUDE.md, a Cursor rule: write or update what an agent cannot derive from the code, inside a marked region, with every command verified or…

    3.3k GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Omh Agent Ops Review

    rlaope/oh-my-hermes

    [omh] AI agent progress for managers: help managers inspect AI-agent progress, blockers, quality gates, and throughput levers.

    3.3k GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Omh AI Slop Cleaner

    rlaope/oh-my-hermes

    [omh] Messy or AI-generated code to clean up: delete AI-generated slop, dead code, and duplication while observable behavior stays identical.

    3.3k GitHub stars~2.7k tokensUpdated today
    Auto-check passed

Questions about Omh Relational DB

What does Omh Relational DB do?

[omh] Database work on a relational store -- a slow query, an index to size, a migration on a big table, a lock taken during deploy, N+1 queries: plan it with the checks that prove it safe, and…. Omh Relational DB is an agent skill from rlaope/oh-my-hermes. [omh] Database work on a relational store -- a slow query, an index to size, a migration on a big table, a lock taken during deploy, N+1 queries: plan it with the checks that prove it safe, and never call a migration ready without its lock behaviour and rollback.

When should I use Omh Relational DB?

Omh Relational DB fits situations like: the user says: relational-db; relational database; online migration; migration for a large table.

How do I install Omh Relational DB in Claude Code?

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

How do I install Omh Relational DB in Codex?

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

Can I use Omh Relational 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 rlaope/oh-my-hermes --skill omh-relational-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/omh-relational-db, .gemini/skills/omh-relational-db, .github/skills/omh-relational-db and .opencode/skills/omh-relational-db in your project.

What does Omh Relational DB need to run?

Going by SKILL.md and its folder, Omh Relational DB needs the command-line tools its instructions call (mysql).

Does Omh Relational 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 Omh Relational 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 Omh Relational DB use?

Omh Relational 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 Omh Relational DB use?

About 2.3k tokens (SKILL.md is roughly 9.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.3k tokens, read only when the agent opens those files.

What are the alternatives to Omh Relational DB?

Skills that share tags, products or a category with Omh Relational DB: Cloudflare Workers Otel Utels (mizchi/skills, 360 stars), Database Observability (grafana/skills, 282 stars), Database Observability (Kilo-Org/kilo-marketplace, 190 stars) and DB Ops Sop (OpenDCAI/DataMind, 451 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Omh Relational DB?

rlaope (a GitHub user) maintains it in rlaope/oh-my-hermes, which has 3,243 GitHub stars. The repository holds 143 skills in this directory. The repository was last updated on October 10, 2026.

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