instruction-eval

instruction-eval is a skill for Claude Code from 2ykwang/agent-skills. It costs 179 tokens per session (2,569 once invoked), scanned A, original, MIT.

A testing workflow that changes one condition around a coding agent, runs the same prompts before and after several times, and produces an HTML comparison report.

In plain words
What is it for?
Use it for A/B tests of agent conditions, comparing answers and metrics, recording anomalies, and summarizing the differences in a generated report.
Why use it?
It replaces guesses about whether instructions, reference files, tools, permissions, hooks, or skills change agent behavior with observed results.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions Claude Code.

Good fit Use it for A/B tests of agent conditions, comparing answers and metrics, recording anomalies, and summarizing the differences in a generated report.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/2ykwang/agent-skills/instruction-eval
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add 2ykwang/agent-skills --skill instruction-eval
Clone the repo
git clone --depth 1 https://github.com/2ykwang/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for instruction-eval

README.md
[![agentmods](https://agentmods.dev/badge/skills/2ykwang/agent-skills/instruction-eval/github.svg)](https://agentmods.dev/skills/2ykwang/agent-skills/instruction-eval)
Your own site
<a href="https://agentmods.dev/skills/2ykwang/agent-skills/instruction-eval"><img src="https://agentmods.dev/badge/skills/2ykwang/agent-skills/instruction-eval/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for instruction-eval

Your own site · 80×15
<a href="https://agentmods.dev/skills/2ykwang/agent-skills/instruction-eval"><img src="https://agentmods.dev/badge/skills/2ykwang/agent-skills/instruction-eval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 179 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00179 $0.02569
Opus 5 $0.00089 $0.01285
Sonnet 5 $0.00036 $0.00514
Haiku 4.5 $0.00018 $0.00257

Measured 9d ago against content hash 4e238c24b7ce, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

instruction-eval scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/render_report.py, scripts/run_ab.py, scripts/vendor/markdown-it.umd.min.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/instruction-eval/SKILL.md · 246 lines

How it starts

The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Condition A/B

Change one condition an agent runs under, run the same prompts before and after, and show the difference.

The conditions surrounding an agent have no verification. You can read code and tests will catch a regression, but a few lines added to instructions or a reference doc dropped in a directory only ever get judged on whether they sound reasonable. Even the person who put them there has no idea whether they change behavior. This skill replaces that guess with an observation.

This runs on Claude Code. Both arms execute as claude -p subprocesses, so the CLI has to be available.

Who writes what

The report holds content from two sources, visually separated in the HTML. Never hand-write what the script produces, since transcribing only introduces errors.

Automatic (scripts) LLM (insights.json)
Experiment setup: n, model, both directory paths What you changed
Prompt text The claim about what changes
Answer text (every arm, every rep) Differences observed per prompt
Metric medians and deltas Metric interpretation
Run anomalies (errors, permission denials) Conclusion

Procedure

1. Design and build the conditions

Pick the axis first. What you compare against what determines everything else. Only what the user mentioned is a candidate, and even when it reads as obvious you confirm it in step 2.

Anything can be the axis: instruction text, reference material instructions point at, MCP tools and permissions, hooks, skill files. The script only sees two directories, so all of these get handled identically.

baseline is the working directory in the before state, variant the after state.

The purpose decides the direction.

Verifying an addition Building a case for deletion
baseline axis absent axis present (status quo)
variant axis present axis absent
What you watch does it do what the axis asks does the failure it prevented show up

Deletion is the more common need. Instructions only grow in one direction and nothing ever makes the case for removing them, while an ineffective instruction still rides along on every request, spending context and diluting the signal of the instructions that do work. Judge deletion asymmetrically, though. The bar is not "delete when there's no evidence of effect" but "delete only when removing it is confirmed to produce no failure." A symmetric bar at small sample sizes will delete rules on noise.

Read the full file on GitHub · 246 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 246 lines · 179 tokens per session scan A 4e238c24b7ce

Subscribe to this mod's changes

instruction-eval is a skill published in the GitHub repository 2ykwang/agent-skills (19 stars, last pushed 1mo ago), licensed MIT. It adds 179 tokens to every session and 2,569 once invoked, about $0.0009 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.