This skill helps an agent test edge cases, debug behavior, measure accuracy and latency, and continuously improve agent, prompt, workflow, or tool-using systems. It turns evaluation work into a repeatable loop: scope, scenario design, scoring, baseline measurement, failure analysis, targeted fixes, regression testing, and iteration tracking.
Use this skill when a user asks to test an agent, evaluate real scenarios, debug failures, compare versions, track accuracy, track latency, create regression tests, or optimize behavior over time.
Do not use it for unrelated software QA, unauthorized telemetry collection, hidden instruction extraction, destructive testing, or live production monitoring without confirmed authorization.
SKILL.md: agent-facing instructions, triggers, boundaries, workflow, output formats, quality checks, and safety rules.README.md: human-readable package overview.agents/openai.yaml: OpenAI metadata and invocation policy.assets/test-matrix-template.csv: reusable scenario matrix starter.assets/optimization-log-template.md: reusable iteration log template.assets/run-results-example.jsonl: sample structured run data for the helper script.references/style-guide.md: report style, metric definitions, failure taxonomy, and optimization rules.references/evaluation-scenarios.md: scenario categories and realistic examples to adapt.scripts/example_helper.py: deterministic local helper for summarizing pass rate and latency from JSONL or CSV results.
- Define the behavior to evaluate and the deployment risk.
- Build a scenario matrix with real examples first, then synthetic edge cases where needed.
- Define scoring rules before reviewing outputs.
- Measure baseline accuracy and latency.
- Classify failures and identify likely root causes.
- Apply targeted fixes.
- Re-run the same tests against the candidate version.
- Track deltas, regressions, and remaining risks.
scripts/example_helper.py accepts JSONL or CSV records with these fields:
| Field | Required | Example | Notes |
|---|---|---|---|
scenario_id |
Yes | S-001 |
Unique scenario identifier. |
passed |
Yes | true |
Accepts true/false, yes/no, pass/fail, or 1/0. |
latency_ms |
Recommended | 1240 |
Milliseconds for the full agent response. |
error_type |
No | tool_selection |
Use none or blank when passed. |
severity |
No | high |
Suggested values: low, medium, high, critical. |
notes |
No | Wrong tool used |
Short reviewer note. |
Example:
python scripts/example_helper.py assets/run-results-example.jsonl --format markdowntesting-debugging-optimization/
|-- SKILL.md
|-- README.md
|-- agents/
| `-- openai.yaml
|-- assets/
| |-- .gitkeep
| |-- optimization-log-template.md
| |-- run-results-example.jsonl
| `-- test-matrix-template.csv
|-- references/
| |-- evaluation-scenarios.md
| `-- style-guide.md
`-- scripts/
`-- example_helper.py