Skills

Ce Commit

Create a git commit with a clear, value-communicating message.

Install

npx skills add EveryInc/compound-engineering-plugin --skill ce-commit -g -a claude-code -y
Category
Git and review
Updated
3d ago
License
MIT
Context cost
Lightabout 1,250 tokens
Runs scripts
No, instructions only

What it does

Create a git commit with a clear, value-communicating message. Use when the user asks to commit/save staged or unstaged changes with a repo-appropriate message.

Git Commit

Create well-crafted local commit(s) from the current working tree. No push, no PR, use ce-commit-push-pr for the full ship flow.

Done when: each logical change is committed with an explicit file list and a message that states the outcome, and git status is clean of those changes. Stop when: the tree is clean (nothing to commit).

Context

Gather context with each command as its own shell tool call (program + args only). Do not join with ;, &&, ||, pipes, $(...), or redirects, that syntax fails under Windows PowerShell. A non-zero exit is a normal state to interpret, not a failure to suppress.

CommandPurposeNon-zero / empty means
git statusWorking-tree stateNot a git repo, stop
git diff HEADUncommitted changesUnborn repo / no commits yet
git branch --show-currentCurrent branchEmpty = detached HEAD
git log --oneline -10Recent message styleUnborn repo, no history
git rev-parse --abbrev-ref origin/HEADRemote default branchNo origin/HEAD / bare HEAD, try gh repo view --json defaultBranchRef --jq '.defaultBranchRef.name', else main

Treat this as a snapshot. Re-read branch and staged set immediately before committing if anything may have changed.

Default branch name: strip a leading origin/ from origin/HEAD (so origin/trunk → trunk). Use that bare name for all “on the default branch?” checks, never compare against origin/<name>.

Workflow

  1. Gather, run every Context command above (own shell call each), then continue.

  2. Nothing to commit, if git status shows no staged, modified, or untracked files, report that and stop. Do not use git diff HEAD alone as cleanliness (it misses untracked files).

Read the whole SKILL.md on GitHub

More in Git and review