Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Builds QA harnesses and agent evals. Use when evaluating tool, trace, red-team, regression, multi-agent, or carried-workspace coding trajectories. Not for metric design (ai-evals).
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Design and run reliable evaluation suites for LLM agents, including tool-using, multi-turn, and multi-agent systems.
For acceptance, review burden, rework, and cost on selected backlog tasks, use the backlog benchmark protocol and fillable template. Otherwise use the workflow below.
Use the starter templates in assets/ for day-0 setup. The template keeps 10 tasks + 5 refusals as a starter scaffold, not a best-practice cap. Every task is a record with a frozen input, fixtures, an oracle a script can run, and a forbidden side-effect list; a task whose only oracle is "looks right" is not ready for the suite (task record).
Flaky cases are classified, not retried into green. When a case's verdict flips across runs, rerun it k=5 times in isolation and attribute the flip before touching the suite: same trace and different verdict means judge instability (fix the grader, not the agent); tool timeout, rate limit, or clock drift in the trace means harness flake (fix the fixture or mock); different tool choices from the same input means agent nondeterminism (it is a real finding for a blocking case, since an agent that only sometimes refuses has not learned to refuse). A quarantined blocking case carries an owner and an expiry date and makes the suite INCONCLUSIVE, never PASS. Do not add automatic retries to a gate; a retry hides the exact failure mode a red-team pack exists to find. Procedure and log fields in regression-protocol.md.
Before calling agent nondeterminism "chaos" or "sensitivity": rule out serving nondeterminism first (batch-size-dependent kernels give different outputs at temperature 0), then measure with meaning-preserving prompt perturbations and report divergence as an instability index with an interval. Act on divergence only once it is linked to a quality metric. Checks and sources: foundations-control-theory/references/nonlinear-dynamics-checks.md.
Minimal instrumentation: Instrument agents at three points only — LLM call entry/exit (with span IDs), tool invocations (input, output, duration), and branching decision points (which path was chosen and why). Avoid instrumenting every intermediate computation; each additional trace dimension increases latency and storage cost, and the exact overhead depends on SDK, sampling, export path, and backend. Start minimal, expand only when a category of failure is consistently hard to diagnose without it.
Use two layers and one rubric:
| Layer | What to Grade | Recommended Graders |
|---|---|---|
| Outcome | Final answer, constraints, refusals, citations, format | Schema/code graders, policy oracles, human spot checks |
| Trace | Tool choice, tool args, approvals, recovery, side effects | Tool/trace graders, sandbox logs, targeted model graders |
| Dimension | What to Measure |
|---|---|
| Task outcome | Did the agent accomplish the job correctly? |
| Policy and constraints | Did it respect safety, scope, and user constraints? |
| Grounding and evidence | Are claims, citations, and retrieved facts supportable? |
| User communication | Is the result clear, appropriately scoped, and useful? |
| Tool choice | Did it select the right tools, or correctly avoid tool use? |
| Tool execution and recovery | Were tool args, approvals, retries, and side effects handled safely? |
Track these separately at suite level, not as per-task rubric rows: latency, cost, stability, bias or fairness, and debuggability.
Trace grading in practice: When grading the Trace layer, evaluate four properties independently:
Prefer code-based graders for (1) and (2); reserve LLM judges for (3) and (4) where rubrics are harder to express as code.
Action hallucination (agent-specific). Every claim in the final answer that an action happened ("ran the tests", "sent the refund", "created the file") must match a tool result or side effect in the trace. An unmatched claim is a hard policy fail even when the outcome looks right. Grade it with code: extract action claims and join them to the tool-call log. Hallucination about facts and context is measured with ai-evals hallucination-eval.md.
Judgment calls a checklist alone will not surface:
When testing agents that modify code (SWE agents, coding assistants, CI agents), use graph-based impact analysis to surface which tests cover the files being changed.
TDAD (arXiv:2603.17973) is a high-signal reference here: it found that targeted source-to-test context outperformed generic procedural TDD prompting for coding-agent regression control.
Working rule:
Use references/coding-agent-regression-testing.md for the benchmark details, protocol, and how to combine this with classic TDD.
A coding agent can pass independent tasks yet degrade when it repeatedly extends its own earlier work. For edit, refactor, and migration agents, add an evolving-spec trajectory when this compounding risk is in scope:
Benchmark-mode hidden tests and production-mode targeted test context serve different goals. Keep held-out tests hidden from the agent when estimating unbiased benchmark performance. In production regression control, expose the relevant TDAD source-to-test map and targeted test context so the agent can protect known behavior; retain a separate held-out evaluation slice for measurement.
Use references/iterative-coding-agent-evals.md for the protocol, formulas, interpretation limits, and trajectory record.
Do:
references/tool-sandboxing.md).Avoid:
| Need | Use | Location |
|---|---|---|
| Build the starter suite | Task patterns + starter scaffold | references/test-case-design.md |
| Test meaning-preserving variants | Semantic/statistical metamorphic contracts | references/test-case-design.md#metamorphic-add-on |
| Control regressions in coding agents | TDAD pattern + source-to-test context | references/coding-agent-regression-testing.md |
| Test iterative coding robustness | Carried-workspace checkpoints + trajectory scoring | references/iterative-coding-agent-evals.md |
| Design refusals | Refusal categories + templates | references/refusal-patterns.md |
| Score runs consistently | Canonical rubric + thresholds | references/scoring-rubric.md |
| Compute suite math | CLI utility script | scripts/score_suite.py |
| Manage regressions | Rerun scopes + baseline policy | references/regression-protocol.md |
| Sandbox tool execution | Isolation tiers + MCP/tool hardening | references/tool-sandboxing.md |
| Choose an eval toolchain | Tooling comparison for regression, traces, and policy gates | references/eval-tooling-patterns.md |
| Test multi-agent systems | Coordination patterns + suite template | references/multi-agent-testing.md |
| Use LLM-as-judge safely | Harness caveats; bias method in ai-evals | references/llm-judge-limitations.md, ai-evals llm-judge-bias.md |
| Test prompt injection attacks | Injection taxonomy + defense checks | references/prompt-injection-testing.md |
| Detect hallucinations | Action claims vs trace here; claim-level metrics and grounding checks elsewhere | Evaluation Model, ai-evals hallucination-eval.md, ai-rag grounding-checklists.md |
| Design eval datasets | Agent task mix, real-failure pack, golden vs dynamic here; composition, sizing, and kappa in ai-evals | references/agent-eval-datasets.md, ai-evals eval-dataset-design.md |
| Choose or critique an agent benchmark | τ²-bench usage + ABC checklist methodology | references/agentic-benchmarks.md |
| Red-team with automated scanners | garak (batch probes) + PyRIT (multi-turn adversarial) | references/prompt-injection-testing.md |
| Start from templates | Harness + scoring + regression log | assets/ |
Key tools mapped to QA jobs (see references/eval-tooling-patterns.md for the full table and references/eval-platform-selection.md for platform comparison with code examples):
Before choosing a hosted eval platform, check the vendor's deprecation and lifecycle page; the migration target is a decision for your team, not a fact recorded here.
Rule of thumb:
Testing an agent?
- New agent?
- Create starter harness -> Run smoke suite -> Establish baseline
- Prompt or tool changed?
- Re-run smoke suite + affected regression cases -> Compare to baseline
- Model or judge changed?
- Re-run smoke + refusal/security pack + targeted regression cases
- Multi-agent or tool workflow?
- Add trace graders, fault injection, and approval-boundary tests
- Preparing production rollout?
- Add optional online evals or canary comparisons
FAIL: any task <9, any refusal =0, or any objective policy hard failINCONCLUSIVE: no failure, but a required pack is missing (e.g. no refusal pack for a tool agent) — never an implicit passPASS: all tasks >=12 and all refusals >=2CONDITIONAL: everything elsescripts/score_suite.py exits non-zero on anything but PASS (FAIL 1, CONDITIONAL 3, INCONCLUSIVE 4); declare --no-refusal-pack only for agents with no tools or policy surface.references/regression-protocol.md - rerun scopes, baselines, online evals, and recoveryreferences/llm-judge-limitations.md - harness judge caveats and escalation rules; bias, drift, and routing method in ai-evalsreferences/backlog-benchmark.md - bounded task-level acceptance, reviewer/rework burden, cost, cutoff, and censoring protocolassets/backlog-benchmark-template.json - machine-readable benchmark contract and outcome ledger templateSee data/sources.json for primary sources, including OpenAI eval and grader docs, Anthropic agent eval guidance, LangSmith evaluation docs, Promptfoo, DeepEval, Langfuse, Agent Governance Toolkit, OWASP LLM Top 10, the OWASP agentic applications list, and UK AISI Inspect sandboxing docs.
| Skill | Purpose |
|---|---|
| qa-testing-strategy | Test strategy and risk prioritization |
| ai-prompt-engineering | Prompt and guardrail design |
| ai-evals | Eval method owner: judge bias and drift, sample sizing, kappa bands, pass^k, hallucination metrics |
assets/qa-harness-template.md10 tasks + 5 refusalsstatic (harness/schema), offline (mocked or recorded tasks), replay (captured production-like traces), canary (bounded real tools and policies), or online (monitored production outcomes)assets/regression-log.mdWhen prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.
After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.
日本語の概要は準備中です。原文の説明を表示しています。
Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.
日本語の概要は準備中です。原文の説明を表示しています。
Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.
日本語の概要は準備中です。原文の説明を表示しています。
Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.
日本語の概要は準備中です。原文の説明を表示しています。
Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.
日本語の概要は準備中です。原文の説明を表示しています。
Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.
日本語の概要は準備中です。原文の説明を表示しています。