omh-relational-db
यह क्या करती है
यह स्किल रिलेशनल डेटाबेस में बदलावों की योजना बनाती है, जैसे इंडेक्स जोड़ना या बड़ी टेबल माइग्रेट करना। यह डेवलपर और डेटाबेस एडमिन के लिए है जो ऐसे बदलाव चाहते हैं जो लाइव सिस्टम को लॉक या तोड़ें नहीं।
कब इस्तेमाल करें
- ✓जब कोई डेटाबेस क्वेरी धीमी हो और आप जानना चाहें कि कौन सा इंडेक्स मदद कर सकता है।
- ✓जब आपको बहुत बड़ी टेबल बदलनी हो और डाउनटाइम न हो।
- ✓जब आपको डर हो कि डिप्लॉय के दौरान डेटाबेस माइग्रेशन टेबल लॉक कर देगा।
Skill का लिंक
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-relational-db/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“200 मिलियन पंक्तियों वाली टेबल के लिए ऑनलाइन माइग्रेशन योजना लिखिए, ताकि उपयोगकर्ताओं को लॉक किए बिना उसे बदला जा सके।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट डेटाबेस का प्रकार, वर्शन और टेबल का आकार पूछता है, फिर हर कदम की योजना उसके लॉक व्यवहार और रोलबैक के साथ बनाता है। जब तक ये बातें साफ़ न हों, वह माइग्रेशन को तैयार नहीं मानता।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Relational Db
This is an OMH relational-db workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
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.
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
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.mdfor 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.
- For a read-modify-write, an upsert, a queue table, or a deadlock, use the concurrency section of the lock tables: name the isolation level, the row lock and its order, and which error codes retry the whole transaction.
- Give non-transactional DDL such as
CREATE INDEX CONCURRENTLYits own migration marked non-transactional; never dropCONCURRENTLYto satisfy the migration tool. - Keep planned, observed, and applied as separate states for every statement.
Required inputs:
अक्सर पूछे जाने वाले सवाल
कौन से डेटाबेस सपोर्ट होते हैं?
स्किल पूछती है कि आप कौन सा डेटाबेस इस्तेमाल करते हैं, ताकि योजना उसी इंजन और वर्शन के अनुसार हो।
क्या यह मेरे लिए माइग्रेशन चलाएगी?
नहीं। यह योजना और जाँच तैयार करती है, बदलाव आप या आपकी टीम चलाती है।
यहाँ रोलबैक का क्या मतलब है?
इसका मतलब है हर कदम को वापस लेने का साफ़ तरीका, अगर कुछ गलत हो जाए।
जानकारी
लेखक का मूल विवरण
[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.
repo: rlaope/oh-my-hermes
लोकप्रियता
- GitHub स्टार
- 5.1k
- रैंकिंग में स्थान
- #15150
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
omh-accessibility-audit
5.1kयह आपके एजेंट को किसी स्क्रीन या फ़्लो में एक्सेसिबिलिटी की कमियाँ जाँचने में मदद करती है, जैसे कीबोर्ड उपयोग, स्क्रीन रीडर लेबल, कंट्रास्ट और टच टारगेट का आकार।
omh-adversarial-consensus
5.1kयह आपके एजेंट को किसी तकनीकी प्रस्ताव पर प्रतिबद्ध होने से पहले उस पर कई स्वतंत्र नज़रियों से हमला करवाने देती है, फिर देखती है कि क्या बचता है।
omh-agent-debug
5.1kयह आपके एजेंट को पता लगाने में मदद करती है कि कोई दूसरा AI एजेंट क्यों अटका है, लूप में है या भटक रहा है, और सबसे छोटा सुरक्षित सुधार सुझाती है।
omh-agent-instructions
5.1kयह आपके एजेंट को वह निर्देश फ़ाइल लिखने या अपडेट करने में मदद करती है, जैसे AGENTS.md या CLAUDE.md, जो बताती है कि AI टूल किसी प्रोजेक्ट में कैसे काम करें।
मिलती-जुलती skills
discrawl
394kयह आपके एजेंट को Discord संदेशों के सेव किए गए स्थानीय आर्काइव में खोजने, उसका सारांश बनाने और उसकी ताज़गी जांचने में मदद करती है।
clickhouse-io
280kआपके एजेंट को ClickHouse databases में queries और schemas optimize करने में मदद करता है। high-performance analytical workloads के लिए best practices लागू करता है। जब analytical queries बहुत धीमी हों, तब इसका उपयोग करें।
scientific-db-pubmed-database
280kआपके एजेंट को बायोमेडिकल क्षेत्र के वैज्ञानिक लेख खोजने में मदद करता है। जिस रिसर्च में खास मेडिकल जानकारी चाहिए, उसके लिए यह काम का है।