本文へ移動
cccskills
無料GitHub で公開日本語紹介

agent-regression-evals

エージェントやプロンプトの変更前後を繰り返し評価し、成功率の低下と結果のばらつきを区別。ツール呼び出しや重要ケースも点検し、CIで変更を止める判断を支援します。

原文原文の説明を見る

Use when an agent, prompt, model or tool change needs proof it did not make the agent worse — setting up a regression eval suite, deciding whether a pass-rate drop is real or noise, grading tool-call trajectories, finding flaky eval cases, or wiring an eval gate into CI that blocks the merge. Runs repeated trials, reports pass@k and pass^k, compares candidate to baseline with paired statistics, and refuses to pass a dropped case, a critical-case regression, or a forbidden tool call.

実行スコア 未検証

インストール方法を見る

こんなときに便利

  • プロンプトやモデルの変更前後を比較
  • 評価結果が不安定なケースの特定
  • 必須・禁止ツールの呼び出し確認
  • 性能悪化時にマージを止めたいとき

日本語での紹介

できること

エージェント、プロンプト、モデル、ツールの変更で性能が悪化していないかを検証します。変更前後で各ケースを繰り返し実行した結果を比較し、成功率の低下が偶然のばらつきと区別できるかを統計的に調べます。必要なツール呼び出しや禁止ツールの使用も確認し、結果が安定しないケースを洗い出します。複数回中一度でも成功した割合と、全回成功した割合を報告します。

こんなときに便利

モデルの切り替えやプロンプト修正の影響を確かめたい開発チームに向いています。重要ケースの失敗や評価ケースの欠落を見逃さず、CIでマージを止める条件を整えたい場合にも使えます。

使い方の例

  • 「変更前後のJSONLを比較し、成功率低下の根拠を示して」
  • 「結果が不安定なケースと禁止ツールの呼び出しを調べて」
  • 「重要ケースの悪化を検出する評価をCIに組み込んで」

注意点

エージェントの実行結果は別途用意し、各ケースを3回以上、試行ごとにクリーンな環境で実行します。付属の3本のスクリプトは標準ライブラリのみを使い、APIやLLMは呼び出しません。評価から一時除外するケースには担当者と期限が必要で、重要ケースは除外できません。ライセンスはMITです。

この紹介文は、公開されている SKILL.md をもとに AI(OpenAI Codex)が作成しました。正確な仕様は下の原文を確認してください。

含まれるファイル(11)

  • SKILL.md5.5 KB
  • assets/ci_eval_gate.example.yml1.7 KB
  • assets/eval_case_spec.example.json669 B
  • assets/sample_baseline.jsonl3.7 KB
  • assets/sample_candidate.jsonl3.7 KB
  • references/eval_statistics.md4.8 KB
  • references/flaky_cases_and_quarantine.md4.8 KB
  • references/trajectory_grading.md4.1 KB
  • scripts/flake_detector.py9.8 KB
  • scripts/regression_gate.py12.2 KB
  • scripts/trajectory_checker.py10.6 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Agent Regression Evals — prove the change did not make it worse

Portability: 3 stdlib scripts, no APIs, no LLM calls. You run the agent; these grade, count and gate.

"Pass rate went from 82% to 79%" is not a finding until you know whether three points is outside the noise. Agents are non-deterministic, so one trial per case cannot tell a regression from a coin flip, and a final answer can be right while the path to it called a tool it never should have.

Workflow

# 0 - Run every case k times (k >= 3) on baseline and candidate, from a clean
#     environment per trial. Write one JSONL row per trial:
#     {"case_id": "refund-lookup", "trial": 1, "passed": true, "critical": true,
#      "cost_usd": 0.012, "trajectory": [{"tool": "get_order", "args": {...}}]}
# 1 - Grade the path where the path matters (safety, required lookups).
python scripts/trajectory_checker.py --spec cases.json --results candidate.jsonl
# 2 - Separate flaky cases from stable ones before trusting any comparison.
python scripts/flake_detector.py --results candidate.jsonl --k 3 --quarantine-out q.json
# 3 - Gate: paired per-case comparison against baseline. Exit 4 blocks the merge.
python scripts/regression_gate.py --baseline baseline.jsonl --candidate candidate.jsonl --quarantine q.json

Step 1 uses match modes strict | unordered | subset | superset. Default to superset (required steps present, harmless exploration allowed); grade the outcome, not the path, unless order is the requirement. forbidden tools block in every mode.

Step 2 reports pass@k (succeeds at least once in k) and pass^k (succeeds all k times). A user meets every trial, so pass^k is the reliability number. Cases marked critical are never quarantine candidates.

