Skip to content
Back to skills

wrapped

ASecurity

Make the user's Claude Wrapped, a Spotify-Wrapped-style year-in-review story of their time with Claude, opened as a tap-through page with share posters. Works in Claude Code (built from local session logs - hours together, streaks, peak hour, projects, tools, models, personality) and in claude.ai on web, desktop or mobile (built from their past chats and Claude's memory - chats, streaks, peak hour, topics, what Claude remembers, personality). Use when the user asks for Claude Wrapped, their y...

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentspythongoshellbashawsapi

Works with

  • claude code
  • claude desktop
  • api

Security analysis

A100/100

Pro scans all 14 files and shows the line behind each finding

Scanned December 5, 2026

npx -y skills add 0xpratzyy/claude-wrapped --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of wrapped?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for wrapped
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/0xpratzyy-wrapped/badge)](https://www.skillsdirectory.com/skills/0xpratzyy-wrapped)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wrapped
description: Make the user's Claude Wrapped, a Spotify-Wrapped-style year-in-review story of their time with Claude, opened as a tap-through page with share posters. Works in Claude Code (built from local session logs - hours together, streaks, peak hour, projects, tools, models, personality) and in claude.ai on web, desktop or mobile (built from their past chats and Claude's memory - chats, streaks, peak hour, topics, what Claude remembers, personality). Use when the user asks for Claude Wrapped, their year with Claude, Claude stats or recap, "how much did I use Claude this year", "make my Claude Wrapped", or types /wrapped.
---

# Claude Wrapped

Builds a year-in-review story and opens it as one offline HTML page. There are two ways to get the numbers, depending on where you are running:

