---
name: Provenance
slug: provenance
category: Automation
description: Provenance previews the current session’s PR provenance receipt, including prompts, estimated spend, tests run, and agent-authored lines. Use it to summarize the ledger without rerunning commands.
github: "https://github.com/karanb192/claude-code-hooks/tree/main/plugins/pr-provenance-stamp/skills/provenance"
language: JavaScript
stars: 486
forks: 34
install: "npx degit https://github.com/karanb192/claude-code-hooks/tree/main/plugins/pr-provenance-stamp/skills/provenance ~/.claude/skills/provenance"
installs_to: ~/.claude/skills/provenance
source_path: plugins/pr-provenance-stamp/skills/provenance/SKILL.md
collection_size: 7
category_size: 1523
collection_url: "https://dirskills.com/collections/karanb192/claude-code-hooks"
added: 2026-08-26T05:13:22.251Z
last_synced: 2026-08-26T05:13:22.251Z
canonical_url: "https://dirskills.com/skills/provenance"
---

# Provenance

Provenance previews the current session’s PR provenance receipt, including prompts, estimated spend, tests run, and agent-authored lines. Use it to summarize the ledger without rerunning commands.

**Install:**

```bash
npx degit https://github.com/karanb192/claude-code-hooks/tree/main/plugins/pr-provenance-stamp/skills/provenance ~/.claude/skills/provenance
```

## README

# 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.
