By promptbookgg
Opt-in Claude Code analytics. After setup consent, Promptbook sends session metrics to promptbook.gg and publishes shareable build cards.
Build better. See your progress. Post the proof.
Track prompts, tokens, and build time automatically. Every Claude Code session becomes shareable progress on promptbook.gg — verified stats, no self-reporting.
/plugin marketplace add promptbookgg/claude-code-plugin
/plugin install promptbook
Then run /promptbook:setup to connect your account.
No source code or prompt content is ever sent. See the Privacy section below for exactly what is sent.
The plugin registers four Claude Code hooks:
| Event | What it does |
|---|---|
| SessionStart | Creates a session file, loads recent context |
| UserPromptSubmit | Counts prompts |
| PostToolUse | Counts lines changed, tracks file types |
| SessionEnd | Finalizes stats, submits to promptbook.gg |
After each session, you'll see a link to your progress. Customize the title, summary, and screenshot on the web — then share it.
What is sent to promptbook.gg: session ID, project name, model, timestamps, prompt count, token counts, build time, lines changed, language, file extension counts (e.g. {ts: 5, css: 2}), and tool usage counts (e.g. {Edit: 12, Read: 8}).
What is never sent: source code, prompt content, file contents, file paths, or your working directory.
The plugin also generates a short title and summary by calling Claude Haiku through your own Claude credentials — this goes to Anthropic (same as any Claude Code usage), never to Promptbook.
You can audit everything: the hooks are right here in this repo.
If you prefer a one-command setup without the plugin system:
bash <(curl -sL promptbook.gg/setup.sh)
Modifies files
Hook triggers on file write and edit operations
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
npx claudepluginhub promptbookgg/claude-code-plugin --plugin promptbookTracks Claude Code session usage (tokens, costs, skills, MCP, subagents) and sends data to a self-hosted dashboard.
Real-time session dashboard for Claude Code — cost tracking, analytics, and smart alerts
Generate an explorable HTML report of Claude Code session usage — tokens, cache efficiency, subagents, skills, and the most expensive prompts — from local ~/.claude/projects transcripts.
Session analytics hook for Claude Code — 15 configurable sections (models, cost, cache, tools, files, git diff, RTK savings...)
Meta-Cognition tool for Claude Code: session history analysis, workflow optimization, and 21 MCP tools for deep session insights.
OTel + Hooks analytics for Claude Code. Run /init-claudalytics to configure telemetry and hooks capture for this project.