provenance

provenance is a skill for Claude Code from karanb192/claude-code-hooks. It costs 29 tokens per session (235 once invoked), scanned B, original, MIT.

A command for previewing a provenance receipt for the current coding session. The receipt summarizes prompts, estimated spending, tests, and lines written by the agent.

In plain words
What is it for?
Use it to check how many tests ran, whether they passed, and the recorded agent-authored line count or percentage.
Why use it?
It lets you inspect the information that may be included in a pull request without running the receipt-generation process again.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the pr-provenance-stamp plugin — 1 skill shipped together

Good fit Use it to check how many tests ran, whether they passed, and the recorded agent-authored line count or percentage.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add karanb192/claude-code-hooks
Claude Code
/plugin install pr-provenance-stamp

Made for: Claude Code.

Or install pr-provenance-stamp, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for provenance

README.md
[![agentmods](https://agentmods.dev/badge/skills/karanb192/claude-code-hooks/provenance/github.svg)](https://agentmods.dev/skills/karanb192/claude-code-hooks/provenance)
Your own site
<a href="https://agentmods.dev/skills/karanb192/claude-code-hooks/provenance"><img src="https://agentmods.dev/badge/skills/karanb192/claude-code-hooks/provenance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for provenance

Your own site · 80×15
<a href="https://agentmods.dev/skills/karanb192/claude-code-hooks/provenance"><img src="https://agentmods.dev/badge/skills/karanb192/claude-code-hooks/provenance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 235 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.00235
Opus 5.5 $0.00012 $0.00094
Sonnet 5.5 $0.00006 $0.00047
Haiku 4.5 $0.00003 $0.00023

Measured 16d ago against content hash 83050c060fc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

provenance scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 16d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

and do not re-run any commands.
plugins/pr-provenance-stamp/skills/provenance/SKILL.md · 21 lines

What it actually says

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 their results, 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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 16d ago Changed 83050c060fc7
  2. 3mo ago First seen · 21 lines · 29 tokens per session scan B f87287adb1a1

Subscribe to this mod's changes

provenance is a skill published in the GitHub repository karanb192/claude-code-hooks (591 stars, last pushed 2d ago), licensed MIT. It adds 29 tokens to every session and 235 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

provenance compared with skills from other repositories

provenance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
provenancekaranb192/claude-code-hooksSkill5912d agoMITB29Claude Code
ai-session-searchahundt/ai-session-searchSkill822d agoApache-2.0B129Claude Code
analyze-codebaseSkeneTechnologies/skeneSkill1293mo agoMITA50Claude Code, Codex
build-implementationSkeneTechnologies/skeneSkill1293mo agoMITA42Claude Code, Codex
deploy-telemetrySkeneTechnologies/skeneSkill1293mo agoMITA47Claude Code, Codex
cli2skill2233admin/cli2skillSkill104d agoMITB46Claude Code, Codex
plan-growth-loopSkeneTechnologies/skeneSkill1293mo agoMITA45Claude Code, Codex