agent-ops-git-analysis
Analyze git repository for insights: contributor stats, commit patterns, branch health, and change analysis. Outputs actionable reports.
npx skills add majiayu000/claude-skill-registry --skill agent-ops-git-analysis --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Git Analysis Skill Generate repository insights and health reports from git history. ## Commands All analysis uses standard `git` commands. No external dependencies required. ### Quick Stats ```bash # Total commits git rev-list --count HEAD # Contributors count git shortlog -sn --all | wc -l # First and last commit dates git log --reverse --format=%ci | head -1 git log -1 --format=%ci # Files in repository git ls-files | wc -l # Lines of code (approximate) git ls-files | xargs wc -l 2>/dev/null | tail -1 ``` ### Contributor Analysis ```bash # Commits per author git shortlog -sn --all # Commits per author (last 30 days) git shortlog -sn --since="30 days ago" # Most active files by author git log --author="Name" --name-only --pretty=format: | sort | uniq -c | sort -rn | head -20 ``` ### Commit Patterns ```bash # Commits by day of week git log --format=%ad --date=format:%A | sort | uniq -c | sort -rn # Commits by hour git log --format=%ad --date=format:%H | sort | uniq -c | sort -n # Commits per month (last year) git log --since="1 year ago" --format=%ad --date=format:%Y-%m | sort | uniq -c # Average commits per day (last 30 days) # commits / 30 ``` ### Branch Health ```bash # List
- Commands
- Quick Stats
- Contributor Analysis
- Commit Patterns
- Branch Health
- Large Files Detection
- Change Analysis
- Report Templates
- Quick Health Report
- Contributor Report
- Diff Report
- Invocation
- Example Invocations
- Notes
Total commits git rev-list --count HEAD Contributors count git shortlog -sn --all | wc -l First and last commit dates git log --reverse --format=%ci | head -1 git log -1 --format=%ci Files in repository git ls-files | wc -l Lines of code (approximate)
What does the agent-ops-git-analysis skill do?
Analyze git repository for insights: contributor stats, commit patterns, branch health, and change analysis. Outputs actionable reports.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill agent-ops-git-analysis --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
