analyze-git-repo

analyze-git-repo is a skill for Claude Code, Codex from InstalabsAI/instagit. It costs 135 tokens per session (857 once invoked), scanned A, original, MIT.

A tool for examining a Git repository, which is a project whose files and history are tracked with Git. It answers questions about the code and can cite exact files and line numbers.

In plain words
What is it for?
Use it to understand project structure, investigate bugs across repositories, review APIs, plan migrations, or compare libraries.
Why use it?
It helps avoid guessing how unfamiliar code works or what an API actually accepts and returns.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; mentions Claude Code.

Good fit Use it to understand project structure, investigate bugs across repositories, review APIs, plan migrations, or compare libraries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/instalabsai/instagit/analyze-git-repo
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add InstalabsAI/instagit --skill analyze-git-repo
Clone the repo
git clone --depth 1 https://github.com/InstalabsAI/instagit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for analyze-git-repo

README.md
[![agentmods](https://agentmods.dev/badge/skills/instalabsai/instagit/analyze-git-repo/github.svg)](https://agentmods.dev/skills/instalabsai/instagit/analyze-git-repo)
Your own site
<a href="https://agentmods.dev/skills/instalabsai/instagit/analyze-git-repo"><img src="https://agentmods.dev/badge/skills/instalabsai/instagit/analyze-git-repo/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for analyze-git-repo

Your own site · 80×15
<a href="https://agentmods.dev/skills/instalabsai/instagit/analyze-git-repo"><img src="https://agentmods.dev/badge/skills/instalabsai/instagit/analyze-git-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 857 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.00857
Opus 5 $0.00068 $0.00428
Sonnet 5 $0.00027 $0.00171
Haiku 4.5 $0.00014 $0.00086

Measured 10d ago against content hash 9a900dd77626, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

analyze-git-repo scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/analyze-git-repo/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analyze Git Repo

Analyze any Git repository in depth — understand architecture, surface real APIs, debug across repo boundaries, and get source citations with exact file paths and line numbers. Powered by Instagit.

Quick Start

Add to MCP client configuration:

{
  "mcpServers": {
    "instagit": {
      "command": "npx",
      "args": ["-y", "instagit@latest"]
    }
  }
}

No API key required — auto-registers anonymous token on first use. Requires Node.js 18+.

For higher rate limits, sign up at instagit.com and add an API key:

{
  "mcpServers": {
    "instagit": {
      "command": "npx",
      "args": ["-y", "instagit@latest"],
      "env": {
        "INSTAGIT_API_KEY": "ig_your_api_key_here"
      }
    }
  }
}

Works with Claude Code, Claude Desktop, Cursor, VS Code, and any MCP-compatible client.

Tool: ask_repo

Analyze any Git repository with AI.

Parameter Type Required Description
repo string yes Repository URL, shorthand (owner/repo), or any public Git URL
prompt string yes What to analyze or ask about the codebase
ref string no Branch, commit SHA, or tag (default: repo's default branch)

Prompting Examples

For detailed examples across architecture, integration, debugging, migration, security, and code quality — see references/examples.md.

Key patterns:

repo: "nginx/nginx"
prompt: "How does nginx handle thousands of concurrent connections with its event-driven architecture? Walk through the event loop, worker process model, and connection state transitions."
repo: "hashicorp/terraform"
prompt: "How do I implement a custom Terraform provider from scratch? What interfaces does the SDK expose, how are CRUD operations mapped to the resource lifecycle, and how does schema definition work?"

Read the full file on GitHub · 91 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 91 lines · 135 tokens per session scan A 9a900dd77626

Subscribe to this mod's changes

analyze-git-repo is a skill published in the GitHub repository InstalabsAI/instagit (19 stars, last pushed 6mo ago), licensed MIT. It adds 135 tokens to every session and 857 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.