promptbook

analytics v1.4.0 by 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.

2 Skills
MIT License
Free Pricing

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)

doctor SKILL.md View full skill →

Diagnose Promptbook setup — check config, hooks, API key, and session tracking health.

Bash(node:*)Bash(curl:*)Bash(ls:*)Bash(stat:*)Bash(cat:*)Read
setup SKILL.md View full skill →

Set up Promptbook — connect your account to start tracking builds.

Bash(curl:*)Bash(open:*)Bash(xdg-open:*)Bash(mkdir:*)Bash(cat:*)Bash(chmod:*)Bash(node:*)Bash(nohup:*)Bash(find:*)Bash(wc:*)Read

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.

Ready to use promptbook?

View on GitHub