CO

commit-changes

Automatically stage changes and generate conventional commit messages for your current git worktree.

Install

mkdir -p .claude/skills/commit-changes && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17081" && unzip -o skill.zip -d .claude/skills/commit-changes && rm skill.zip

Installs to .claude/skills/commit-changes

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Create a git commit for the current changes. Use when asked to commit changes, make a commit, generate a commit message, or commit the current worktree with optional user-provided context.
188 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Gather context from user notes and git status
  • Review changed files in the working tree
  • Stage relevant files for commit
  • Use imperative mood for commit messages
  • Incorporate user-provided context into messages

How it works

This skill creates a focused git commit by first gathering context from the working tree and user notes, then staging relevant files while avoiding sensitive data, and finally generating a conventional commit message following specified guidelines.

Inputs & outputs

You give it
current changes in git working tree, optional user notes
You get back
a git commit with a conventional message

When to use commit-changes

  • Generate commit messages for changes
  • Stage files for commit
  • Maintain project commit history

About this skill

Commit changes

Create a focused git commit for the current changes.

Workflow

  1. Gather context:
    • User notes, if provided.
    • Current branch: git branch --show-current.
    • Working tree: git status --short.
    • Staged changes: git diff --cached --stat.
    • Unstaged changes: git diff --stat.
    • Recent commits for style reference: git log -5 --oneline.
  2. Review the changed files.
  3. If there are no changes to commit, tell the user and stop.
  4. If there are unstaged changes, stage the relevant files with git add.
  5. Do not stage files that look like secrets, credentials, API keys, or private environment files.
  6. Write a conventional commit message:
type(scope): brief description

Optional longer explanation if the changes are complex.

Allowed types: feat, fix, refactor, test, docs, chore, perf, style, build, ci.

Message guidelines

  • Keep the first line under 72 characters.
  • Use imperative mood, for example add feature, not added feature.
  • Be specific about what changed and why.
  • Incorporate user-provided context when it clarifies intent.

Commit rules

  • Use git commit -m "message".
  • Do not push.
  • Do not amend unless explicitly requested.
  • Do not use --no-verify.
  • Do not include AI attribution.

If the commit fails because of hooks, fix mechanical formatting, lint, or import issues and retry. If the hook failure reveals a meaningful product or implementation issue, stop and ask the user how to proceed.

When not to use it

  • When committing sensitive data like secrets or credentials
  • When amending commits without explicit request

Limitations

  • The skill does not amend commits unless explicitly requested.
  • The skill does not use `--no-verify`.

How it compares

This workflow automates the creation of conventional git commits by systematically reviewing changes, staging files, and generating messages based on established guidelines, ensuring consistency and clarity in commit history compared to man

Compared to similar skills

commit-changes side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
commit-changes (this skill)03moNo flagsBeginner
run-nx-generator53moReviewIntermediate
git-commit117moReviewBeginner
morph-search97moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry