promptbook

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 plugin-local skills
MIT License
Claude Code Adapters (declared)

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) plugin-local skills

"Diagnose Promptbook setup \u2014 check config, hooks, API key, and session\.

Bash(node:*)Bash(curl:*)Bash(ls:*)Bash(stat:*)Bash(cat:*)

"Set up Promptbook \u2014 connect your account to start tracking builds.

Bash(curl:*)Bash(open:*)Bash(xdg-open:*)Bash(mkdir:*)Bash(cat:*)

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