empirical-prompt-tuning
agent 向けテキスト指示(skill / slash command / task プロンプト / CLAUDE.md 節 / コード生成プロンプト)を、対象の目的を変えずに、白紙の実行者・固定シナリオ・hold-out で評価し、最小修正を反復する skill 改善オーケストレータ。プロンプトや skill を新規作成・大幅改訂した直後、またはエージェントの挙動不良の原因を指示側の曖昧さに求めたいときに使う。
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- empirical-prompt-tuning
- description
- agent 向けテキスト指示(skill / slash command / task プロンプト / CLAUDE.md 節 / コード生成プロンプト)を、対象の目的を変えずに、白紙の実行者・固定シナリオ・hold-out で評価し、最小修正を反復する skill 改善オーケストレータ。プロンプトや skill を新規作成・大幅改訂した直後、またはエージェントの挙動不良の原因を指示側の曖昧さに求めたいときに使う。
02 资源文件 47
- 参考文档references/evaluation-metrics.md2.5 KB
- 参考文档references/subagent-contract.md3.7 KB
- 参考文档scenarios/cr/other-pr-head.md1.8 KB
- 参考文档scenarios/cr/scenario-a-ts-diff.md3.1 KB
- 参考文档scenarios/cr/scenario-b-rails-delegate.md1.6 KB
- 参考文档scenarios/cr/staged-docs.md1.3 KB
- 参考文档scenarios/derive-optimal-solution/scenario-a-native-before-script.md2.6 KB
- 参考文档scenarios/derive-optimal-solution/scenario-b-dont-extend-bad-abstraction.md2.4 KB
- 参考文档scenarios/derive-optimal-solution/scenario-c-skip-unique-edit.md2.2 KB
- 参考文档scenarios/figma-implement/figma-core.md1.7 KB
- 参考文档scenarios/grill-implementation/scenario-a-typical.md1.5 KB
- 参考文档scenarios/grill-implementation/scenario-b-borderline-noskip.md1.3 KB
- 参考文档scenarios/grill-implementation/scenario-c-skip.md1.1 KB
- 参考文档scenarios/grill-implementation/scenario-d-approval-once.md1.5 KB
- 参考文档scenarios/harness-orchestration.md4.6 KB
- 参考文档scenarios/implement-issue/scenario-a-midwork-question.md4.1 KB
- 参考文档scenarios/implement-issue/scenario-b-approval-scope.md3.6 KB
- 参考文档scenarios/implement-issue/scenario-c-ready-gate.md4.8 KB
- 参考文档scenarios/interaction-output/artifact-brevity.md3.2 KB
- 参考文档scenarios/pre-review-check/checklist-2026-09.md1.3 KB
- 参考文档scenarios/pre-review-check/local-ui.md2.4 KB
- 参考文档scenarios/pre-review-check/offline-base.md1.5 KB
- 参考文档scenarios/pre-review-check/public-api-holdout.md1.5 KB
- 参考文档scenarios/pre-review-check/scenario-a-typical-diff.md4.0 KB
- 参考文档scenarios/pre-review-check/scenario-b-clean-diff.md3.1 KB
- 参考文档scenarios/pre-review-check/staged-sql.md1.7 KB
- 参考文档scenarios/README.md2.5 KB
- 参考文档scenarios/reviewer/scenario-a-typical.md2.5 KB
- 参考文档scenarios/rules-prescriptiveness/README.md3.8 KB
- 参考文档scenarios/rules-prescriptiveness/scenario-a-bugfix.md1.4 KB
- 参考文档scenarios/rules-prescriptiveness/scenario-b-diagnostic-question.md1.4 KB
- 参考文档scenarios/rules-prescriptiveness/scenario-c-fix-with-baits.md1.5 KB
- 参考文档scenarios/run-change/holdout-flaky-and-injected-comment.md2.2 KB
- 参考文档scenarios/run-change/holdout-intent-conflict.md1.9 KB
- 参考文档scenarios/run-change/holdout-review-stale-after-rebase.md2.1 KB
- 参考文档scenarios/run-change/scenario-a-ci-and-review.md2.9 KB
- 参考文档scenarios/run-change/scenario-b-stale-base-conflict.md2.5 KB
- 参考文档scenarios/run-change/scenario-d-fix-after-complete.md2.0 KB
- 参考文档scenarios/run-change/scenario-e-fix-in-publish.md2.0 KB
- 参考文档scenarios/run-change/scenario-g-auto-conflict-resolution.md2.5 KB
- 参考文档scenarios/skill-creator/design-only.md1.8 KB
- 参考文档scenarios/skill-creator/short-skill-holdout.md1.4 KB
- 参考文档scenarios/skill-improvement/scenario-a-positive.md1.7 KB
- 参考文档scenarios/skill-improvement/scenario-b-negative.md1.4 KB
- 参考文档scenarios/skill-improvement/scenario-c-workflow.md1.7 KB
- 参考文档scenarios/spec-ready/scenario-a-existing-work-and-partial-readiness.md2.9 KB
- 参考文档scenarios/upgrade/upgrade-failure.md1.3 KB
03 SKILL.md 正文
Empirical Prompt Tuning
プロンプトの品質は書いた本人には分からない。書き手が「明瞭だ」と思うものほど、別エージェントが読むと詰まる。バイアスを排した実行者に実際に動かしてもらい、両面で評価して反復する のが本 skill の核。評価予算を先に固定し、要件と hold-out を満たしたら止める。
単一オーケストレーション契約
呼び出し時は次を最初に確定する。
target: 改訂対象のSKILL.mdまたは指示ファイル。scenarios: 対象に同梱されたscenarios/、または呼び出し側が指定した保存済みシナリオ。scope: trigger / workflow / reference routing / output contract / wording のどこを改善するか。gate: 固定チェックリストの[critical]全達成、質的な不明瞭点、hold-out の過適合。
実行順は inspect → baseline → fresh dispatch → diagnose → one-theme patch → fresh re-run → hold-out → report に固定する。
いつ使うか
- skill / slash command / タスクプロンプトを新規作成・大幅改訂した直後
- エージェントが期待通り動かず、原因を指示側の曖昧さに求めたいとき
- 重要度の高い指示(頻繁に使う skill、自動化の中核プロンプト)を堅牢化したいとき
評価入力の分離と予算
- 実行者には対象指示・生のタスク・必要な fixture だけを渡し、期待回答や合否チェックリストは採点側に保持する。
- 既定予算は baseline・修正後・hold-out 各 1 回の計 3 回。子からの再委譲は既定で禁止。
ワークフロー
- Iteration 0 — description と body の整合チェック(静的): frontmatter
descriptionと本文のカバー範囲の乖離を検出・解消。 - ベースライン準備: 評価シナリオ(2〜3種)と要件チェックリスト(3〜7項目、
[critical]必須)を固定。 - バイアス排除読み: 白紙の実行者として新規 subagent を dispatch。自己再読は禁止。
- 実行: subagent-contract に従ったプロンプトを渡し、成果物と自己申告レポートを回収。
- 両面評価: 質的(不明瞭点・裁量補完)と量的(成功/失敗、精度、steps、duration)を記録。評価軸と解釈基準は evaluation-metrics を参照。
- 差分適用: 不明瞭点を潰す最小修正(1イテレーション1テーマ)。修正前に満たす判定項目を明示。
- 再評価: 新規 subagent で fresh 再実行。
- 停止判定: 修正後と fresh hold-out で全 critical 要件を満たし、未解決の不明瞭点が無ければ停止。
環境制約
新規 subagent を dispatch できない環境では本 skill は適用しない(自己再読による代替は禁止)。 記述の整合性・明瞭性だけをチェックしたい場合は「構造審査モード」として静的レビューのみを行う。
提示フォーマット & Red flags
提示用 Markdown 形式、および陥りがちな合理化(Red flags)は subagent-contract を参照。
保存済みシナリオ
scenarios/ 配下に対象 skill ごとの評価シナリオを保存している。改訂時は scenarios/README.md を参照。
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
wrangler
Run or troubleshoot Wrangler CLI commands in projects that have a wrangler.jsonc, wrangler.json, or wrangler.toml file, including local development, Previews, deployment, and resource management. For new projects and projects without a Wrangler configuration file, use the cf CLI instead.
workflow-modernize
パッケージ/CLI更新時や定期見直し時に、自作スキル・ワークフロー・設定を監査し、不要なworkaroundの撤廃・新機能の適用・プロンプトの簡素化をGrill(壁打ち)と多角比較で提案・修正する。「workflow-modernize」「スキル監査」「ワークフロー改善」「パッケージ更新後の見直し」「モダナイズ」で起動。
workers-best-practices
Cloudflare Workers best practices for production applications. Use when writing, reviewing, or configuring Workers.
web-perf
Audit, diagnose, or optimize website loading and interaction performance, Core Web Vitals, and Lighthouse performance scores.
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.