omh-agent-instructions
Skill này làm gì
Skill này viết những phần của tệp hướng dẫn mà agent không thể tự suy ra từ mã, như lệnh build và các bẫy thường gặp, rồi kiểm tra từng lệnh. Skill dành cho lập trình viên muốn công cụ AI của họ làm việc tốt trong một kho mã.
Khi nào nên dùng
- ✓Khi bạn muốn tạo tệp AGENTS.md hoặc CLAUDE.md cho dự án.
- ✓Khi tệp hướng dẫn cho agent của bạn đã lỗi thời hoặc thiếu các lệnh quan trọng.
- ✓Khi bạn muốn tệp quy tắc Cursor hoặc tệp hướng dẫn Copilot cho một kho mã.
Liên kết skill
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-agent-instructions/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Cập nhật CLAUDE.md của chúng tôi với các lệnh build và kiểm thử, sau khi kiểm tra từng lệnh thực sự hoạt động.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lập danh sách các tệp hướng dẫn, kiểm tra từng lệnh hoặc đánh dấu là chưa xác minh, rồi chỉ viết bên trong một phần được đánh dấu. Agent tránh các con số như số lượng hay số dòng sẽ bị lỗi thời.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Nó có giữ các con số như số lượng tệp trong tệp không?
Không. Skill từ chối các số đếm và số dòng dễ bị lệch theo thời gian.
Lệnh chưa xác minh có được phép không?
Có, nhưng mỗi lệnh phải được đánh dấu là chưa xác minh, không được trình bày như đã kiểm thử.
Nó hỗ trợ những công cụ nào?
Các tệp hướng dẫn như AGENTS.md, CLAUDE.md, gemini.md, hướng dẫn Copilot và quy tắc Cursor.
Chi tiết
Mô tả gốc của tác giả
[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
Độ phổ biến
- Sao GitHub
- 5.1k
- Vị trí xếp hạng
- #15070
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
omh-accessibility-audit
5.1kGiúp agent của bạn kiểm tra màn hình hoặc luồng có khoảng trống về khả năng truy cập không, như dùng bàn phím, nhãn trình đọc màn hình, tương phản và vùng chạm.
omh-adversarial-consensus
5.1kGiúp agent của bạn tấn công một đề xuất kỹ thuật từ nhiều góc độ độc lập trước khi bạn cam kết, rồi tổng hợp những gì còn đứng vững.
omh-agent-debug
5.1kGiúp agent của bạn tìm hiểu vì sao một agent AI khác bị kẹt, lặp vòng hoặc trôi khỏi nhiệm vụ, và gợi ý cách phục hồi nhỏ nhất an toàn.
omh-agent-ops-review
5.1kGiúp người quản lý thấy công việc của agent AI đang tiến triển ra sao, với tiến độ, điểm nghẽn, kiểm tra chất lượng và cách làm được nhiều việc hơn.
Skill tương tự
writing-skills
311kDạy agent của bạn viết skill mới và kiểm thử từng skill trước, kiểm tra xem skill có thực sự thay đổi cách agent hành xử hay không.
writing-for-agents
310kGiải thích cách viết hướng dẫn rõ ràng cho agent AI, gồm skill, tệp AGENTS.md và CLAUDE.md, để agent cư xử nhất quán.
bengali-nlp
280kGiúp agent của bạn xử lý văn bản tiếng Bengali, hỗ trợ hiểu ngôn ngữ này, chuẩn hóa văn bản và xử lý các đặc điểm riêng của nó.