Repo Timelapse
Repo timelapse

Turn a git repo's history into a video of the project growing. Files appear as a living treemap coloured by language that grows with the code, glows when touched and fades on delete, with a date, a lines-of-code counter, commit messages…
--- name: repo-timelapse description: Turn a git repo's history into a video of the project growing. Files appear as a living treemap coloured by language that grows with the code, glows when touched and fades on delete, with a date, a lines-of-code counter, commit messages typing in as captions and an activity sparkline. 16:9 or 9:16, dark or light. Use when the user says "timelapse of my repo", "visualise git history", "build in public video", "show how the project grew", "animate my commits", or wants a video of a codebase evolving. --- # Repo timelapse Two steps: read the history into a JSON file, then render it. Both only read the repo. ``` SK=~/simcraft/skills/video/repo-timelapse python3 $SK/scripts/extract.py <repo> -o history.json node $SK/scripts/render.mjs history.json preview.mp4 --preview node $SK/scripts/render.mjs history.json timelapse.mp4 ``` Needs python3, git, node with Playwright (already in the simcraft repo root), and ffmpeg (set `FFMPEG` to use a specific one).
Overview
Two steps: read the history into a JSON file, then render it. Both only read the repo.
Manual install (npx, ZIP)
npx skills add dotslashsimran/simcraft --skill repo-timelapse -g -a claude-codenpx degit dotslashsimran/simcraft/skills/video/repo-timelapse#main ~/.claude/skills/repo-timelapseConnects with Agent Alley MCP · agentalley.io/mcp
Files included
SKILL.md4.3 KB
Read SKILL.md here
Show the full text63 lines
Repo timelapse
Two steps: read the history into a JSON file, then render it. Both only read the repo.
SK=~/simcraft/skills/video/repo-timelapse
python3 $SK/scripts/extract.py <repo> -o history.json
node $SK/scripts/render.mjs history.json preview.mp4 --preview
node $SK/scripts/render.mjs history.json timelapse.mp4
Needs python3, git, node with Playwright (already in the simcraft repo root), and ffmpeg (set FFMPEG to use a specific one).
Steps
Extract and read the report.
extract.pyprints activity by month, the busiest 30 days, the biggest folders, bulk commits and a suggested duration. Use it to pick the story before rendering anything.Pick the story. A whole repo is rarely the best video. Choose one arc and say it in one line, such as "the week I built the MVP" or "how the API folder took over". Narrow with:
--since 2025-03-01 --until 2025-04-01for a stretch of time,--path src/apito film one folder,--exclude 'docs/**'when docs, fixtures or generated files dwarf the code. Re-run extract after each change and check the report again.
Clean the noise. Lockfiles, vendored and build folders, minified files and test cassettes are skipped by default. Merge commits are folded into the main line, so line counts stay exact. If the report lists a bulk commit (an import or generated code), exclude its folder unless the import is the story.
Preview. Render with
--preview(half size, 30fps, about 10 seconds for a 40-second video) and watch it. Check pacing, that captions are readable, and that the map is not dominated by one folder. For single frames use--stills 3,12,25, which writes PNGs into the output folder.Render the final without
--preview. It renders at 1080p and 60fps by default. A 30-second video takes about a minute.Report the file path, the range and filters used, and anything excluded.
Render options
--duration 30sets the length in seconds. Use the suggestion from the report: about 20 seconds for a small repo, 40 to 60 for a big one.--verticalrenders 1080x1920 for Reels, TikTok and Shorts.--size 2560x1440sets any size.--theme lightswitches to the light theme. Dark is the default.--highlight src/apidims everything outside that folder and shows its line count.--title "My app",--subtitle "...",--end-text "part 2 next week"change the cards.--no-titleand--no-endremove them.--grow fillkeeps the map full size from the first commit. The defaultareamakes it grow with the code.--fps 30halves render time.
Extract options: --anonymize (Contributor 1, 2, ...), --rev main, --name, --max-events 1500, --include-default-noise.
Pacing
- Quiet weeks are compressed automatically. Busy days get more screen time than empty ones, but a long pause never stops the video.
- Captions change at most about once a second. When several commits land close together, the most descriptive message is shown, so "wip" and "fix" rarely appear.
- Fewer than 10 commits makes a thin video. Pick a repo or range with at least 30.
Posting
- The video opens on a title card, so put the hook in the post text: the final line count or the arc. For Reels,
--no-titlestarts the motion in the first frame. - For 9:16, the layout already keeps the top 150px and bottom 380px clear of platform buttons. Put your own text caption above the video in the editor, not over the map.
- Add a stacked caption in the post that names the arc, such as "60 days of building X, every commit".
- Anonymise authors for repos with other people's names in them, and check commit messages in the preview for anything private before posting.
How it works, the data format and the known limits: reference.md.
| 1 | |
| 2 | name repo-timelapse |
| 3 | description Turn a git repo's history into a video of the project growing. Files appear as a living treemap coloured by language that grows with the code, glows when touched and fades on delete, with a date, a lines-of-code counter, commit messages typing in as captions and an activity sparkline. 16:9 or 9:16, dark or light. Use when the user says "timelapse of my repo", "visualise git history", "build in public video", "show how the project grew", "animate my commits", or wants a video of a codebase evolving. |
| 4 | |
| 5 | |
| 6 | # Repo timelapse |
| 7 | |
| 8 | Two steps: read the history into a JSON file, then render it. Both only read the repo. |
| 9 | |
| 10 | |
| 11 | SK=~/simcraft/skills/video/repo-timelapse |
| 12 | python3 $SK/scripts/extract.py <repo> -o history.json |
| 13 | node $SK/scripts/render.mjs history.json preview.mp4 --preview |
| 14 | node $SK/scripts/render.mjs history.json timelapse.mp4 |
| 15 | |
| 16 | |
| 17 | Needs python3, git, node with Playwright (already in the simcraft repo root), and ffmpeg (set `FFMPEG` to use a specific one). |
| 18 | |
| 19 | ## Steps |
| 20 | |
| 21 | **Extract and read the report.** `extract.py` prints activity by month, the busiest 30 days, the biggest folders, bulk commits and a suggested duration. Use it to pick the story before rendering anything. |
| 22 | |
| 23 | **Pick the story.** A whole repo is rarely the best video. Choose one arc and say it in one line, such as "the week I built the MVP" or "how the API folder took over". Narrow with: |
| 24 | `--since 2025-03-01 --until 2025-04-01` for a stretch of time, |
| 25 | `--path src/api` to film one folder, |
| 26 | `--exclude 'docs/**'` when docs, fixtures or generated files dwarf the code. |
| 27 | Re-run extract after each change and check the report again. |
| 28 | |
| 29 | **Clean the noise.** Lockfiles, vendored and build folders, minified files and test cassettes are skipped by default. Merge commits are folded into the main line, so line counts stay exact. If the report lists a bulk commit (an import or generated code), exclude its folder unless the import is the story. |
| 30 | |
| 31 | **Preview.** Render with `--preview` (half size, 30fps, about 10 seconds for a 40-second video) and watch it. Check pacing, that captions are readable, and that the map is not dominated by one folder. For single frames use `--stills 3,12,25`, which writes PNGs into the output folder. |
| 32 | |
| 33 | **Render the final** without `--preview`. It renders at 1080p and 60fps by default. A 30-second video takes about a minute. |
| 34 | |
| 35 | **Report** the file path, the range and filters used, and anything excluded. |
| 36 | |
| 37 | ## Render options |
| 38 | |
| 39 | `--duration 30` sets the length in seconds. Use the suggestion from the report: about 20 seconds for a small repo, 40 to 60 for a big one. |
| 40 | `--vertical` renders 1080x1920 for Reels, TikTok and Shorts. `--size 2560x1440` sets any size. |
| 41 | `--theme light` switches to the light theme. Dark is the default. |
| 42 | `--highlight src/api` dims everything outside that folder and shows its line count. |
| 43 | `--title "My app"`, `--subtitle "..."`, `--end-text "part 2 next week"` change the cards. `--no-title` and `--no-end` remove them. |
| 44 | `--grow fill` keeps the map full size from the first commit. The default `area` makes it grow with the code. |
| 45 | `--fps 30` halves render time. |
| 46 | |
| 47 | Extract options: `--anonymize` (Contributor 1, 2, ...), `--rev main`, `--name`, `--max-events 1500`, `--include-default-noise`. |
| 48 | |
| 49 | ## Pacing |
| 50 | |
| 51 | Quiet weeks are compressed automatically. Busy days get more screen time than empty ones, but a long pause never stops the video. |
| 52 | Captions change at most about once a second. When several commits land close together, the most descriptive message is shown, so "wip" and "fix" rarely appear. |
| 53 | Fewer than 10 commits makes a thin video. Pick a repo or range with at least 30. |
| 54 | |
| 55 | ## Posting |
| 56 | |
| 57 | The video opens on a title card, so put the hook in the post text: the final line count or the arc. For Reels, `--no-title` starts the motion in the first frame. |
| 58 | For 9:16, the layout already keeps the top 150px and bottom 380px clear of platform buttons. Put your own text caption above the video in the editor, not over the map. |
| 59 | Add a stacked caption in the post that names the arc, such as "60 days of building X, every commit". |
| 60 | Anonymise authors for repos with other people's names in them, and check commit messages in the preview for anything private before posting. |
| 61 | |
| 62 | How it works, the data format and the known limits: [reference.md]. |
| 63 |
Details
- License
- MIT
- Stars on the repo
- ★ 546
- Checked
- Source
- dotslashsimran/simcraft ↗
- Creator
- dotslashsimran · 9 listings
Similar skills
See all →
CI/CD Pipeline Setup
Semantic Release Automation
Orca CLI
Worker Coordination Engine
Vercel Deployment Tool
Pull Request ManagerMore from dotslashsimran
Clean Audio
From Scratch
Image Gen
Perspective Illusion
Reverse Engineer a Video
Rough Cut: Trim the Fat