# Git Branch Analyzer

> Analyzes Git repository branch topology using libgit2 bindings and git-log parsing. Identifies stale branches, merge conflicts, and divergence points via the GitHub GraphQL API.

- Skill: `agentskillexchange/git-branch-analyzer` (Agent Skill)
- Install (CLI): `npx skillmds@latest add agentskillexchange/git-branch-analyzer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/agentskillexchange/git-branch-analyzer/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: agentskillexchange (https://skillmd.com/u/agentskillexchange)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/agentskillexchange/git-branch-analyzer

---


# Git Branch Analyzer

Analyzes Git repository branch topology using libgit2 bindings and git-log parsing. Identifies stale branches, merge conflicts, and divergence points via the GitHub GraphQL API.

## Installation

Use the upstream install or setup path that matches your environment:
- $ cmake ..
- $ cmake --build .
- $ cmake -DEXPERIMENTAL_SHA256=ON ..
- $ cmake -DOPENSSL_ROOT_DIR=/tmp/openssl-3.3.2 ..

Requirements and caveats from upstream:
- [Python](http://www.pygit2.org/),
- [Node.js](http://nodegit.org),
- Node.js, or Ruby, then there is probably a

Basic usage or getting-started notes:
- [Quick Start](#quick-start)
- [Advanced Usage](#advanced-usage)
- ===========

- Source: https://github.com/libgit2/libgit2
- Extracted from upstream docs: https://raw.githubusercontent.com/libgit2/libgit2/HEAD/README.md

## Documentation

- https://www.libgit2.org/

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/git-branch-analyzer-libgit2/)

