본문으로 건너뛰기
cccskills
무료GitHub에 공개

omh-relational-db

Plan relational database improvements for slow queries, indexes, and large table migrations. Document locks, which can block other database operations, alongside rollback steps and verification checks, using the database engine, version, size, and observed query plans.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

원문원문 설명 보기

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

연동 도구PostgreSQLMySQL
설치 방법 보기

이럴 때 유용합니다

  • Plan a migration for a large table with rollback steps
  • Evaluate indexes using observed query plans
  • Review database locks caused by deployment changes
  • Assess repeated per-row queries and database capacity

포함된 파일(2)

  • SKILL.md9.3 KB
  • references/engine-lock-tables.md4.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

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 omh-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 ulw-perf.
  • The request is analysis of the data itself -- trends, metrics, a report; use omh-data-analysis.
  • The request is watching a release roll out with its health signals and rollback criteria; use omh-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: skill_view(name='omh-routing', file_path='references/skill-common-rail.md').

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:

  • 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

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.

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 real unresolved user decision or a useful briefing discussion remains, offer one specific, content-linked question. Completed work needs no question; omit unrelated non-action footers and generic offers to continue.

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

dag-ulw

무료

Coordinate a large job by splitting it into small tasks with explicit dependencies. Run ready tasks in parallel through Hermes, verify the combined result separately, and repair failures within defined limits before reporting completed work and remaining gaps.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Delivering a feature across multiple modules
  • Coordinating a migration with ordered steps
  • Managing a broad cleanup across separate work areas
rlaope/oh-my-hermes3.6천2026년 10월 23일 업데이트

Guide the addition of a new model generation to oh-my-hermes. The workflow checks model recognition, official specifications, routing rules that select models for tasks, documented pricing, and live access, then validates changes with tests and comparative benchmarks.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Add a new model generation to oh-my-hermes
  • Check API model IDs and dated snapshot recognition
  • Update model selection chains and related documentation
rlaope/oh-my-hermes3.6천2026년 10월 23일 업데이트

Prepare an accessibility audit for an interface using WCAG 2.2 AA, an accessibility standard. Organize evidence for keyboard use, screen readers, contrast, target size, and zoom behavior, then document findings, missing checks, and remediation handoffs.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing checkout accessibility against WCAG 2.2 AA
  • Checking keyboard access and focus order
  • Organizing screen-reader labels and announcement evidence
rlaope/oh-my-hermes3.6천2026년 10월 23일 업데이트

Summarize earned badges, recent unlocks, achievement tiers, and progress using local files from the hermes-achievements plugin. Prepare a badge list or report section while making missing information and the limits of the recorded snapshot clear.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Checking earned badges
  • Reviewing recently unlocked achievements
  • Finding progress toward the next achievement tier
rlaope/oh-my-hermes3.6천2026년 10월 23일 업데이트

Examine a technical proposal through independent perspectives, challenge their findings, and resolve objections. The result is a structured set of constraints, decisions, risks, and open questions for a separate planning workflow.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Reviewing a technical proposal before planning
  • Challenging assumptions behind a migration
  • Organizing risks and unresolved questions
rlaope/oh-my-hermes3.6천2026년 10월 23일 업데이트

Coordinate multiple Hermes agents or profiles through a shared task board. Organize assignments, handoffs, activity updates, blockers, and completion states, while distinguishing planned actions from work supported by observed results.

한국어 요약은 준비 중입니다. 영어 요약을 표시하고 있습니다.

  • Coordinate agent roles for a launch checklist
  • Track task handoffs and blockers
  • Prepare work for pickup across profiles or after a restart
rlaope/oh-my-hermes3.6천2026년 10월 23일 업데이트

rlaope의 스킬 모두 보기

이 스킬의 문제 신고