Agent skill
commit
Create git commits with appropriate commit messages. Use when the user asks to commit, create a commit, write a commit message, or mentions "commit" in the context of saving changes to git.
Install this agent skill to your Project
npx add-skill https://github.com/jroslaniec/agent-skills/tree/main/commit
SKILL.md
Git Commit
Step 1: Gather Context
Run the skill's context-gathering script:
<skill-location-dir>/scripts/gather-commit-context.sh
The script outputs the current working directory first. Verify you are in the correct repository before proceeding.
Step 2: Decide Commit Style
One-line when: <100 lines, simple change, user asks for "short/quick commit"
Detailed when: >100 lines, multiple components, user asks for "detailed commit"
Match project style: Use conventional commits (feat:, fix:) only if recent commits use them.
Step 3: Create Commit
git commit -m "message"
git commit -m "title" -m "- bullet 1
- bullet 2"
Rules
- NEVER include attribution markers in commit messages. This includes but is not limited to:
- "Co-Authored-By" or "Co-authored-by" headers
- "Generated by", "Created by", "Written by" followed by any AI/LLM name
- Footers like "🤖 Generated with Claude Code" or similar
- Any mention of AI tools: Claude, GPT, Copilot, Codex, Gemini, Cursor, or other LLMs/assistants
- Any text or links indicating AI involvement in creating the commit
- NEVER do
git add . - If pre-commit modifies files: add them and retry
- If pre-commit fails: ask user
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
taskify-prd
skill-new
Create or update Agent Skills for any supported coding agent. Use when the user asks how to author a skill, requests a new skill directory, or needs updates for their installed coding agent(s).
git-worktree
Manage git worktrees and branches. Use when the user asks to create a worktree, new worktree, create a branch, new branch, switch branches, or work on a new feature.
github-pr
Create GitHub pull requests using gh CLI with automatic stacked PR detection. Use when the user asks to create a PR, open a pull request, make a PR, or mentions creating/opening a pull request on GitHub.
pytest-unit
Write pytest unit tests for Python code changes. Use when adding tests for new or modified Python code in projects that use pytest.
prd
Create Product Requirements Documents (PRDs) through structured interviews. Use when the user asks to create a PRD, write requirements, spec out a feature, or needs help defining what to build.
Didn't find tool you were looking for?