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.
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-dbRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/rlaope/oh-my-hermes /tmp/oh-my-hermes && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/oh-my-hermes/agent-skills/omh-relational-db ~/.gemini/antigravity-cli/skills/omh-relational-dbAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
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
ANo 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 →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.
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.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
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.
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.
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.
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.
