# Pbench

> Use when a coding-agent outcome is wrong or incomplete, or when the user asks to capture, run, replay, compare, report, or operate PBench.

- Skill: `yaphet2015/pbench` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add yaphet2015/pbench`
- Raw SKILL.md: https://api.skillmd.com/api/skills/yaphet2015/pbench/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: Yaphet2015 (https://skillmd.com/u/yaphet2015)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/yaphet2015/pbench

---


# PBench

## Outcome mismatch

1. Stop claiming completion.
2. Ask for user approval to snapshot the failure **before repair**.
3. Select the registered source that produced the transcript: `codex` or `claude`. Run `yk pbench capture --source <registered-source> --yes` from the subject repository. If the transcript source is not registered, stop and report that direct capture is unsupported.
4. Repair the user task.
5. Read the generated `private/authoring-checklist.md` and follow the single printed recovery or finalization action.

The snapshot records dirty tracked and untracked state as unresolved private candidates. Do not silently treat those edits as replay input.

## Explicit benchmark operation

- Headless: `yk pbench run --case <case> --agent <agent> --profile <label>`.
- Manual: `yk pbench run --case <case> --manual --profile <label>`.
- Compare: `yk pbench report --profile <label>`.

Current built-in runners are `codex` and `claude`. Use stable profile labels for comparisons.

## Invariants

- Private material never enters replay input or benchmark-agent context.
- Finalization must pass fresh strict validation of the exact case bundle.

