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 database work on a relational store such as Postgres or MySQL. It covers slow queries, index sizing, lock-safe migrations and N+1 queries, and is aimed at developers who need changes checked before they run.

  • Score 80
  • 6.1k 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/agent-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

The omh-relational-db skill plans database work on a relational engine such as Postgres or MySQL. It covers slow queries and the index that fixes them, online migrations on large tables, DDL that takes a lock during deploy, and N+1 queries from an endpoint. It is part of the OMH workflow set and is projected for Agent Skills hosts.

The skill asks for the engine, version, and table sizes first, and it requires observed query plans before proposing an index. Each migration step must state its lock behaviour and its rollback before the plan can be called ready. OMH never connects to a database, so the output is a plan and the checks that prove it safe. It is aimed at developers and database owners who need lock-safe changes.

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

What it can do

  • Query plan reviewAsks for the observed plan and latency before suggesting any index or query change.
  • Index proposalsSizes an index, names its columns and type, and gives a non-blocking build method.
  • Online migration plansOrders expand, batched backfill, switch and contract steps, each with its lock and rollback.
  • Migration readiness verdictMarks a migration ready only when every step states its lock behaviour and rollback.
  • N+1 query findingsIdentifies endpoints that issue per-row queries and records them as a finding.
  • Capacity projectionProjects rows, bytes and write rate against a single-node limit before recommending partitioning or sharding.

What you need

  • An Agent Skills host such as Claude Code, Codex, Cursor, opencode, OpenClaw or pi
  • The database engine name and version
  • Table sizes in rows and bytes, and the write rate
  • Observed query plans, such as EXPLAIN ANALYZE output

Try asking

  • Write an online migration plan for adding a column to a 200M row table
  • Size a new index for this slow query and say if the plan is unverified
  • Check this endpoint for N+1 queries and list the per-row calls

Good to know

  • OMH never connects to a database and does not run or apply statements
  • Index proposals without an observed plan are marked unverified
  • A migration plan cannot be ready while any step lacks lock behaviour or rollback

Security check

A

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

Checked automatically: agent-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, so the output is a plan and the checks to run.

When should I use this skill instead of omh-backend?

Use omh-backend when the request is a service or API change whose storage part is one section of the contract. Use omh-relational-db for the database work itself.

Which database engines does it cover?

The source names relational engines such as Postgres and MySQL, and says lock behaviour differs by engine and version.

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