Skip to content
Back to skills

Rewynd

ASecurity

Make a "tape rewind meets terminal" recap video (or one share image, or a carousel of images) of the user's month or year of AI coding from their local Claude Code, Codex, Gemini CLI and OpenCode history, 100% local. Also shows what history rewynd has saved and explains Claude Code's 30-day deletion. Use when the user asks for their rewynd, an AI coding recap, month/year in review, a "wrapped" for coding agents, or rewynd status/setup.

  • 2 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added October 23, 2026
ai-agentsgoshellnodegitsecurity

Works with

  • claude code
  • cursor
  • terminal
  • cli

Security analysis

A100/100

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

Scanned October 23, 2026

npx -y skills add notsocj/rewynd --skill rewynd --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rewynd?

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

Security grade badge for Rewynd
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/notsocj-rewynd/badge)](https://www.skillsdirectory.com/skills/notsocj-rewynd)

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: rewynd
description: Make a "tape rewind meets terminal" recap video (or one share image, or a carousel of images) of the user's month or year of AI coding from their local Claude Code, Codex, Gemini CLI and OpenCode history, 100% local. Also shows what history rewynd has saved and explains Claude Code's 30-day deletion. Use when the user asks for their rewynd, an AI coding recap, month/year in review, a "wrapped" for coding agents, or rewynd status/setup.
argument-hint: "[card | carousel | status | setup] [YYYY-MM | --year YYYY] [--github]"
---

# /rewynd — your month of AI coding, as a video

You turn the user's local agent history into a short vertical video. Most of the work is done by scripts that cost zero tokens. Your jobs are to run them in order, ask the user a few short questions, and write a small, funny, honest `story.json`.

## Modes

Pick the mode from the user's words or the first argument (`$ARGUMENTS`):

| Mode | When | What to do |
|---|---|---|
| **video** (default) | "make my rewynd", a month, `--year`... | Steps 1–8 below |
| **card** | `card`, "just an image / screenshot" | Steps 1–6, then step 7 with `render --card` (a PNG instead of a video) |
| **carousel** | `carousel`, "Instagram / X carousel", "one image per slide" | Steps 1–6, then step 7 with `render --carousel` (one PNG per scene, in video order) |
| **status** | `status`, "what's saved?", "is my history safe?" | [Status](#status-mode) |
| **setup** | `setup`, first install, "how do I keep my whole year?" | [Setup](#setup-mode) |

## Paths (work these out first)

- **SKILL** = `${CLAUDE_SKILL_DIR}`: the folder this SKILL.md is in, which holds everything rewynd runs (`scripts/`, `contract/`, `video/`). If you still see the literal text `${CLAUDE_SKILL_DIR}` (e.g. in Codex), don't put it in a command (the shell turns it into nothing): use the folder containing this SKILL.md instead, usually `~/.agents/skills/rewynd` (resolve symlinks with `realpath`).
- **DATA** = `${CLAUDE_PLUGIN_DATA}`. If you still see that literal text (any install that isn't the Claude Code plugin), use an empty string `""`. rewynd then picks the right place itself: `~/.rewynd` for `npx skills add` installs (which keeps your history safe when the skill is updated), or the repo's `data/` in a git clone.
- Every command below is:
  `node --disable-warning=ExperimentalWarning "SKILL/scripts/cli.ts" <command> --data-dir "DATA" [flags]`
  Each prints ONE JSON object on stdout. Progress goes to stderr.
- Outputs go to `OUT`: the `output/` folder next to rewynd's `data/`. Its path is in the `files` of the `collect` result.

Requirements: Node **22.18 or newer** (`node --version`). If it's older, tell the user to update Node and stop.

## Steps

### 1. Which period?
- If the user passed arguments (`$ARGUMENTS`), use them: `YYYY-MM` → `--month YYYY-MM`, `--year YYYY` → `--year YYYY`, `--github` → add `--github`.
- Otherwise ask one question. Default: the **previous month** if today is in the first 7 days of a month, else **this month so far**. In December, also offer "the whole year".

### 2. Collect (zero tokens)
Run `collect --month YYYY-MM` (or `--year YYYY`), adding `--github` only if the user asked for GitHub numbers.
- This also **saves every new day** into rewynd's own `data/days/` (daily totals only, never message text). That's what keeps the year complete after agents delete old transcripts.
- Tell the user in 2–3 lines: which agents were found (and any skipped, with the reason from `agents[].note`), how many days were saved, and the headline (hours rounded **down** like the video, sessions). An agent with `humanSessions` 0 but `backgroundSessions` > 0 was only driven by other tools: it adds background runs, not hours.
- If `gitGuard.ok` is false: warn loudly that their personal stats are tracked by git, and show `gitGuard.fix`. Don't run it for them.
- Relay any `warnings` briefly.
- If `headline.sessions` is 0: say there's nothing to recap for that period yet (and suggest another month), then stop.
- `--github` is the ONLY part of rewynd that uses the network (read-only, through the user's own `gh` login). If `github.ok` is false, say why (`github.reason`) and carry on without it.

### 3. Ask before reading their messages
Ask: **"rewynd will read about 150 of your own messages (secrets and emails removed) to write the funny parts of your story. OK?"**
- Yes → read `OUT/samples.json` in step 4.
- No → write the story from the numbers only (no `samples.json`). Set `hardestBug` to `null`.

### 4. Write `OUT/story.json`
Read `OUT/stats.json` (and `OUT/samples.json` if allowed). Never open the agents' raw logs.

Write exactly this shape (`contract/recap.ts` → `Story` is the source of truth):

```json
{
  "schemaVersion": 1,
  "personality": { "id": "3am-shipper", "title": "The 3AM Shipper", "line": "38 sessions after midnight. Sleep is a suggestion." },
  "captions": {
    "intro": "Your October in AI coding",
    "hours": "That's a part-time job you didn't apply for",
    "mainAI": "You cheated on Claude Code with Codex 20 times",
    "heatmap": "17 days in a row. Touch grass?",
    "peakHour": "Peak focus: 1AM",
    "projects": "lumen ate most of your month",
    "tools": "Mostly running commands",
    "shipped": "Most of your commits had an AI co-author"
  },
  "projects": [{ "name": "lumen", "line": "Mostly fighting auth" }],
  "hardestBug": { "project": "lumen", "line": "A login loop that took 40 messages to kill" },
  "funnyLines": ["You said \"why\" 88 times."],
  "backgroundLine": "Codex double-checked itself 180 times.",
  "closing": "See you next month."
}
```

Rules (the script checks them in step 5):
- **Only use numbers that exist in `stats.json`.** Never invent or estimate. (One exception: `hardestBug.line` may also use its candidate's `bugMessages` or `userMessages` from `samples.json`.) For hours, use whole hours rounded **down** (`floor(totals.activeMinutes / 60)`, e.g. 5,172 minutes → "86 hours"), which is what the video shows.
- **When the words name a stat, the number must be that stat**, not just any number in `stats.json`. The check matches:
  - "why" / "please" / "thanks" / "fix it" / "still broken" / "sorry" + N times → `phrases.*` (a pair like "please and thanks" may use the sum)
  - "after midnight" / "late night" + N sessions → `time.lateNightSessions`
  - "cheated" / "switched" + N times → `agentSwitches.topSwitch.count` (or `sameDay` / `sameProject`)
  - "double-checked" / "review" → `backgroundRuns` `review` counts; "helpers" / "sub-agents" → `subagent` counts
  - N hours → `floor(totals.activeMinutes / 60)` (or `totals.activeHours` with 1 decimal); N sessions → `totals.sessions`; N commits → `shipped.commits` / `aiCommits`; N% AI (of commits) → `shipped.aiShare`
  - …unless the line names something narrower: a project or agent ("lumen: 30 hours", "110 Codex sessions"), "longest session", "busiest day" / "biggest day", or the previous period ("last month"). Then it's that one's number.
- **personality.id** must be one of: `3am-shipper, rewriter, polite-one, speedrunner, bug-whisperer, architect, juggler, marathoner, weekend-warrior`. Usually take `personalityHints[0]`. Pick from the top 3 only if the samples clearly fit another one better. `title` = the standard title for that id.
- Keep text short. Captions ≤ 70 characters, `personality.line` ≤ 110, funny lines ≤ 90. Each one should read in about 2 seconds.
- **Tone:** a playful roast, never mean. No swearing at the user.
- **Never** quote anything that looks like a secret, a private person's name, an email, or client details. Paraphrase.
- `projects`: up to 3, using names from `stats.projects`.
- `hardestBug`: from `samples.json → bugCandidates` (the first one has the most bug messages). Say what the bug was about in one line, from its `firstMessage` and `bugLines`; "took N messages" uses its `bugMessages`. If they don't say what the bug was, pick the next candidate. Use `null` if there are no candidates or no consent.
- `funnyLines`: 1–3 lines built from `phrases`, `time.lateNightSessions`, `agentSwitches`, `longestSession`, `shipped`...
- `backgroundLine`: if `backgroundRuns.total > 0`, one joke built from its real counts (e.g. Codex `review` → "Codex double-checked itself N times"; `subagent` → "Your agents spun up N little helpers"). Otherwise `null`.
- `mainAI` caption only matters with 2+ agents. Prefer `agentSwitches.topSwitch` ("You cheated on X with Y N times").
- Leave out captions you have nothing good for. The video has defaults. (The `personality` and `outro` scenes don't use captions: they show `personality` and `closing`.)
- The story only sees messages still on disk (`samples.json → onDisk`), but the numbers cover the whole period. Don't claim things about weeks you didn't see.

### 5. Check the story
Run `story-check`. If `ok` is false, fix every listed error in `story.json` and run it again (at most 3 rounds). Mention any `warnings` only if they matter.

### 6. Design choices
Run `prefs`.
- If `prefs.design` is `null` (first time), run `themes`, then ask these questions in **one** prompt (multiple-choice where the tool allows it):
  1. **Template**: "Auto (matches your personality)" plus each template from `themes` (`label` + `description`): Tape, Terminal, Receipt, Arcade. If they pick one (not Auto), ask one follow-up: which of that template's 3 `accents` (show each `label`).
  2. **Font**: Inter (default) or "My own font" (ask for the path to a .ttf / .otf / .woff2 file on their machine).
  3. **Format**: Vertical 9:16 (TikTok / Reels / Stories, default) · Wide 16:9 (X / YouTube) · Both.
  4. **Show project names?** Ask only if `stats.projects` isn't empty: "Yes" or "Hide them (Project A / B / C)". Project names can give away client work.
  Save with: `prefs --set '{"design":{"theme":"auto","accent":null,"font":{"kind":"inter"},"format":"vertical","hideProjectNames":false,"musicFile":null}}'` (`theme` = template id or `"auto"`, `accent` = accent id or `null`)
- If preferences exist, ask one question: "Use the same look as last time (template X, accent Y, format Z)?" and only re-ask what they want to change.
- Music: none by default. Only if the user offers their own audio file, set `"musicFile": "/abs/path"`. rewynd never ships music.

### 7. Render (zero tokens)
Run `render` (add `--format wide|both` only if they want to override the saved format just this once).
- The **first** render installs the video template's dependencies and a headless browser (a one-time download of a few hundred MB, 1–2 minutes; again after rewynd is updated). Say so before you start. After that it works offline.
- If the result has `storyErrors`, go back to step 5.
- Report the file path(s) from `files`. On macOS offer to open it (`open "<file>"`).
- With `--carousel`, `files` lists every slide: report the folder instead (`output/carousel-<period>/`, plus `carousel-<period>-wide/` for wide), with slides named `01-intro.png`, `02-hours.png`… in posting order. On macOS offer `open "<folder>"`.

### 8. Wrap up (2 lines)
- Where the video is, and that it's made to post (the footer links back to rewynd).
- Remind them: **run `/rewynd` (or `/rewynd status`) at least once every 30 days** so no day is lost. Claude Code deletes transcripts after 30 days by default, and rewynd never changes that setting. It just keeps its own daily totals.

## Status mode

1. Run `status`. It **saves any new days first**, so the answer is current.
2. Summarize in a short list, plain language:
   - **Saved:** `saved.days` days, from `saved.first` to `saved.last` (this run: `saved.thisRun.created` new, `saved.thisRun.updated` updated). Data folder: `dataDir`.
   - **Agents:** one line each from `agents[]`: found or not, `humanSessions` you started, plus background runs. Use `note` when something is skipped (e.g. Cursor/Antigravity "support planned later", OpenCode "installed, no sessions").
   - **At risk:** from `claudeRetention`: Claude Code keeps transcripts `cleanupPeriodDays` days (`isDefault` = the 30-day default). The oldest transcript (`oldestTranscript`) is deleted around `oldestDeletedOn`. Days already saved are safe. Say: "Run /rewynd or /rewynd status at least once every N days."
   - **Gaps:** if `saved.gapsLast90Days > 0`, list `gapRanges` as days rewynd never saw (it wasn't run in time). They can't be recovered. They show as "no tape" in the video, not as zero work.
3. If `gitGuard.ok` is false: warn that personal stats are tracked by git and show `gitGuard.fix` (don't run it yourself).
4. If `previousData` is non-empty (days saved by an older rewynd install), ask: "Copy N saved days from <dir> into your current rewynd?" On yes, run `migrate-data --from "<dir>"` (it copies, never moves, and never shrinks a saved day) and report the result.

## Setup mode

Optional first-run explainer. It explains one thing, saves what's on disk now, and changes **nothing** else.
1. **Explain, in 3 short lines:**
   - Claude Code deletes session transcripts after **30 days** by default (`cleanupPeriodDays`). It's a deliberate security default: transcripts can contain code and secrets.
   - rewynd **doesn't change that setting** (or any agent setting). It keeps its own **daily totals** (counts, hours, project names, never your messages) in its own `data/` folder.
   - Once a day is saved, it counts in every future recap, even after the transcripts are gone.
2. **Run `status`** and report it as in status mode (the first run can take ~30 seconds on a big history).
3. **The one thing to remember:** "Run `/rewynd` or `/rewynd status` **at least once every <cleanupPeriodDays> days**." Mention `claudeRetention.oldestDeletedOn` as the next day at risk.
4. Finish with: "When you're ready for the video, run `/rewynd`."

## Never
- Never edit `~/.claude/settings.json` or any other agent's settings or files, even if the user asks rewynd to "fix" retention. If they want longer retention, point them to Claude Code's own `cleanupPeriodDays` setting and let them change it themselves.
- Never change any agent's settings or files (including `cleanupPeriodDays`). Read-only, always.
- Never send raw logs anywhere, never paste message samples into the chat, never upload anything. The only network use is `--github`, and only when asked.
- Never write Remotion code. The video template is fixed and only receives props.

Files in this skill

  • SKILL.md14.1 KB
  • contract/recap.ts12.4 KB
  • package.json306 B
  • scripts/cli.ts4 KB
  • scripts/collect.ts7.3 KB
  • scripts/commands.ts3.3 KB
  • scripts/lib/args.ts1.5 KB
  • scripts/lib/exec.ts1.4 KB
  • scripts/lib/files.ts1.1 KB
  • scripts/lib/lines.ts3.1 KB
  • scripts/lib/log.ts1.1 KB
  • scripts/lib/paths.ts7.5 KB
  • scripts/lib/time.ts4.3 KB
  • scripts/migrate.ts3.8 KB
  • scripts/render/prefs.ts2.5 KB
  • scripts/render/render.ts14.4 KB
  • scripts/samples/pick-samples.ts5.5 KB
  • scripts/samples/redact.ts3.3 KB
  • scripts/shipped/ai-match.ts5.1 KB
  • scripts/shipped/collect-shipped.ts3.6 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.