AI Skill MartBrowse skillsPromptsProgramsLearnWhat is a Skill?
← Back to list

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.md into 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.md must 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.json plus 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.md keeps 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

  1. New repo: copy references/agents-md-skeleton.md to scaffold an AGENTS.md with preamble, Section 1 router and Section 2.
  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.
  3. Release pass: run python scripts/check_reachable.py <repo> to find docs no chain reaches, and check_budgets.py to 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)
  1. Download the ZIP with the button below.
  2. In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
  3. Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
↓ Download 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.

  1. Open a terminal.
  2. Clone the repository: git clone https://github.com/phuryn/product-engineering.git
  3. Create the skills folder: mkdir -p ~/.claude/skills
  4. Copy the skill in: cp -r product-engineering/agent-harness/skills/agent-instructions ~/.claude/skills/
  5. Verify with ls ~/.claude/skills/agent-instructions — you should see SKILL.md, references/ and scripts/.
  6. Restart Claude Code, then trigger it with prompts like "restructure our AGENTS.md as a router" or "remember this rule".
  7. (Optional) To use the budget checker, copy scripts/check_budgets.py into your repo, add a root budgets.json, and wire it into your test gate. Python 3 is the only requirement.