# Provenance

Preview the provenance receipt (prompts, est.

- Repository: https://github.com/karanb192/claude-code-hooks (572 stars)
- Category: Testing
- License: MIT
- Last updated: 2026-10-26
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add karanb192/claude-code-hooks --skill provenance -g -a claude-code -y`
Codex: `npx skills add karanb192/claude-code-hooks --skill provenance -g -a codex -y`
Cursor: `npx skills add karanb192/claude-code-hooks --skill provenance -g -a cursor -y`
Gemini CLI: `npx skills add karanb192/claude-code-hooks --skill provenance -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add karanb192/claude-code-hooks`

## Description

Preview the provenance receipt (prompts, est. spend, tests run, agent-authored lines) for the current session ledger

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Provenance receipt

!`node "${CLAUDE_SKILL_DIR}/../../pr-provenance-stamp.js" --render 2>/dev/null || node "${CLAUDE_PLUGIN_ROOT}/pr-provenance-stamp.js" --render`

The block above is the provenance receipt exactly as it would be stamped into a PR
body when you run `gh pr create`, built from the most recent session ledger the
`pr-provenance-stamp` hook has been recording (tool calls, test/typecheck commands
with real exit codes, and the agent-vs-human authored-line split). Prompt and spend
figures come from the transcript at PR-create time, so they may be absent in this
preview.

Briefly summarize the receipt for the user: how many tests ran and whether they are
green, and the agent-authored line count or percentage. Keep it to a sentence or two
and do not re-run any commands.

