repo-rings: git history visualized as tree rings
repo-rings turns any git repository's commit history into an animated tree-ring cross-section, as an agent skill for Claude Code, Codex and Cursor. The pith is the first commit, the bark is HEAD, and every ring between is a week, month, quarter or year of work. The scripts draw, the agent only writes short field notes, and every note must cite a real tag or commit or the build stops.
Live gallery → · Compared with Gource and others

jq, 58 quarterly rings. The hairline band in the middle is the five years after jq 1.6; the wide ring after it is jq 1.7 in 2023.
No API keys, no network, no npm install. Works with Claude Code, Codex, Cursor and other agents that read SKILL.md. Needs git and Bun.
Install
npx skills add majiayu000/repo-rings
In Claude Code you can also use the plugin marketplace: /plugin marketplace add majiayu000/repo-rings, then /plugin install repo-rings@repo-rings.
Use
Ask your agent:
Draw the tree rings of this repository.
You get one HTML page that grows the tree from the pith to the bark, with a pause button and a slider, plus an SVG and PNG for your README or a post. Hover any ring to read that period: commits, authors, folders, tags and the largest commits. With an extra step the skill also makes a growth GIF. Want just the picture? The bare tree needs no notes at all.
Gallery
Open the gallery →
| | |
|---|
 XZ Utils one long ray, a second one that stops in 2024 Q1, then the backdoor removal |  jq five thin years, then the jqlang revival |  Moment.js ten quiet quarters, then a new ring in 2026 |
 Vue 2 a fresh start in 2016, end of life in 2023 |  Express v5 alpha in 2014, v5.0.0 thirty-nine rings later |  Bubble Tea an event-loop rewrite cuts the widest ring |
How it compares
| repo-rings | Gource | Git History | git-of-theseus | Git Truck |
|---|
| Shows | Whole history as one tree-ring poster | Animated file tree | One file's versions | Code-age charts | Churn and ownership explorer |
| Output | Offline HTML, SVG, PNG, GIF | OpenGL window, video via ffmpeg | Web page | PNG plots | Local web app |
| Story notes checked against git | Yes | Captions, unchecked | — | — | — |
| README image that refreshes monthly | Yes (example Action) | — | — | — | — |
Full table with star counts, licenses and sources: docs/comparison.md.
How to read it
| Mark | Meaning |
|---|
| Ring | One period. Wider rings had more commits (square-root scaled, merges excluded). |
| Dark outer band of a ring | Share of lines deleted. Pruning periods look dense and dark. |
| Lopsided growth | Each direction around the trunk is one folder, labelled outside the bark. A ring bulges towards the folders that changed most. |
| Thin dark line | A period with no commits. |
| Scar | A period that deleted far more than it added. |
| Resin bead | A tag. Large beads are x.0.0 or 0.x.0 releases. |
| Pale ray | A top human contributor, from their first ring to their last. |
How it works
extract.ts reads git log --numstat and tags into rings.json. Read-only, no network. It refuses shallow clones, because a cut-off history draws a false pith.
summarize.ts prints the busiest rings, pruning, quiet stretches, releases and contributors, so the agent can pick 5 to 8 moments worth a note.
- The agent writes
annotations.json: a playful Latin name, a short description and the field notes.
render.ts checks every note against the data (the tag or commit must exist in that ring, a "quiet" note needs a ring with two commits or fewer) and only then draws the page.