# Git Commit Planner

> Audit Git changes to plan and execute safe, logically grouped commits with Conventional Commit messages.

Git Commit Planner is a free AI agent skill on Agensi by Harpreet Singh, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Harpreet Singh](https://www.agensi.io/creators/harpreet-singh)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/git-commit-planner
- Tags: code-review, git, developer-tools, workflow-automation

## About this skill

Managing a messy working directory often leads to bloated "updated files" commits or accidentally leaked secrets. This skill audits your Git repository to organize pending changes into logical, atomic commits with proper Conventional Commit messages.

### What it does
- **Change auditing**: Inspects staged, unstaged, and untracked files to understand the intent of every modification.
- **Commit grouping**: Batches related features and tests while separating unrelated fixes or documentation typos.
- **Safety filtering**: Automatically flags and excludes potential secrets, tokens, private keys, and environment files from commit plans.
- **Dependency validation**: Checks that manifest updates match their corresponding lockfiles and that new configurations include documentation.
- **Command generation**: Provides explicit `git add` and `git commit` commands for each group, avoiding dangerous `git add .` patterns.

### How it works
1. **Repository inspection**: Run the skill to scan your status, diffs, and recent log history for context.
2. **Review the plan**: The agent returns a sequence of commands and a summary of excluded or questionable files.
3. **Refine or approve**: You can ask to split a commit, change a message, or include a file previously marked for review.
4. **Execution**: Ask the agent to run the approved commands directly if your environment allows.

### Frameworks & tools
This skill requires `git` installed on the host. It optionally uses `bash` for enhanced context gathering but can fall back to standard Git commands for cross-platform compatibility.

### Why this beats prompting it yourself
Generic prompts often miss untracked files or fail to detect when a lockfile is missing a corresponding manifest change. This skill follows a strict logic for secret detection and commit ordering that prevents common repository hygiene errors.

### Use cases
- Split a large day of work into five clean, descriptive commits.
- Ensure credentials in a new `.env` file are never accidentally staged.
- Generate precise Conventional Commit messages that follow repository standards.
- Detect when a feature was changed but its corresponding tests were forgotten.

### Known limitations
Does not perform history rewrites, pushes, or rebases. Best-effort secret detection; it does not guarantee 100% identification of all sensitive patterns.

## 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 Planner 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

### How does this skill help manage a messy working directory compared to standard Git commands?

The skill acts as a pre-commit auditor that analyzes your diffs to group related changes together, ensuring each commit is atomic, logically organized, and follows Conventional Commit standards while filtering out sensitive files like .env or private keys.

### What AI agents or environments is the Git Commit Planner compatible with?

This skill is designed to work with any AI agent that has access to a local terminal and Git installation; it utilizes standard Git commands and optional Bash scripts for cross-platform compatibility.

### Can this skill automatically rebase or push my code to a remote repository?

No, the skill is designed for safety and only generates 'git add' and 'git commit' sequences; it will not perform destructive actions like rebasing, force-pushing, or rewriting your existing history.

### How does the secret detection feature prevent me from accidentally committing sensitive data?

The planner uses a strict logic-based auditing process to detect patterns common to API tokens, credentials, and environment files, flagging them for exclusion before they are ever staged.

### Can I customize the suggested commit messages or groupings before they are finalized?

Yes, you can review the proposed commit plan and ask the agent to split a single commit into two, modify specific messages, or add files that were initially excluded before any commands are executed.

---

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.
