Works with the AI Agents you already use

    Git Commit Planner

    by Harpreet Singh

    1

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

    Free

    Security scanned
    Git Commit Planner

    Git Commit Planner

    Example session with this skill installed

    Review my pending changes and plan the commits. I have a new user auth feature, some fixed CSS in the header, and an accidental change to a .env file.

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

    I have grouped your changes into two logical commits and excluded the sensitive environment file.

    Git Commit Plan

    
    # Group 1: User Authentication
    git add src/auth.ts src/__tests__/auth.test.ts
    git diff --staged
    git commit -m "feat(auth): implement user login and registration logic"
    
    # Group 2: Header Styling
    git add src/components/Header.css
    git diff --staged
    git commit -m "fix(ui): correct header alignment on mobile views"
    
    # Clean up accidental staging
    # git restore --staged .env
    

    The .env file was excluded as it contains potential secrets. I also detected src/auth.ts changes but noticed docs/api.md was not updated; I have kept the docs out of this plan.

    Heads-up:

    • Excluded .env to prevent credential leak.
    • Suggested git restore for the staged secret.

    Next steps

    1. Does this plan look correct, or would you like any changes?
    2. Would you like to run these commands yourself, or should I execute them for you?

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

    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.

    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

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    New in Code Quality & Review

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.

    Free