- **Claude Code** (you can run shell commands and `~/.claude/projects` exists): read the local session logs. Follow "In Claude Code".
- **claude.ai** (web, desktop or mobile app; you have tools to search the user's past chats, and a code sandbox): read the user's past chats and your memory of them. Follow "In claude.ai".

Both end with the same two scripts and the same story template, so the result looks the same.

## In Claude Code

Nothing leaves the machine: the extractor reads local files and the page is one offline HTML file.

1. Pick the year: the current year by default, or the one the user names.
2. Find out what the user pays, which drives the "value multiplier" card. Use what they've said; otherwise ask once: Pro $20, Max 5x $100, Max 20x $200 (default), or API pay-as-you-go (pass `--plan-usd 0` and the multiplier is hidden).
3. Extract the stats. This takes about 30 seconds for a few thousand sessions:
   ```bash
   python3 "<skill-dir>/scripts/extract.py" --year <YEAR> --plan-usd <MONTHLY_USD> --plan-name "<Pro|Max>" --out "<out-dir>/wrapped.json"
   ```
   For `<out-dir>`, use the working directory, or `~/Desktop/claude-wrapped-<YEAR>` if the working directory is a code project the user didn't ask to change.
4. Build the page:
   ```bash
   python3 "<skill-dir>/scripts/build.py" "<out-dir>/wrapped.json" "<out-dir>/claude-wrapped-<YEAR>.html"
   ```
5. Open it: in the Claude desktop app, show it in the browser pane; otherwise run `open` on the file.
6. In chat, give a short teaser of three headline numbers (hours together, API-price value and multiplier, archetype) and say the page has a Save image button for the share card.
7. Then ask once: "Want every card saved as an image in your Downloads, ready to share?" If they say yes:
   ```bash
   python3 "<skill-dir>/scripts/cards.py" "<out-dir>/claude-wrapped-<YEAR>.html" --out ~/Downloads/claude-wrapped-<YEAR>
   ```
   It draws each card's last frame as a PNG (1080 x 1920, the personality card 1080 x 1350) on this machine. It uses a hidden Chrome, Edge or Chromium if one is installed; otherwise a tab opens in the default browser for a few seconds, and the user can close it once it says the cards are saved. Tell them the folder and the number of cards. If it fails, the download button under each card saves it one at a time.

Notes:
- **API cost** is what the tokens would cost at API list prices (the `PRICES` table in `extract.py`, as of 2026-11), counting cache writes at the 5-minute rate. It is an equivalent, not a bill.
- **Hours together** counts sittings built from the user's own prompts, so background agents and loops don't inflate it. **Claude hours** adds up Claude's working time across parallel sessions.
- Sessions running in temp folders (SDK or subprocess runs) are skipped. Throwaway desktop sessions are grouped as "Scratch".
- The story cards show real prompt text (first, latest, longest-sitting prompts) and project names, and so do the saved card images: mention that when you save them. The share image shows only numbers, the top project name, the favourite model and the archetype: mention that before the user posts it if the project name is private.
- If no sessions are found for the year, say so and offer the previous year.

## In claude.ai

claude.ai keeps no logs you can read as files, so you gather the year from the user's past chats with your chat-history tools (in claude.ai these are `recent_chats` and `conversation_search`), add what you remember about them, and then run the scripts in your code sandbox. Everything stays inside the user's own account.

If you have no chat-history tools (the free plan, or chat search off), ask for their data export instead, as https://claudewrapped.xyz/claude.md explains under "If you can't search past chats": Settings → Privacy → Export data, then upload `conversations.json`. `chats.py` reads that file as it is. Don't make numbers up. If memory is off, skip step 4.

1. **Year:** the current year by default, or the one the user names. Tell the user it takes a minute while you read back through their chats.
2. **Collect the chats.** Call `recent_chats` with the largest page size it allows, newest first, then page back with its `before` parameter set to the oldest time you have seen, until you reach January 1 of the year or run out of chats. Stop after about 60 pages if it is still going, and say the story covers the most recent part of the year. For each chat keep only:
   - `title`
   - `created_at` and `updated_at` (ISO 8601, as the tool gives them)
   - `uuid` or `url` (used only to drop duplicates)
   Don't copy message text into the file.
3. **Topics.** Group the chats into 5 to 7 topics from their titles and what you know of them, each a short plain name (at most 22 characters, like "Learning Japanese" or "Job hunting"), with a count of chats. Biggest first.
4. **What Claude remembers.** From your memory of the user, write 3 or 4 short, warm lines in the second person, each under 60 characters, like "You're training for your first half marathon". Keep it to things they'd happily share on a poster: hobbies, goals, projects, tastes. Never include health, money, relationships, other people's names, work secrets, or anything more exact than a city. If you have no memory of them, leave this out.
5. **Personality.** Name them in two or three words starting with "The" (like "The Curious One"), plus one playful line under 120 characters drawn from their topics and habits.
6. **Catchphrase (optional).** Only if a phrase clearly repeats across their chat titles.
7. **Write the file** `chats.json` in the sandbox:
   ```json
   {
     "chats": [{"title": "...", "created_at": "...", "updated_at": "...", "uuid": "..."}],
     "topics": [{"topic": "Learning Japanese", "count": 23}],
     "memory": {"lines": ["You're learning Japanese for a trip to Kyoto"], "outro": "All year, it was listening. In the nicest way."},
     "archetype": {"title": "The Curious One", "line": "Japanese verbs at noon, sourdough at midnight."},
     "catchphrases": [{"phrase": "explain like I'm five", "count": 31}]
   }
   ```
8. **Build the page.** Use the user's time zone if you know it (an IANA name like `Asia/Kolkata`), otherwise leave `--tz` out and times are in UTC:
   ```bash
   python3 "<skill-dir>/scripts/chats.py" chats.json --year <YEAR> --tz <TIME_ZONE> --out wrapped.json
   python3 "<skill-dir>/scripts/build.py" wrapped.json /mnt/user-data/outputs/claude-wrapped-<YEAR>.html
   ```
   If `/mnt/user-data/outputs` doesn't exist, write the HTML wherever the sandbox lets you share files.
9. **Hand it over.** Share the HTML file. Tell the user to open it (on a phone, tap it and open it in the browser) and tap through, and that the last card makes share posters. Give a short teaser: number of chats, longest streak, peak hour, their personality.

If you can't share files from the sandbox, follow https://claudewrapped.xyz/claude.md instead: it uses `scripts/link.py` to reply with a link that plays the story.

Notes:
- The story shows chats, not hours: claude.ai's chat list gives one time per chat, so hours can't be measured honestly.
- Tokens, cost, models and tools are not available here, so those cards are skipped automatically.
- The story and posters show the topics, memory lines and personality you wrote. Mention that before they post it.

Files in this skill

  • SKILL.md7.3 KB
  • dist/og-source.html4.6 KB
  • package.json412 B
  • scripts/build.py1.3 KB
  • scripts/chats.py5.9 KB
  • scripts/extract.py22.4 KB
  • scripts/link.py3.5 KB
  • site/_headers463 B
  • site/apple-touch-icon.png3 KB
  • site/claude.md12.3 KB
  • site/demo-data.json8.7 KB
  • site/favicon.ico2.6 KB
  • site/favicon.svg3.4 KB
  • site/index.html66.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.