agentleFS
daizhouchendaizhouchen/openclaw-skills/skills/git-storyteller/SKILL.md

git-storyteller

Skill0 starsChanged 47 days agoMITView on GitHub

分析 Git 仓库历史并生成包含时间线、贡献统计和里程碑的 HTML 报告。用于项目历史回顾或 Git 历史可视化。

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
  1. Distinctive:

    Follow these steps in order:

    line 15
  2. Distinctive:

    If the user specifies a repo path, use that.

    line 19
  3. Distinctive:

    If the user is working inside a git repo (check with git rev-parse --show-toplevel), use the current repo.

    line 20
  4. Distinctive:

    If no repo can be determined, ask the user to specify one.

    line 21
  5. Distinctive:

    Run the analysis script to collect and process git history data:

    line 25
  6. Distinctive:

    Commit log with authors, dates, messages

    line 32
  7. Distinctive:

    Commit frequency over time

    line 37
  8. Very specific:

    If no JSON path is given, it reads git-story-data.json from the current directory.

    line 47
  9. Distinctive:

    All scripts require Python 3.7+ and Git installed on the system.

    line 66

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Where the HTML report was saved
  2. A brief narrative summary of key findings:
    • Total commits, contributors, and time span
    • Top contributors
    • Notable dramatic events found
    • Key milestones
  3. Suggest they open project-story.html in 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.