Step 3 averages trials within each case first (trials of one case are correlated), then tests paired per-case differences with a t-based 95% CI and a one-sided exact McNemar test. When the drop is real but the sample is too small to show it, the gate says how many cases it would take.

The gate blocks on

  1. A statistically significant drop (CI upper bound below zero, or McNemar p < 0.05).
  2. A critical case that passed every baseline trial and failed any candidate trial.
  3. A baseline case missing from the candidate run. Dropping a case is the cheapest fake fix.
  4. A quarantine entry with no owner or expiry, or covering a critical case.
  5. A forbidden tool call (trajectory checker, exit 4).

It warns, and a human decides, on an underpowered drop above --tolerance or a cost rise above --max-cost-increase.

Hard rules

  • Never compare single trials. Under 3 trials per case the flake detector refuses (exit 4).
  • Never pool trials as independent samples. Average per case, then compare cases.
  • Never quarantine without owner and expiry. An expired entry re-enters the gate automatically.
  • Never delete a failing case to go green. The gate counts what is missing.
  • Never call "no significant drop" a pass on 8 cases. Report the power note with the verdict.
  • Start the suite from real failures (20-50 cases), balanced between "should do" and "should not do".

Scripts

ScriptRoleExit codes
scripts/trajectory_checker.pyGrades tool-call paths: match modes, args modes, forbidden tools, call ceilings0 · 2 deviations · 3 bad input · 4 forbidden tool
scripts/flake_detector.pySTABLE_PASS / STABLE_FAIL / FLAKY per case, Wilson CI, pass@k, pass^k, quarantine stubs0 · 2 flaky · 3 · 4 too few trials
scripts/regression_gate.pyPaired CI, exact McNemar, critical cases, dropped cases, quarantine validity, cost0 PASS · 2 WARN · 3 · 4 BLOCK

All support --sample and --output json.

References and assets

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

a11y-audit

無料概要あり

Webアプリのアクセシビリティを点検し、WCAG 2.2のA・AA違反の検出から、フレームワーク別の修正案、再検証、監査報告書の作成まで支援するスキル。

  • 公開前にアクセシビリティを点検したいとき
  • 配色やキーボード操作を修正したいとき
  • 関係者向けの監査報告書作成
alirezarezvani/claude-skills2.9万2026年10月23日 更新

ab-test-setup

無料概要あり

Webページの見出しやボタン、料金表示などの変更を検証するために、仮説・評価指標・必要人数・実施期間を整理し、A/Bテストの設計から結果分析まで支援します。

  • LPの見出しを比較したいとき
  • 申込ボタンの変更を検証したいとき
  • 料金ページのテスト計画
alirezarezvani/claude-skills2.9万2026年10月23日 更新

ad-creative

無料概要あり

有料広告の見出しや本文を媒体ごとの文字数に合わせて作成し、配信実績を基にした改善案や比較テスト用の文案展開、文字数・表現の検証まで進めるスキル。

  • Google RSAの見出しを作りたいとき
  • MetaやLinkedInの広告文制作
  • 成果の出た広告の別案を作りたいとき
alirezarezvani/claude-skills2.9万2026年10月23日 更新

adversarial-reviewer

無料概要あり

コード変更を本番障害、保守性、セキュリティの三つの視点で厳しくレビューし、見落としや弱い前提を洗い出して、重要度とマージ判断をまとめるスキル。

  • プルリクエストをマージ前に確認
  • AIが書いたコードの再レビュー
  • 認証やデータアクセス処理の点検
alirezarezvani/claude-skills2.9万2026年10月23日 更新

aeo

無料概要あり

AIの回答で引用されることを目指し、記事の根拠や著者情報、構造を点検・改善します。監査レポートの作成に加え、見つけた引用を記録し、ページ別の状況を集計します。

  • 既存記事の根拠や信頼性の点検
  • AI回答向けの記事構造と引用の整理
  • 各AIサービスで見つけた引用の記録
alirezarezvani/claude-skills2.9万2026年10月23日 更新

agent-decision-receipts

無料概要あり

デプロイや削除、支払いなど重要なエージェント操作に、改ざんを検知できる署名付き記録を作成します。記録の要否を判断し、発行から証明書だけでのオフライン検証まで扱います。

  • 本番デプロイの署名付き記録作成
  • 削除や支払いの証跡保存
  • アクセス権付与の確認用記録
alirezarezvani/claude-skills2.9万2026年10月23日 更新

alirezarezvani のスキルをすべて見る

このスキルの問題を報告する