Skip to content

Commit helper that stages changes, splits mixed diffs, and writes Conventional Commits messages.

CCM score
42 of 100
skills.sh installs
172
GitHub stars
886
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the commit workflow: staging unstaged changes, reviewing the diff, and writing the message
  • Reads current status, branch, staged and unstaged stats, and the last five commits before committing
  • Enforces the Conventional Commits 1.0.0 format with types, optional scopes, and BREAKING CHANGE footers
  • Suggests splitting a diff into several smaller commits when it contains multiple distinct logical changes

Install

$ npx -y skills add bastani-inc/atomic --skill gh-commit -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Smart Git Commit

Create well-formatted commit: $ARGUMENTS

Current Repository State

  • Git status: !git status --porcelain
  • Current branch: !git branch --show-current
  • Staged changes: !git diff --cached --stat
  • Unstaged changes: !git diff --stat
  • Recent commits: !git log --oneline -5

What This Command Does

  1. Checks which files are staged with git status
  2. If 0 files are staged, automatically adds all modified and new files with git add
  3. Performs a git diff to understand what changes are being committed
  4. Analyzes the diff to determine if multiple distinct logical changes are present
  5. If multiple distinct changes are detected, suggests breaking the commit into multiple smaller commits
  6. For each commit (or the single commit if not split), creates a commit message using conventional commit format

Best Practices for Commits

  • Follow the Conventional Commits specification as described below.

Conventional Commits 1.0.0

Summary

Details

Repository
github.com/bastani-inc/atomic
Category
Git & Releases
First seen
Jun 3, 2026

Questions

What does the gh-commit skill do?

The gh-commit skill creates well-formatted git commits that follow the Conventional Commits format. If no files are staged, it stages all modified and new files, reviews the diff, and suggests splitting the work into several commits when it contains distinct logical changes.

How do I install the gh-commit skill?

Run npx -y skills add bastani-inc/atomic --skill gh-commit -y in your project to install it. Once installed, the agent can write conventional commit messages for your staged or unstaged changes.

Where does gh-commit sit in the Git & Releases category?

gh-commit is listed in the Git & Releases category on Claude Marketplaces, alongside triage, git-guardrails-claude-code, setup-pre-commit, caveman-commit and pr. It focuses on writing the commit message and organizing commits rather than guarding or reviewing them.

More from bastani-inc/atomic

All 11

Similar to Gh Commit

More Git & Releases