/self-improve:collect-gitfrom self-improve
Summarizes the last 7 days of git history from repos listed in a config file into a markdown digest. Part of a self-improvement loop.
Ships in self-improve. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Plugin root: ${CLAUDE_PLUGIN_ROOT}. The Bash tool does NOT receive CLAUDE_PLUGIN_ROOT as an environment variable;
always use the substituted absolute path in commands. <data> is the folder printed by
python "${CLAUDE_PLUGIN_ROOT}/selfimprove.py" where ($SELF_IMPROVE_HOME, or ~/self-improve).
Run this as one standalone command (py instead of python on Windows):
python "${CLAUDE_PLUGIN_ROOT}/collectors/git.py" --days 7
The script runs only git log on the repos in <data>/repos.txt. It never writes, fetches, pulls, resets, deletes
or pushes. To add or remove repos, the user edits <data>/repos.txt. If the script says there is no repo list,
write a one-line digest saying so.
From that output only, write <data>/digests/<YYYY-MM-DD>-git.md, using today's local date:
# Git digest <date> (last 7 days)
## <repo>
- Activity: <commits, files, busiest areas>
- Themes: <what the work was about, from the commit subjects>
- Rework: <fix/revert/retry commits and what they suggest>
- Hygiene: <generated, runtime or oversized files being committed, if any>
## Patterns
- <findings worth acting on, with evidence>
Keep it under about 80 lines.
Rules:
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
5 skills in this plugin
/collect-outsideSelf-improve loop, collector 3: read a fixed list of outside release notes and changelogs (Claude Code, Python, plus any feeds listed in <data folder>/sources.txt) and write the items relevant to this setup into <data folder>/digests/<date>-outside.md. Use when running /self-improve:self-improve-run or when asked for recent upstream changes./collect-sessionsSelf-improve loop, collector 1: summarize the last 7 days of Claude Code sessions into <data folder>/digests/<date>-sessions.md (goals, what worked, what failed or was retried, instructions the user had to repeat). Use when running /self-improve:self-improve-run or when asked to collect or summarize recent sessions./improve-systemSelf-improve loop, improve step: read the latest <data folder>/digests/*-combined.md, apply small reversible fixes (with backups and a change-log entry), and write bigger changes to a dated review file for the user to tick. On later runs, apply only ticked review items. Use when the user says /self-improve:improve-system or the scheduled loop runs it after /self-improve:self-improve-run./self-improve-runSelf-improve loop orchestrator: run the three collectors (collect-sessions, collect-git, collect-outside) in order, then write <data folder>/digests/<date>-combined.md with the top findings ranked by how often they recur. Use when the user says /self-improve:self-improve-run, 'run the self-improve loop', or when the scheduled task runs it.npx claudepluginhub ahmadhammoud56/moaa --plugin self-improve