empirical-prompt-tuning
Iteratively improve a skill or prompt by having a fresh subagent execute it against fixed scenarios, scoring two-sided (executor self-report + a pre-frozen…
Skill by s-hiraoku
Chalk Labs
Need help deploying empirical-prompt-tuning?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/s-hiraoku-empirical-prompt-tuning-4a3c86
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/empirical-prompt-tuning
What's inside
- Skill name
empirical-prompt-tuning- Description
- Iteratively improve a skill or prompt by having a fresh subagent execute it against fixed scenarios, scoring two-sided (executor self-report + a pre-frozen requirements checklist), and looping until improvements plateau. Use after authoring or revising any skill, slash command, or CLAUDE.md addition.
- License
- MIT
- Instructions
- 118 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: scripts/eval-skill.sh
Files (1)
- SKILL.md
SKILL.md (first lines)
# Empirical Prompt Tuning The author of a prompt cannot judge its quality. Whoever wrote the text already understands the implicit context, so re-reading it from "the same head" cannot detect ambiguity. The only reliable way to find ambiguity is to **dispatch a bias-free executor, score the run two-sidedly, and iterate until improvements stop**. This skill is a method, not a tool. It runs inside Claude Code with the `Task` tool to spawn fresh subagents. The repository's `scripts/eval-skill.sh` and `evals/` directory mechanize the bookkeeping; this SKILL.md is the workflow. Inspired by [mizchi/skills/empirical-prompt-tuning](https://github.com/mizchi/skills/tree/main/empirical-prompt-tuning). The original is the canonical reference; install it via `apm install -g mizchi/skills/empirical-prompt-tuning` if you want the upstream version verbatim. ## When to use - Right after creating or substantially revising a skill, slash command, subagent prompt, or CLAUDE.md addition in this repo. - When a skill is about to be promoted from "draft" to "published" (i.e. before merge to main). - When a user reports the skill behaved unexpectedly and you suspect instruction-side ambiguity rather than model failure. When **not** to use: - One-off throwaway prompts. - Trivial wording changes (typos, link fixes). - When you only want to check personal taste — this method scores against frozen requirements, not preferences. ## Workflow ### 0. Description / body consistency check Before spawning anything, read the SKILL.md frontmatter `description` and confirm the body actually covers what the description claims. If the description says "blocks A, B, C" but the body only describes A, fix one or the other first. Skipping this lets a subagent silently reinterpret the body to match the description, producing a false positive. ### 1. Freeze the evaluation harness Create `evals/<skill-name>/scenarios.yaml` with 2–3 realistic scenarios (1 typical + 1 edge), each with a **requirements checklist** of 3–7 items. Tag at least one item per scenario as `[critical]`. Once a run is recorded, you may not edit checklists retroactively — that defeats the metric. Use `evals/_template/scenarios.yaml` as the starting point. Run: ```sh bash scripts/eval-skill.sh init <skill-name> ``` to scaffold the directory. ### 2. Bias-free dispatch For each scenario, spawn a **fresh** subagent via the `Task` tool with the `general-purpose` (or skill-appropriate) type. Pass the scenario prompt only — do not paste the SKILL.md, do not summarize it, do not hint at the answer. The subagent must read the skill cold, the same way a future user would. Example (one tool call per scenario; multiple scenarios go in a single message for parallelism): ``` Task( subagent_type: "general-purpose", description: "Evaluate <skill-name>", prompt: "<scenario.prompt from scenarios.yaml>" ) ``` ### 3. Two-sided scoring For each subagent return, fill in `evals/<skill-name>/runs/<timestamp>.md` (template at `evals/_template/run.md`). Capture **both** sides: - **Executor self-report**: unclear points, discretionary fill-ins, places where the skill's template did not fit. Tag each by the phase it surfaced in (Understanding / Planning / Execution / Formatting). - **Instruction-side metrics**: - Pass / fail: success only if **all** `[critical]` items were satisfied. - Accuracy %: items satisfied / total (full = 1.0, partial = 0.5, fail = 0). - Tool-use steps: from the Task tool's usage meta `tool_uses`. - Duration ms: from the Task tool's usage meta `duration_ms`. - Retry count: how many times the subagent re-decided the same thing (from its self-report). For each unclear point, record `Issue / Cause / General Fix Rule` so future runs can spot the same class of failure. ### 4. Apply the minimum fix Edit the skill body to remove the unclear points found. One theme per iteration (related fixes OK; unrelated go to the next iteration). Before writing the fix, state in the run note **which checklist item this fix is meant to satisfy** — fixes inferred from vibes tend not to land. Consult `evals/<skill-name>/ledger.md` first. If the same `General Fix Rule` keeps appearing, the existing fix is in the wrong location (too low in the document, too soft, ambiguous trigger) — move it before adding a new entry. ### 5. Loop Re-run with a **new** subagent (never reuse — it has already learned the prior fix). Stop when: - Two consecutive iterations produce zero new unclear points, - AND accuracy / step / duration improvements fall below 5% relative to the previous iteration. For high-importance skills (used by the safety/verification packs), require three consecutive plateau iterations. ### 6. Record Append a one-line summary to `evals/<skill-name>/ledger.md`: ``` - 2026-05-09: iter 3, 3/3 scenarios pass, accuracy 92%, plateau confirmed (2 consecutive) ``` The CI quality gate (`.github/workflows/eval-quality-gate.yml`) reads this ledger to verify each modified skill has a recent passing entry. ## Quality gate (CI) A skill PR that modifies `skills/<name>/SKILL.md` must include either: 1. A new entry in `evals/<name>/ledger.md` showing a passing run on the new content, OR 2. A `[skip-eval]` token in the PR description **with a one-line justification** (typo fix, doc-only, etc.). The workflow `eval-quality-gate.yml` enforces this on PR. ## Anti-patterns - **Re-reading your own draft and "deciding it's clear."** Your head already has the missing context. Dispatch a fresh subagent. - **Editing the requirements checklist after seeing the run.** This converts the eval into a vibes check. - **Reusing the same subagent across iterations.** It has learned the prior text; the eval becomes a reading-comprehension test of the previous version. - **Adding a new ledger entry for a recurring class of failure.** That just multiplies notes. Move the existing fix to a more prominent position first. ## Final report template When the loop converges, the final response should include: - skill name and final commit hash - iterations run, with per-iteration accuracy and step count - the failure-pattern ledger entries that were resolved - residual known limitations - pointer to the latest run file
From s-hiraoku/claude-harnesses, MIT.
More from s-hiraoku/claude-harnesses
- 0.505score
autopilot
s-hiraoku
Explicitly keep a GitHub pull request moving until it is merge-ready by delegating to PR Guardian.
SkillBFreshness: BClaude Code +9 - 0.465score
adviser
s-hiraoku
Route an independent, review-only Claude process to a deterministically stronger model or effort when native Advisor is unavailable.
SkillCFreshness: CClaude Code +9 - 0.465score
jina-reader
s-hiraoku
Fetch public web pages with Jina AI Reader API and convert them into LLM-friendly Markdown.
SkillCFreshness: CClaude Code +9 - 0.462score
no-slop
s-hiraoku
MODIFIER skill that removes AI slop from prose without losing source facts or uncertainty.
SkillCFreshness: CClaude Code +9 - 0.462score
pr-guardian
s-hiraoku
Monitor a pull request after opening it or resume a stalled PR, fix CI failures and reviewer feedback, push updates, reply to and resolve review…
SkillCFreshness: CClaude Code +9 - 0.460score
meta-packager
s-hiraoku
Analyze recent Claude Code work and package repeated patterns as the smallest useful skill, custom subagent, slash command, hook, or automation.
SkillCFreshness: CClaude Code +9 - 0.458score
goal-manager
s-hiraoku
Manage durable task goals for long-running Claude Code work using the project ledger, including objective writing, success criteria, resumption, and…
SkillCFreshness: CClaude Code +9 - 0.457score
long-running-orchestrator
s-hiraoku
Run multi-hour or multi-session work safely by combining the ledger, checkpoints, cost-ceiling guard, and resumable progress notes so context loss does not…
SkillCFreshness: CClaude Code +9 - 0.457score
deslop
s-hiraoku
Remove AI-generated boilerplate (vague comments, unused try/except, defensive validation, restated docstrings) from changed code without changing behavior.
SkillCFreshness: CClaude Code +9 - 0.457score
fix-ci
s-hiraoku
Diagnose and repair failing CI checks on the current PR by parsing logs, reproducing locally when possible, and pushing focused fixes in batches.
SkillCFreshness: CClaude Code +9 - 0.457score
implement-to-merge-ready
s-hiraoku
Run an end-to-end Claude Code delivery workflow from user request to merge-ready pull request, including planning, implementation, tests, self-review…
SkillCFreshness: CClaude Code +9 - 0.457score
kaizen-loop
s-hiraoku
Run a continuous product improvement loop: evaluate a product or codebase, present prioritized recommendations for approval, then implement only approved…
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 1
- Last commit (this folder)
- May 8, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/s-hiraoku/claude-harnesses
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from s-hiraoku
- 0.523score

Secondary Terminal
s-hiraoku
Sidebar terminal for VS Code with AI agent awareness (Claude Code, Copilot, Gemini, Codex, Antigravity), split views, session persistence, and full IME support.
PluginBFreshness: B★ 22VS Code +3 - 0.510score
pr-guardian
s-hiraoku
Monitor or resume GitHub pull requests, fix CI failures and actionable CodeRabbit, Codex, bot, or human review feedback, push focused updates, and stop only…
SkillBFreshness: BClaude Code +9 - 0.508score
autopilot
s-hiraoku
Run the PR Guardian workflow when the user explicitly invokes $autopilot to keep a GitHub pull request moving toward merge-ready without merging it.
SkillBFreshness: BClaude Code +9 - 0.505score
autopilot
s-hiraoku
Explicitly keep a GitHub pull request moving until it is merge-ready by delegating to PR Guardian.
SkillBFreshness: BClaude Code +9 - 0.465score
jina-reader
s-hiraoku
Fetch public web pages with Jina AI Reader API and convert them into LLM-friendly Markdown.
SkillCFreshness: CClaude Code +9 - 0.465score
adviser
s-hiraoku
Route an independent, review-only Claude process to a deterministically stronger model or effort when native Advisor is unavailable.
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get empirical-prompt-tuning running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
empirical-prompt-tuning skill. Agent Mart. https://agentmart.dev/skills/s-hiraoku-empirical-prompt-tuning-4a3c86 (last updated 2026-10-24)