Omh relational db

From rlaope/oh-my-hermes · View interactive version

Omh relational db is an AI agent skill from the GitHub repository 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,

How to use this skill

Skill file

Relational Db

Required: 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. Output: 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.

Why This Exists

relational-db exists because the database work itself had no owner: omh-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

Contract: references/full-contract.md (examples, sibling boundaries, full artifact details).

Workflow Lane

When to Use

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:

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.

Safety rules:

Completion Checklist

Recovery Notes

Runtime Evidence

Preferred harness for this skill: coding-handling.

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.

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. When the requested output is delivered, put any open points inside the result and end with no question or offer; only when the person asked to choose or decide and that choice is still theirs, end with one specific question about it, not a list, a generic offer, or a footer; the shared rail's Reply Language And Host Voice and Turn Ending sections hold the full rule.

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: skill_view(name='omh-routing', file_path='references/skill-common-rail.md'). Load it when applicable; otherwise name an unavailable capability.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.