# Git Diff Summarizer

> >

- **Type:** Skill
- **Install:** `agentstack add skill-theshubh007-agent-skill-finder-git-diff-summarizer`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [theshubh007](https://agentstack.voostack.com/s/theshubh007)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [theshubh007](https://github.com/theshubh007)
- **Source:** https://github.com/theshubh007/agent-skill-finder/tree/main/skills/git-diff-summarizer

## Install

```sh
agentstack add skill-theshubh007-agent-skill-finder-git-diff-summarizer
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

## What this skill does

Reads a raw `git diff` or unified diff text and returns a structured breakdown of
what changed. Identifies the affected files, counts added and removed lines per file,
writes a human-readable English summary of the change intent, and suggests a
conventional commit message (`feat:`, `fix:`, `chore:`, `refactor:`, `docs:`) based
on the change type detected.

## Inputs

- `diff_text` — raw output of `git diff`, `git diff HEAD`, or a `.patch` file content
- `context` — optional string describing the purpose of the change (improves commit message quality)

## Outputs

- `files_changed` — list of `{path, additions, deletions, change_type}` objects
- `lines_added` — total lines added across all files
- `lines_removed` — total lines removed across all files
- `summary` — 2–3 sentence plain-English description of what the diff does
- `commit_message` — suggested conventional commit message, e.g. `fix: correct token expiry check in auth middleware`

## Example

```bash
git diff HEAD | asf query "summarize this diff and suggest a commit message"
```

Output:
```json
{
  "files_changed": [
    {"path": "src/auth.js", "additions": 4, "deletions": 2, "change_type": "modified"}
  ],
  "lines_added": 4,
  "lines_removed": 2,
  "summary": "Fixed token expiry comparison using strict inequality. Updated unit test to cover the edge case.",
  "commit_message": "fix: use strict inequality for token expiry check in auth middleware"
}
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [theshubh007](https://github.com/theshubh007)
- **Source:** [theshubh007/agent-skill-finder](https://github.com/theshubh007/agent-skill-finder)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-theshubh007-agent-skill-finder-git-diff-summarizer
- Seller: https://agentstack.voostack.com/s/theshubh007
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
