Git Commit Advisor

    by Braulio Moreira

    1

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

    Free

    Security scanned

    Works with the AI Agents you already use

    Git Commit Advisor

    Example session with this skill installed

    I've been working on the login flow but also fixed a typo in the README and refactored the Auth provider. I have some stuff staged already. What should I do?

    • Read your context and instructions
    • Compiled the git commit advisor

    I have inspected your working tree and index. You have 3 files staged and 2 files with unstaged changes, including a mix of documentation and logic.

    Commit Advice

    GroupPurposeFiles/HunksSuggested Message
    Commit 1DocumentationREADME.mddocs: fix typo in installation instructions
    Commit 2Refactorsrc/providers/AuthProvider.tsx (Hunks 1-3)refactor(auth): simplify provider context initialization
    Commit 3Featuresrc/providers/AuthProvider.tsx (Hunk 4), src/hooks/useLogin.tsfeat(auth): implement login flow validation

    Verdict: Split first. Your current staged area contains a mix of the README fix and half of the AuthProvider refactor. This will result in a non-atomic commit.

    Verification:

    • git diff --check: No whitespace errors detected.
    • Observed: You have not yet run npm test.
    • Recommended: Run tests for AuthProvider.tsx before committing Group 2 and 3.

    Next steps

    1. Unstage everything: git reset.
    2. Stage the README individually for the first commit.
    3. Use git add -p src/providers/AuthProvider.tsx to separate the initialization refactor from the new login logic.

    Connects securely to your tools. The creator never sees your data.

    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.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 5 days ago

    • Free with an Agensi account

    Software
    Git

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed5 days ago

    What's inside

    Creator

    Braulio Moreira

    Braulio Moreira

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    New in Prompt & Skill Engineering

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Prompt & Skill Engineering.

    Free