Skip to content
Development
Skill

/provenance

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

From plugin
claude-code-hooks
5118 skills
Install
$ npx -y skills add karanb192/claude-code-hooks --skill provenance --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/provenance

Context preview

The summary Claude sees to decide when to auto-load this skill.

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

SKILL.md

provenance.SKILL.md
name: provenance
description: Preview the provenance receipt (prompts, est. spend, tests run, agent-authored lines) for the current session ledger
disable-model-invocation: true

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.

Ships withclaude-code-hooks

🪝 Ready-to-use hooks for Claude Code, shipped as a 20-plugin installable marketplace: safety, automation, notifications, and more. 🌐 Live site & catalog Claude Code and agents like it run shell commands, edit files, and install packages on their own.

Get the whole plugin
Stats
511
Stars
37
Forks
Active
Maintenance
JavaScript
Language
MIT
License
10h ago
Last commit
7mo ago
Created

Repo: karanb192/claude-code-hooks

Other skills on claude-code-hooks.