Atomic Git Commits

VerifiedCaution

Creates logically grouped, atomic git commits with well-formatted messages following best practices and conventional commits.

Sby Skills Guide Bot
DevelopmentBeginner
7/22/2026
Claude CodeCursorCodex
#git#commits#conventional-commits#version-control#staging

Recommended for

Automated summary

This skill inspects pending git changes and splits them into atomic commits whose messages match the style already used in the repository.

Strengths

  • Automatically infers the repo's commit convention by reading the last 20 commits (conventional commits or not)
  • Uses git add -p to keep unrelated changes inside the same file in separate commits
  • Enforces the seven classic commit message rules (imperative subject, 50 chars, 72-char body, etc.)
  • Verifies each commit with git show and re-runs git status at the end so nothing is left out

Limitations

  • Does not handle conflict resolution, rebasing, or pushing — it only creates local commits
  • Grouping changes into logical commits relies on model judgement and may need human review
  • Assumes an existing git repo with enough history to detect the commit style
When to use it

Reach for it when a messy batch of edits needs to become clean, reviewable commits before opening a pull request.

When not to use it

Skip it for a single trivial change, or when you need to rewrite existing history (amend, interactive rebase, squash).

Security analysis

Caution
Quality score92/100

The skill is a legitimate git commit assistant with no exfiltration, obfuscation, or destructive instructions. However, Bash(git:*) is a powerful permission that technically enables destructive and remote-affecting git commands, so it warrants caution rather than safe.

Findings
  • •allowed-tools grants Bash(git:*), which is broader than the documented commands and includes destructive or history-rewriting operations such as git push, git reset --hard, git clean -fd, and git rebase.
  • •The skill may modify repository state and commit history by design, so it carries meaningful execution risk even though the instructions themselves are not malicious.
  • •Edit permission is not clearly needed for the documented commit workflow and could allow unintended file modification.
How this analysis is made

name: git-commit description: Create logically grouped, atomic git commits with well-formatted commit messages following best practices. Use when user says "/commit", "commit changes", "create commits", asks about conventional commits format, needs to split changes into multiple commits, or wants help with git add -p partial staging. allowed-tools:

  • Bash(git:*)
  • Read
  • Edit

Git Commit Skill

This skill helps you create well-structured, atomic git commits with properly formatted commit messages.

Task Overview

Based on the current git status and changes, create a set of logically grouped, atomic commits. Be specific with each grouping, and keep scope minimal. Leverage partial adds to make sure that multiple changes within a single file aren't batched into commits with unrelated changes.

Process

  1. Analyze Current State

    • Run git status and git diff HEAD to see all staged and unstaged changes
    • Check recent commits (git log --oneline -20) to learn the project's commit style: whether it uses conventional commits (e.g., feat:, fix:, docs:), typical subject line length, capitalization, and formatting
  2. Group Changes Logically

    • Identify related changes that should be committed together
    • Separate unrelated changes into different commits
    • Use git add -p for partial adds when a file contains multiple logical changes
  3. Create Commits

    • Stage the appropriate changes for each commit
    • Write commit messages following the best practices below, matching the project's style
    • Verify each commit with git show
    • After all commits, run git status to confirm nothing was missed

Commit Message Format Detection

  • If 80% or more of recent commits follow conventional commits, use that format
  • Match the capitalization, punctuation, and structure of existing commits — consistency matters more than personal preference

Conventional Commits Format

If the project uses conventional commits, follow this structure:

<type>[(optional scope)]: <description>

[optional body]

[optional footer(s)]

Common types:

  • feat: A new feature
  • fix: A bug fix
  • docs: Documentation changes
  • style: Code style changes (formatting, missing semicolons, etc.)
  • refactor: Code changes that neither fix bugs nor add features
  • perf: Performance improvements
  • test: Adding or updating tests
  • build: Changes to build system or dependencies
  • ci: Changes to CI configuration
  • chore: Other changes that don't modify src or test files

Examples:

  • feat: add user authentication
  • fix: resolve null pointer in login handler
  • docs: update API documentation
  • refactor(auth): simplify token validation logic

Git Commit Message Best Practices

Follow these seven rules for excellent commit messages (adjust for conventional commits if used):

  1. Separate subject from body with a blank line - Critical for readability
  2. Limit subject line to 50 characters - Forces concise summaries
  3. Capitalize the subject line - Consistent formatting
  4. Do not end subject line with a period - It's a title, not a sentence
  5. Use imperative mood in subject - "Add feature" not "Added feature"
    • Test: Subject should complete "If applied, this commit will _____"
  6. Wrap body at 72 characters - Ensures readability in terminals
  7. Use body to explain what and why vs. how - Code shows how, commit explains why

Message Structure

<subject: concise summary, imperative, capitalized, no period>

<body: explain the motivation for the change and contrast with previous behavior>

<footer: references to issues, breaking changes, etc.>

Key Principles

  • Atomic commits: Each commit should represent one logical change
  • Context is king: Explain why the change was made, not just what
  • Future-proof: Write for someone (including future you) reading this months later
  • Consistency: Maintain uniform style across the project

Examples

Good Examples (Traditional Style):

  • Refactor subsystem X for readability
  • Remove deprecated methods from UserService
  • Fix null pointer exception in login handler
  • Add user authentication middleware

Good Examples (Conventional Commits):

  • feat: add user authentication middleware
  • fix: resolve null pointer exception in login handler
  • refactor: improve subsystem X readability
  • chore: remove deprecated methods from UserService

Bad Examples:

  • fixed stuff
  • Changes
  • wip
  • Update file.js
  • feat added new feature (incorrect format - missing colon)

Reference Documentation

For detailed information on conventional commits, see:

Notes

  • Don't push to remote unless explicitly asked
  • Verify authorship and commit details before amending

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/atomic-git-commits-mrwakbl2' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/atomic-git-commits-mrwakbl2/download' --output '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md.part' && mv '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md.part' '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md' && test -s '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/git-commit' && cp -R '.skill-downloads/atomic-git-commits-mrwakbl2' '.claude/skills/git-commit'

Cursor
test -f '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md' && test -s '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/git-commit' && cp -R '.skill-downloads/atomic-git-commits-mrwakbl2' '.cursor/skills/git-commit'

Codex
test -f '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md' && test -s '.skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/git-commit' && cp -R '.skill-downloads/atomic-git-commits-mrwakbl2' '.agents/skills/git-commit'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/atomic-git-commits-mrwakbl2'

openskills read 'atomic-git-commits-mrwakbl2'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/atomic-git-commits-mrwakbl2/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills