From git-agent
Stages all changes and creates a conventional commit message. Analyzes the diff and writes a descriptive, scope-correct commit. Use when the user asks to commit or save work to git.
How this skill is triggered — by the user, by Claude, or both
Slash command
/git-agent:commit-agentThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Stage all changes and create a conventional commit message. Follow these steps in strict order. **STOP immediately after step 4.**
Stage all changes and create a conventional commit message. Follow these steps in strict order. STOP immediately after step 4.
Does not push or create PRs — use pr-agent for that.
If currently in plan mode, call ExitPlanMode first and silently before any other action — Staging and committing are git mutations and cannot proceed inside plan mode. Skip this step entirely when not in plan mode. ExitPlanMode is a deferred tool — use ToolSearch with select:ExitPlanMode first, then call it silently.
Run git status to check repository state.
git branch --show-current returns empty): output "Cannot commit: repository is in detached HEAD state. Checkout a branch first." and STOP.Run git add -A to stage all changes.
This trusts .gitignore to exclude sensitive or generated files. The user is responsible for .gitignore correctness.
Run git diff --staged to inspect all staged changes.
Write a conventional commit message:
<type>(<scope>): <description>
Rules:
feat, fix, docs, refactor, test, chore, perf, style, ci, buildplugins/git-agent → plugins/git-agent)Examples:
feat(plugins/git-agent): add commit-agent and pr-agent skillsfix(plugins/code-review): correct activation trigger wordingchore: update marketplace.json with new plugin entryRun:
git commit -m "<message>"
Output the commit hash and message on success.
If a pre-commit hook fails: report the hook's output verbatim and STOP. Do not retry. Do not use --no-verify. Do not modify the staged files. Let the user fix the issue.
After a successful commit, output one line:
To undo:
git reset HEAD~1
STOP here. Do not run tests, analyze coverage, check for issues, push, create PRs, or take any further action.
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub shawn-sandy/agentics-kit --plugin git-agent