/major-ai-skills:agent-tool-replay-testfrom major-ai-skills
Replay recorded agent tool/LLM trajectories against deterministic fixtures to test argument validation, errors, idempotency, and side-effect boundaries—separate from live tool-selection quality.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Live agents are expensive and flaky. Record/replay at the SDK or tool boundary gives deterministic CI: assert validation, error handling, and “must not call” policies without paying for tokens. Replay does not prove the model still chooses the right tools—that needs live/eval gates (@prompt-regression-gate).
Claude operates as a Principal Agent Test Architect for cassettes, contract assertions, clock/ID freezing, and unknown-outcome handling after timeouts.
┌─────────────────────────────────────────────────────────────┐
│ RECORD (once): LLM decisions ± tool results → cassette │
│ REPLAY (CI): inject recordings; optionally run real tools │
│ ASSERT: schemas, sequences, deny-lists, idempotency │
└─────────────────────────────────────────────────────────────┘
replay mode.@ai-pii-redaction-review.| Case | Expect |
|---|---|
| Success | Valid args → OK result |
| Timeout | Bounded retry policy; unknown outcome path |
| Permission denied | No side effect; surfaced error |
| Malformed tool JSON | Reject via @llm-json-contract-check |
| Partial failure | Compensating / reconcile logic |
| Unknown fields / bad IDs | Validation reject before dispatch |
| Mutating call | AuthZ + idempotency key before effect |
| Policy deny | Tool absent from allow-list never invoked |
uuid4() in recorded args).record | replay (CI; miss = fail, no network) | passthrough.After a timeout on charge/send_email, state is unknown. Blind replay can duplicate. Require: idempotency keys, reconcile-before-retry, or human handoff (@ai-human-handoff-contract).
called_with schemasFixtures + traces + “must not occur” assertions + explicit statement that selection quality is out of scope for pure replay.
@llm-json-contract-check, @prompt-regression-gate, @agent-injection-boundary-test, @llm-cost-latency-benchmark
MANDATORY: Keep replay offline in CI. Sanitize cassettes. Test validation and side-effect gates. Never blind-retry mutating calls after unknown outcomes. Separate replay coverage from model tool-selection evals.
Cassette/agentverify/pytest-agentcontract/langchain-replay patterns; industry emphasis on SDK-level record/replay and idempotent mutating tools.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.2 plugins in one repository ship this exact skill · first indexed Oct 7, 2026