omh-agent-instructions
ما الذي تفعله
يكتب أجزاء ملف التعليمات التي لا يستطيع الوكيل استنتاجها من الكود، مثل أوامر البناء والمزالق الشائعة، ويتحقق من كل أمر. وهي مخصصة للمطورين الذين يريدون لأدوات الذكاء الاصطناعي أن تعمل جيدا في المستودع.
متى تستخدمها
- ✓عندما تريد إنشاء ملف AGENTS.md أو CLAUDE.md لمشروعك.
- ✓عندما يكون ملف تعليمات الوكيل قديما أو ينقصه أوامر أساسية.
- ✓عندما تريد ملف قاعدة لـ Cursor أو تعليمات Copilot لمستودع.
رابط المهارة
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-agent-instructions/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حدّث ملف CLAUDE.md الخاص بنا بأوامر البناء والاختبار، بعد التحقق من أن كل أمر يعمل فعلا.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يجرد وكيلك ملفات التعليمات، ويتحقق من كل أمر أو يعلّمه بأنه غير مؤكد، ثم يكتب داخل قسم محدد بعلامات فقط. ويتجنب الأعداد وأرقام الأسطر التي تصبح قديمة مع الوقت.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Agent Instructions
This is an OMH agent-instructions workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
agent-instructions exists because the file every handoff target reads first had no owner: rules-distill extracts rule candidates, codebase-onboarding builds a human reading path, and context aligns terminology, and each reads that file without writing it.
First Steps
- List every instruction file and which agent reads it before proposing a section.
- Run or ask for the observed run of each command before marking it verified.
Do Not Use When
- The ask is distilling repeated lessons into reviewed rule candidates; use
omh-rules-distill. - The ask is a reading path through the codebase for a new engineer; use
omh-codebase-onboarding. - The ask is project terminology alignment -- reviewing the terms this project uses and correcting inconsistent vocabulary; use
ulw-context. - The ask is user-facing product documentation; use
omh-docs.
Examples
Good example:
- Prompt: update our CLAUDE.md
- Expected behavior: Inventory the instruction files, run or collect each build and test command, mark each verified or unverified, and replace only the marked region with the commands, the generated-file map, the gates, and the costed pitfalls, refusing any count or line number.
- Why: An instruction file that states an unrun command or a stale count sends every later agent the wrong way.
Bad example:
- Prompt: add that the suite has 4,100 tests and the router is at line 212 of chat.py
- Expected behavior: Refuse both values, and write the command that counts the tests and the symbol that locates the router instead.
- Why: Both numbers were already wrong by the next merge.
Completion Checklist
- Every instruction file and its reader are listed.
- Every command is marked verified with an observed run, or unverified.
- Only the marked region changed, and hand-written text is byte-for-byte.
- No count, line number, or value the code already states was written.
- Every generated file names its source, its regenerate command, and its gate.
Recovery Notes
- If a command cannot be run here, write it marked unverified with what would verify it.
- If the file has no markers, insert them once around the new section and leave everything else untouched.
When to Use
Use when the repository's agent instruction file is being written or kept current: AGENTS.md, CLAUDE.md, GEMINI.md, a Cursor rule, or a Copilot instructions file. The output is the build and test commands each marked verified or unverified, the generated-file map with its regenerate command and gate, the byte-exact gates, and the pitfalls that cost time, written inside a marker-delimited region so hand-written sections survive.
Strong routing signals: `agent-instructions`, `agents.md`, `claude.md`, `gemini.md`, `copilot-instructions.md`, `.cursorrules`, `cursor rules`, `cursor rule`, `agent instruction file`, `agent instructions file`, `instructions file for agents`, `set up agents.md`, `update our claude.md`, `write an agents.md`
Catalog Metadata
Category: planning
Phase: agent-instructions
Quality tier: verified-command-and-region-gated
Reasoning demand: standard
Quality bar:
- Inventory every instruction file first and respect closest-file-wins nesting.
- Load
references/instruction-file-method.mdfor the section order, the marker convention, the verified and unverified command form, and the drift rules instead of recalling them. - Record each pitfall with what it cost, so a reader can tell a scar from a preference.
- Pair every generated file with its source, its regenerate command, and the gate that checks it.
- Keep prepared, verified, and written as separate states for every command and section.
Required inputs:
- which instruction files exist, where they sit, and which agents read them
- the build, test, lint, and regenerate commands the repository uses
- which files are generated, from what source, and which gate checks them
- the pitfalls that have cost time, each with what it cost
- observed output for every command written into the file
Expected outputs:
- instruction_file_inventory/v1
- command_verification_record/v1
- instruction_region_update/v1
- drift_refusal_note/v1 when a requested line would record a count or a line number
Artifact expectations:
- instruction_file_inventory/v1 lists every instruction file, its pat
الأسئلة الشائعة
هل تحتفظ المهارة بأرقام مثل عدد الملفات داخل الملف؟
لا. ترفض المهارة الأعداد وأرقام الأسطر التي تتغير مع الوقت.
هل يُسمح بأوامر غير مؤكدة؟
نعم، لكن يجب وضع علامة عليها بأنها غير مؤكدة، لا تقديمها كأوامر مختبرة.
أي الأدوات تغطيها؟
ملفات التعليمات مثل AGENTS.md وCLAUDE.md وgemini.md وتعليمات Copilot وقواعد Cursor.
التفاصيل
الوصف الأصلي من المؤلف
[omh] Agent instruction file for a repo -- AGENTS.md, CLAUDE.md, a Cursor rule: write or update what an agent cannot derive from the code, inside a marked region, with every command verified or marked unverified and no counts that drift. Use when the user says: agent-instructions, agents.md, claude.md, gemini.md, copilot-instructions.md, .cursorrules, cursor rules, cursor rule.
repo: rlaope/oh-my-hermes
الشعبية
- نجوم GitHub
- 5.1k
- الترتيب
- #15070
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
omh-accessibility-audit
5.1kيساعد وكيلك على فحص شاشة أو تدفق بحثا عن ثغرات إمكانية الوصول، مثل استخدام لوحة المفاتيح وتسميات قارئ الشاشة والتباين وحجم منطقة اللمس.
omh-adversarial-consensus
5.1kيساعد وكيلك على مهاجمة مقترح تقني من عدة زوايا مستقلة قبل أن تلتزم به، ثم يلخص ما يصمد أمام النقد.
omh-agent-debug
5.1kيساعد وكيلك على معرفة سبب تعثر وكيل ذكاء اصطناعي آخر أو دورانه في حلقة أو انحرافه عن المهمة، ويقترح أصغر طريقة آمنة للتعافي.
omh-agent-ops-review
5.1kيساعد المديرين على متابعة سير عمل وكلاء الذكاء الاصطناعي، عبر التقدم والعوائق وفحوص الجودة وطرق زيادة الإنتاجية.
مهارات مشابهة
writing-skills
311kيعلّم وكيلك كتابة مهارات جديدة واختبار كل واحدة أولًا، والتأكد من أنها تغيّر سلوك الوكيل فعلًا.
writing-for-agents
310kيشرح كيفية كتابة تعليمات واضحة لوكلاء الذكاء الاصطناعي، بما في ذلك ملفات المهارات وAGENTS.md وCLAUDE.md، ليتصرف الوكيل بشكل متوقع.
bengali-nlp
280kيعالج وكيلك النصوص البنغالية، فيفهمها ويتعامل معها، ويعيد تنسيقها ويعالج خصائصها اللغوية الخاصة.