---
name: claude-code-wrapped
description: "Builds a Spotify Wrapped style year-in-review of the user's Claude Code activity, as a swipeable story page of bold colour cards: prompts, sessions, active days, longest streak, busiest day, peak hour clock, top projects, git commits and lines shipped, a card for every extra drive, catchphrase, most-used words, recent tool and language stats, marathon session and a personality. Everything comes from local files: ~/.claude/history.jsonl, ~/.claude/projects session logs and the user's own git commits. Use it when the user asks for a Claude Code wrap, wrapped, year in review, recap, stats, 'how much did I use Claude this year', or a yearly summary of their projects. Not for: usage billing or cost reports, team analytics, or stats for a single repository's code."
---
# Claude Code Wrapped
A year of Claude Code on this machine, told as a story deck (one full-screen colour card per stat;
swipe, tap or use the arrow keys). The script does all the counting and fills a data-driven template, so the
copy on every card is written from the numbers, and a card with no data is left out.
## Steps
1. **Run the collector.** It needs Python 3.10+ and git on PATH. It reads only local files and sends nothing anywhere.
```
python <this skill folder>/scripts/wrapped.py --out <folder> [--year YYYY] [--name "Name"] [--anonymize]
```
- `--out`: put it somewhere durable the user can find, such as `~/Desktop/claude-code-wrapped-<year>`.
- Scan roots default to `~/Desktop`, `~/Documents`, `~/Projects` and `~/source/repos`, plus every other
mounted drive on Windows, each named by its volume label. `--root PATH` (repeatable) replaces the
defaults, `--no-drives` skips the extra drives and `--no-git` skips the commit cards. PC roots are scanned
before drives, so a repo copied to a drive is not counted twice.
- Commits count only the user's own: the global git `user.name` and `user.email`, plus Claude's
`noreply@anthropic.com`. Add other identities with `--author REGEX`.
- The intro card uses the git `user.name` unless `--name` is given. If the git name looks like a handle, ask once what name to show.
- `--anonymize` swaps project and repo names for Project A, B, C and drops the first prompt's text. Offer it
whenever the page will be shared outside the user's own screen.
- Scanning a big external drive can take a few minutes, so tell the user it is running.
2. **Sanity-check the printed summary** before showing anything. Look for: commits far above what one person
makes (a cloned third-party repo matched the author regex: narrow it), a top project called `unknown`
or a home folder name (add a `--root`), and junk in the words list (add it to `STOP` in the script
and rerun). Every number on the page must come from the data. Never hand-edit numbers into the page.
3. **Deliver it.** If an artifact publishing tool is available, publish `<folder>/index.html` with it (title
`Claude Code Wrapped <year>`). On a rerun, update the same artifact. Otherwise give the user the file path to open in a browser.
`data.json` holds the raw numbers and project names: never publish or commit it unless the user asks.
<!-- ‹guest · 2026-12-06› -->
4. **Report** the link and 6 to 8 headline numbers in a short list, then the caveats below.
## Caveats to tell the user
- **Session logs are short-lived.** Claude Code deletes full session logs after `cleanupPeriodDays`
(30 by default), so the "under the hood" and marathon cards cover only that window, and the page says so.
Prompt counts, streaks, hours, words and projects come from `history.jsonl`, which covers the whole year.
To keep a full year next time, the user can raise `cleanupPeriodDays` in `~/.claude/settings.json` (offer it; don't change it unasked).
- Prompts sent from claude.ai, other apps or other machines are not on this disk and are not counted.
- Marathon hours run from a session's first message to its last, so they include time away.
- The personality is a light-hearted label: the peak hour sets the time of day (Dawn, Daylight, Evening,
Midnight), and the most-used words set the type (Deployer, Debugger, Designer, Architect, Tester, Builder).
## Files
- `scripts/wrapped.py`: the collector and renderer. Writes `data.json` and `index.html`. `--from-json` re-renders a saved `data.json`.
- `assets/template.html`: the page. Data goes in at `/*__DATA__*/null`. All text comes from the data, and every value passes through `esc()`.
این نسخه با نشانهگذاری اختصاصی حساب شما نمایش داده میشود. برای نصب سریع، به تب نصب و راهاندازی بروید.