- Home
- Skills
- Prompt & Skill Engineering
- Git Commit Advisor
Git Commit Advisor
Expert Git strategy advisor that analyzes your diffs to recommend atomic commits and clear staging plans.
Free
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
| Group | Purpose | Files/Hunks | Suggested Message |
|---|---|---|---|
| Commit 1 | Documentation | README.md | docs: fix typo in installation instructions |
| Commit 2 | Refactor | src/providers/AuthProvider.tsx (Hunks 1-3) | refactor(auth): simplify provider context initialization |
| Commit 3 | Feature | src/providers/AuthProvider.tsx (Hunk 4), src/hooks/useLogin.ts | feat(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.tsxbefore committing Group 2 and 3.
Next steps
- Unstage everything:
git reset. - Stage the README individually for the first commit.
- Use
git add -p src/providers/AuthProvider.tsxto 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
- Run the advisor when you have a messy working tree or are unsure if a change is "ready."
- The agent performs read-only diagnostics like
git diff --statandgit statusto map your changes. - Review the provided Verdict and Staging Plan to see which hunks should be grouped.
- 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 -pwhen 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Creator
Braulio Moreira
Frequently Asked Questions
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.