promptbook
Opt-in session analytics for Claude Code. After setup consent, tracks prompts, tokens, build time, and lines changed per session. Publishes shareable build cards on promptbook.gg. Strict consent gating — no data transmitted without explicit opt-in. Background submission after session end.
Installation
Open Claude Code and run this command:
/plugin install promptbook@claude-code-plugins-plus
Use --global to install for all projects, or --project for current project only.
What It Does
Build better. See your progress. Post the proof.
Promptbook is an opt-in analytics plugin for Claude Code. After setup consent, it tracks prompts, tokens, and build time, sends session metrics to promptbook.gg, and turns each session into shareable progress.
Skills (2)
Diagnose Promptbook setup — check config, hooks, API key, and session tracking health.
Set up Promptbook — connect your account to start tracking builds.
How It Works
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. A short background process may continue briefly after Claude exits so Promptbook can submit the build and generate the title/summary. Customize the title, summary, and screenshot on the web — then share it.