Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

omh-relational-db

Skill by rlaope

Plans relational database work on engines such as Postgres or MySQL, including slow queries, index sizing, and online migrations. It is for developers who need lock-safe DDL and a rollback before a change ships. It does not connect to any database.

  • Score 79
  • 6.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install omh-relational-db

Built from the published package, never by AI.

git clone --depth 1 https://github.com/rlaope/oh-my-hermes /tmp/oh-my-hermes && mkdir -p ~/.claude/skills && cp -r /tmp/oh-my-hermes/skills/omh-relational-db ~/.claude/skills/omh-relational-db

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install omh-relational-db in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This Hermes workflow skill helps plan database changes on a relational store. It covers slow queries and the index that fixes them, online migrations on large tables, DDL that takes a lock during deploy, N+1 queries from an endpoint, and when to partition or shard. The output is a plan and the checks that prove it safe to run.

The skill asks for the engine, version, and table sizes before proposing any statement. Each migration step must state its lock behaviour and its rollback, and a readiness verdict is only ready when no step lacks them. Indexes must cite an observed query plan or be marked unverified. OMH never connects to a database, so the user supplies observed plans and output. It is aimed at developers and database owners working on Postgres or MySQL.

Written from the project's SKILL.md and checked against it.

What it can do

  • Query plan reviewUses an observed EXPLAIN plan to decide whether an index is justified.
  • Index proposalGives columns, index type, estimated size, write cost, and a non-blocking build method.
  • Online migration planOrders steps as expand, batched backfill, switch, and contract, each with lock mode and rollback.
  • Migration readiness verdictMarks a migration ready only when every step states lock behaviour and a rollback.
  • N+1 query findingFlags endpoints that issue per-row queries and records the finding.
  • Capacity projectionProjects rows, bytes, and write rate against single-node limits before recommending partitioning or sharding.
  • Concurrency guidanceCovers isolation level, row lock order, and retry error codes for read-modify-write and queue tables.

What you need

  • Database engine and version
  • Table sizes in rows and bytes, plus write rate
  • Observed query plan such as EXPLAIN (ANALYZE, BUFFERS)
  • Migration statements, deploy mechanism, and longest tolerated lock

Try asking

  • Write an online migration plan for a 200M row table in Postgres
  • Check whether this index is justified using my EXPLAIN ANALYZE output
  • Review this ALTER TABLE for lock behaviour and rollback before deploy

Good to know

  • OMH never connects to a database and does not run or apply statements.
  • Readiness is not granted while any migration step lacks lock behaviour or rollback.
  • Index proposals without an observed query plan are marked unverified.
  • Lock behaviour depends on engine and version, so the engine must be stated first.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/omh-relational-db/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to omh-relational-db

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

omh-relational-db: common questions

Does this skill run migrations against my database?

No. The source says OMH never connects to a database and only records plans, row counts, and applied statements it observed from the user or an operator.

Which databases does it cover?

The source names Postgres and MySQL as examples of relational engines. It says lock behaviour differs by engine and version, so the engine must be stated first.

When will it say a migration is ready?

Only when every migration step states its lock behaviour and a rollback. Otherwise the verdict names the steps that lack them.

How do I install omh-relational-db?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is omh-relational-db free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is omh-relational-db safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to omh-relational-db?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

omh-relational-db Install

Add to stack

Loading.