git-storyteller
Skill0 starsChanged 47 days agoMITView on GitHub
分析 Git 仓库历史并生成包含时间线、贡献统计和里程碑的 HTML 报告。用于项目历史回顾或 Git 历史可视化。
In this repository9 other files it gives its agents.
- api-mockerSkill
- codebase-cartographerSkill
- commit-poetSkill
- data-detectiveSkill
- doc-archaeologistSkill
- env-guardianSkill
- regex-wizardSkill
- svg-icon-forgeSkill
- terminal-dashboardSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 8 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈8
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Follow these steps in order:
- Distinctive: line 19
If the user specifies a repo path, use that.
- Distinctive: line 20
If the user is working inside a git repo (check with git rev-parse --show-toplevel), use the current repo.
- Distinctive: line 21
If no repo can be determined, ask the user to specify one.
- Distinctive: line 25
Run the analysis script to collect and process git history data:
- Distinctive: line 32
Commit log with authors, dates, messages
- Distinctive: line 37
Commit frequency over time
- Very specific: line 47
If no JSON path is given, it reads git-story-data.json from the current directory.
- Distinctive: line 66
All scripts require Python 3.7+ and Git installed on the system.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Storyteller
Resolve <skill_dir> to the directory containing this SKILL.md. Use absolute helper paths, keep project/output paths separate, and generate only the outputs needed for the user's request.
Transform a Git repository's commit history into a visual narrative HTML report.
Workflow
Follow these steps in order:
Step 1: Identify the Target Repository
- If the user specifies a repo path, use that.
- If the user is working inside a git repo (check with
git rev-parse --show-toplevel), use the current repo. - If no repo can be determined, ask the user to specify one.
Step 2: Run the Analysis Script
Run the analysis script to collect and process git history data:
python3 "<skill_dir>/scripts/analyze.py" <repo-path>This produces a git-story-data.json file in the current working directory containing:
- Commit log with authors, dates, messages
- Contributor statistics and rankings
- File change heatmap
- Dramatic events (late-night commits, reverts, hotfixes)
- Milestones (merge commits, tags, large refactors)
- Commit frequency over time
Step 3: Render the HTML Report
Generate the visual HTML report from the analysis data:
python3 "<skill_dir>/scripts/render.py" [path-to-json]If no JSON path is given, it reads git-story-data.json from the current directory.
This produces a project-story.html file.
Step 4: Present the Results
Tell the user:
- Where the HTML report was saved
- A brief narrative summary of key findings:
- Total commits, contributors, and time span
- Top contributors
- Notable dramatic events found
- Key milestones
- Suggest they open
project-story.htmlin a browser for the full interactive experience.
Important Notes
- The analysis limits history to the most recent 2 years to handle large repos efficiently.
- The HTML report is a single HTML file; charts require the Chart.js CDN.
- Dark theme with responsive design for comfortable viewing.
- All scripts require Python 3.7+ and Git installed on the system.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

