Groups related changes into logical, well-crafted Git commits.

Install

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

Installs to .claude/skills/commit-hta218

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.

Commit changes with well-crafted messages, grouping related files into separate commits
87 charsno explicit “when” trigger
Beginner

Key capabilities

  • Analyze staging state and unstaged changes
  • Group related file changes into logical commits
  • Draft concise and descriptive commit messages
  • Stage and commit files for each group individually
  • Verify that all changes are committed
  • Report each commit hash and summary

How it works

The skill analyzes the current Git status, groups related file changes into logical units, and then stages and commits each group with a well-crafted message. It ensures a clean and organized commit history.

Inputs & outputs

You give it
Modified files in a Git repository
You get back
A series of focused Git commits with descriptive messages

When to use commit

  • Cleaning up messy git commits
  • Grouping related feature changes
  • Preparing a clean pull request

About this skill

Workflow

  1. Run these commands in parallel to understand the current state:

    • git status — see all tracked/untracked files and staging state
    • git diff — see unstaged changes
  2. Analyze ALL changes (staged + unstaged) and determine what should be committed:

    • If there are no changes at all, inform the user and stop
    • Do NOT commit files that likely contain secrets (.env, credentials, tokens, API keys). Warn the user if such files are present.
  3. Group related file changes into logical commits:

    • Do NOT lump all changes into a single commit
    • Examine each changed file and understand what it does
    • Group files that are part of the same logical change together (e.g., a component + its styles + its test = one commit)
    • Each group becomes its own commit
    • If only one logical change exists, one commit is fine
  4. For each group, draft a commit message:

    • Write natural, concise descriptions of what changed and why
    • Do NOT use conventional commits format (no feat:, fix:, chore: prefixes)
    • Do NOT add Co-Authored-By or any co-author trailers to commit messages
    • Keep the subject line under 72 characters
    • If the user provided a message or instructions via arguments, incorporate or use that for the relevant commit(s)
  5. For each group, stage and commit:

    • git add <specific files> for that group only
    • git commit -m "message"
    • Repeat for each group in a logical order (foundational changes first)
  6. Run git status after all commits to verify everything is clean.

  7. Report the result: show each commit hash and summary.

User Arguments

$ARGUMENTS

When not to use it

  • When committing files that likely contain secrets
  • When using conventional commits format

Limitations

  • Does not commit files that likely contain secrets
  • Does not use conventional commits format
  • Does not add `Co-Authored-By` trailers

How it compares

This skill systematically organizes changes into logical, focused commits with descriptive messages, improving version history readability, unlike lumping all changes into a single, generic commit.

Compared to similar skills

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

SkillInstallsUpdatedSafetyDifficulty
commit (this skill)01moReviewBeginner
resolve-conflicts818moReviewIntermediate
dependency-upgrade264moReviewIntermediate
openspec-onboard105moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry