# Git History Analyzer

> Extract engineering metrics, bus factor risks, and code hotspots from git history.

Git History Analyzer is a paid AI agent skill on Agensi by aingram702, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $1.99 (one-time purchase)
- Creator: [aingram702](https://www.agensi.io/creators/aingram702)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-10-18
- Security: scan passed (2026-10-12); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/git-history-analyzer
- Tags: code-review, llm-ops, devops, git, python

## About this skill

Engineering managers and leads often struggle to identify technical debt and bus factor risk until a developer leaves or a deployment fails. This skill mines git logs to transform raw commit history into actionable repository health metrics.

### What it does
- **Hotspot detection** identifies files with high change frequency that are likely candidates for refactoring.
- **Bus factor analysis** calculates line ownership per file to surface single-point-of-failure risks.
- **Temporal coupling** finds hidden dependencies by tracking files that are frequently committed together.
- **Churn tracking** measures the ratio of lines added versus deleted to monitor codebase stability.
- **Author distribution** maps knowledge silos across directories based on commit volume and recency.

### How it works
1. **Targeting** specifies the time range or specific subdirectories to analyze within the local repository.
2. **Extraction** runs the analysis engine to parse git logs, blame data, and commit metadata.
3. **Reporting** generates a Markdown summary of hotspots, risks, and activity trends.
4. **Data Export** produces CSV files for deeper analysis in external spreadsheet or visualization tools.

### Frameworks & tools
This skill utilizes `git` CLI, `python3`, and standard shell utilities to process repository metadata.

### Why this beats prompting it yourself
Standard LLM prompts cannot access the full history of a local repository or perform complex statistical aggregations on thousands of commits. This skill automates the heavy lifting of git log parsing and applies specific logic to calculate metrics like bus factor and temporal coupling accurately.

### Use cases
- Auditing a legacy codebase to find the most bug-prone modules for refactoring.
- Assessing team knowledge distribution before a major organizational change.
- Identifying hidden architectural dependencies that cause regression errors.
- Onboarding new developers by showing them which files are high-activity hotspots.

### Known limitations
Requires a local git repository and Python 3. Accuracy of author metrics depends on consistent git mailmap configurations.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Git History Analyzer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How is this different from just asking an AI to review my code?

This skill analyzes local git logs and blame data to calculate engineering health metrics like bus factor, code hotspots, and temporal coupling that standard LLMs cannot access or process on their own.

### What exactly do I get when I purchase the Git History Analyzer?

You will receive the complete skill package, including the git analysis engine, pre-configured reporting templates, and documentation for exporting metrics to CSV or Markdown formats.

### Are there any specific technical requirements or dependencies for this skill to work?

The skill requires a local Git repository, Python 3, and the Git CLI installed on the environment where your AI agent or runner is active.

### Can I limit the analysis to specific parts of a repository or a certain timeframe?

Yes, you can specify individual subdirectories or define specific time ranges (e.g., the last six months) to focus your analysis on specific project phases or legacy modules.

### Does this skill handle repositories with multiple contributors and different email aliases for the same person?

The skill uses Git's internal metadata to track authorship; for the most accurate results in teams where members use multiple email addresses, we recommend having a standard .mailmap file in your repository.

### Which AI agents or frameworks are compatible with this skill?

This skill is designed to work with any AI agent or platform that supports local tool execution and Python-based file processing.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
