Agent Instructions
Required: 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. Output: 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.
Why This Exists
agent-instructions exists because the file every handoff target reads first had no owner: omh-rules-distill extracts rule candidates, omh-codebase-onboarding builds a human reading path, and ulw-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.
Contract: references/full-contract.md (examples, sibling boundaries, full artifact details).
Workflow Lane
- Current lane: Coding handoff - coding owners, handoffs, review, CI, and merge evidence.
- If intent belongs to another lane, hand back to
omh-routingor 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 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
Hermes role: planner
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. - Keep a line only if an agent cannot infer it from the code, tests or docs; keep the workflows the project depends on, and leave routine how-to decisions out.
- 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.
Handoff policy:
Keep the section plan, the command verification record, and the region update in Hermes. Every command's outcome is recorded only from executor, operator, or wrapper observed output; the file is written by the executor, and only inside its marked region.
Safety rules:
- Never write outside the marker-delimited region: the text before
<!-- omh:agent-instructions:begin -->and after<!-- omh:agent-instructions:end -->is hand-written and stays byte-for-byte. - Never write a command as verified without an observed run; mark it unverified instead.
- Refuse to record counts, line numbers, test totals, or file sizes; they drift, so point at the command or file that derives them.
- Write only what an agent cannot derive from the code; restating the code is drift waiting to happen.
- Never copy secrets, tokens, or private hostnames into an instruction file.
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.
Runtime Evidence
Preferred harness for this skill: docs-specialist.
omh runtime record --skill agent-instructions --harness docs-specialist --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. 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.