# Git Commit Advisor

> Expert Git strategy advisor that analyzes your diffs to recommend atomic commits and clear staging plans.

Git Commit Advisor is a free AI agent skill on Agensi by Braulio Moreira, in Prompt & Skill Engineering. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Braulio Moreira](https://www.agensi.io/creators/braulio-raul-moreira-carcamo)
- Category: [Prompt & Skill Engineering](https://www.agensi.io/skills/prompt-skill-engineering)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/git-commit-advisor
- Tags: prompt-engineering, git, code-review, workflow-automation, productivity

## About this skill

Beginner developers often struggle with "mega-commits" that mix refactoring, bug fixes, and feature work into a single unreviewable mess. This skill acts as a technical advisor that inspects your local workspace and provides a precise staging plan to ensure every commit is atomic and coherent.

### What it does
- **Change analysis** reads your staged and unstaged diffs to identify logical boundaries between unrelated edits.
- **Commit grouping** recommends which specific files or hunks belong together based on purpose rather than file type.
- **Verification checks** cross-references changes against your project's linting and testing state to ensure intermediate commits won't break the build.
- **Privacy auditing** flags potential secrets, tokens, or generated files accidentally caught in your diff before they hit your history.
- **Naming guidance** generates specific, imperative commit messages that follow your repository's local conventions or Conventional Commits.

### How it works
1. Run the advisor when you have a messy working tree or are unsure if a change is "ready."
2. The agent performs read-only diagnostics like `git diff --stat` and `git status` to map your changes.
3. Review the provided **Verdict** and **Staging Plan** to see which hunks should be grouped.
4. Manually stage and commit the suggested groups using your preferred Git client or terminal.

### Frameworks & tools
Works with any Git-based project. It specifically recognizes Conventional Commits and integrates with standard read-only Git CLI tools and VS Code Source Control patterns.

### Why this beats prompting it yourself
Generic LLMs often hallucinate file paths or suggest dangerous `git commit -am` shortcuts that ignore unstaged changes. This skill is hard-coded to never execute destructive commands, ensuring you retain manual control while following a verified, read-only diagnostic workflow.

### Use cases
- Splitting a large afternoon of work into five logical, reviewable PR commits.
- Separating a quick refactor from the feature logic that depends on it.
- Identifying which specific hunks require `git add -p` when a single file has mixed concerns.
- Enforcing commit message standards across a junior-heavy engineering team.

### Known limitations
Does not perform Git actions like staging or pushing. Requires a local Git environment and will not function if it cannot execute read-only CLI commands.

## Requires

- Git

## 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 Commit Advisor skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Will this skill automatically stage or commit my code for me?

No, the Git Commit Advisor is designed with a 'safety-first' read-only approach. It analyzes your workspace and provides a staging plan, but you maintain full control by manually executing the suggested commands.

### Can it handle situations where I've made multiple unrelated changes within the same file?

The Advisor identifies distinct logical changes—like separating a bug fix from a style refactor—within a single file. It will then provide you with the specific instructions to use 'git add -p' to stage only the relevant hunks for each atomic commit.

### Which AI agents or development environments are required to use this skill?

This skill is compatible with any AI agent that has access to a local terminal or filesystem. It works across all programming languages and frameworks as long as the project uses Git for version control.

### How does the skill ensure I don't accidentally commit sensitive information like API keys?

The Advisor includes a built-in privacy auditor that scans your diffs for sensitive patterns like API keys, tokens, or environment files. It will flag these risks in your staging plan before they are accidentally committed to your history.

### Does the naming guidance support Conventional Commits (e.g., feat:, fix:)?

Yes, the skill is pre-configured to recognize and generate messages following Conventional Commits, but it can also adapt to your repository's existing local naming conventions based on your project history.

---

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.
