ce-commit
What it does
This skill saves your local code changes as one or more git commits with clear messages. It is for developers who want tidy commit history without the extra shipping steps.
When to use it
- βWhen you want to save your current changes as a commit with a clear message.
- βWhen you have several unrelated changes and want them split into separate commits.
- βWhen you want to commit locally and decide about pushing later.
Skill link
https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-commit/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you commit my current changes with a clear message?β
5 new skills a week. 1 minute to read.
How it works
The skill reads the working tree and recent commit style, groups the changed files, and writes a commit message that states the outcome. It then creates the commit and checks that the changes are saved.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
| Command | Purpose | Non-zero / empty means |
|---|---|---|
git status |
Working-tree state | Not a git repo β stop |
git diff HEAD |
Uncommitted changes | Unborn repo / no commits yet |
git branch --show-current |
Current branch | Empty = detached HEAD |
git log --oneline -10 |
Recent message style | Unborn repo β no history |
git rev-parse --abbrev-ref origin/HEAD |
Remote default branch | No 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
Gather β run every Context command above (own shell call each), then continue.
Nothing to commit β if
git statusshows no staged, modified, or untracked files, report that and stop. Do not usegit diff HEADalone as cleanliness (it misses untracked files).Branch first β if detached HEAD, or on the default branch (
main/master/ the bare default name above), create a feature branch from the change content (git checkout -b <name>), then re-readgit branch --show-current. Do not ask β commit-only still must not leave work only on a detached HEAD or the default branch. If the derived name exists, pick a non-conflicting suffix.Convention β match project commit conventions already in context; else match the recent log pattern; else conventional commits (
type(scope): description). When using conventional commits andfix/featboth fit, default tofix:(remedying broken or missing behavior); reservefeat:for new capabilities. User override wins.Logical commits β if changed files clearly split into distinct concerns, make separate commits (file level only, 2β3 max, no
git add -p). If ambiguous, one commit.Message β subject is imperative and names the outcome (what is now possible or fixed), not the file list. Body only when motivation or trade-offs are not obvious from the subject. When a plan Implementation Unit ID is already in hand for this commit (conversation, caller, or the files belong to one unit), append that unit's U-ID in parentheses β
(U3)means unit 3. Do not hunt for a plan. Omit when the commit spans units, the unit is unclear, or no plan is in hand. When the commit carries someone else's work that will not otherwise land under their name (ported from their branch or PR, or applied from their patch), end the message with aCo-authored-by: Name <email>trailer for each person that work credits: its commit authors and anyone theirCo-authored-bytrailers name. Copy each identity exactly from those commits or the patch. Never guess an email: when none is recorded, name them in the message body instead.- Bad:
Update checkout.rb/Add tests and fix stuff - Good:
Fix double-submit on checkout - Good:
Add per-subscription mute (U3)
- Bad:
Stage and commit β stage named files only (never
git add -Aorgit add .). Honorexclude:<paths>when the invocation carries it: those files stay uncommitted no matter what else changed; say in the report that they were left out. Write the full message β subject line, blank line, optional body β to a file outside the repo with your file-write tool, then stage and commit as two calls per commit group:
git add file1 file2 file3
git commit -F <message-file> -- file1 file2 file3
No shell parses the message with -F: a $, quotes, backticks, or a multi-line body pass through literally under any shell, with no quoting rules to satisfy. Git's normal whitesp
FAQ
Does it push my commit?
No. It only creates local commits, and the full shipping flow is a separate skill.
What if there is nothing to commit?
The skill stops and reports that the working tree is clean.
Does it match my repo's message style?
Yes. It checks recent commit messages so the new message fits the existing style.
Details
Original description by the author
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.
Popularity
- GitHub stars
- 26k
- Ranking position
- #10023
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
ce-babysit-pr
26kHelps your agent keep an open GitHub pull request moving toward merge by handling review comments, failing checks and out-of-date branches over time.
ce-bakeoff
26kHelps your agent build several competing solutions to a problem, compare them and combine the strongest parts into one recommended approach.
ce-brainstorm
26kHelps your agent turn a vague idea into a clear, right-sized set of requirements before any work starts, through a short guided conversation.
ce-code-review
26kHelps your agent review a named code change or pull request for bugs, regressions, missing tests and standards problems, and report clear findings.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.