Agent Instructions Architect (agent-instructions)
Writes and maintains AGENTS.md / CLAUDE.md as a moment-keyed router so each rule is met exactly when it applies.
Dev & CodingAdvanced★ 788⑂ 95AI score 9/10Last updated: Nov 21, 2026
What it does
- Restructures
AGENTS.md/CLAUDE.mdinto a router, not a manual: a three-column table of "When you are… · The rule that applies · Open", with depth pushed down into operative docs and skills. - Defines a two-section entry file (Section 1 = reusable build mechanics, Section 2 = this product's identity and constraints) plus a precedence order: session owner instruction > product entry file > user-level instructions > skill defaults.
- Catches silent loading failures:
CLAUDE.mdmust start with@AGENTS.md, Next.js appending to agent files, and Codex's 32 KiB entry-file context budget. - Requires every rule to carry a receipt (date + what went wrong), and enforces word budgets via
budgets.jsonplus bundled reachability and budget checkers. - Gives a sharp test: if compliance depends on memory at the decisive moment, encode it as a test, script or required argument instead of prose.
Who it's for
- Developers whose
CLAUDE.mdkeeps growing while the agent keeps ignoring rules. - Teams running multiple agents (Claude Code, Codex, Cursor) against the same repository.
- Tech leads designing how project docs and skills get read at the right moment.
Examples
- New repo: copy
references/agents-md-skeleton.mdto scaffold anAGENTS.mdwith preamble, Section 1 router and Section 2. - Right after a miss: say "you ignored the auth rule while editing sign-in" — the skill files a router row keyed to that moment and records the dated receipt.
- Release pass: run
python scripts/check_reachable.py <repo>to find docs no chain reaches, andcheck_budgets.pyto list over-budget files and rules past their review month.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/phuryn/product-engineering/HEAD/agent-harness/skills/agent-instructions/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on AI Skill Mart. Copy the agent-harness/skills/agent-instructions folder from the GitHub repo phuryn/product-engineering into my ~/.claude/skills/agent-instructions/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/phuryn/product-engineering.git /tmp/product-engineering && mkdir -p ~/.claude/skills && cp -r /tmp/product-engineering/agent-harness/skills/agent-instructions ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repository:
git clone https://github.com/phuryn/product-engineering.git - Create the skills folder:
mkdir -p ~/.claude/skills - Copy the skill in:
cp -r product-engineering/agent-harness/skills/agent-instructions ~/.claude/skills/ - Verify with
ls ~/.claude/skills/agent-instructions— you should seeSKILL.md,references/andscripts/. - Restart Claude Code, then trigger it with prompts like "restructure our AGENTS.md as a router" or "remember this rule".
- (Optional) To use the budget checker, copy
scripts/check_budgets.pyinto your repo, add a rootbudgets.json, and wire it into your test gate. Python 3 is the only requirement.
View source on GitHub ↗License: MIT