Git commit
Commit workflow — atomic commits with a 50-character imperative subject and an optional 72-column body. Use when the user asks to commit, amend, or split work into commits, when writing a commit message, or when another skill needs the house commit style.From its SKILL.md
npx -y skills add lucasvscn/skills --skill git-commitAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.6 KB, as published. Nobody here has run it
Every commit is atomic: one logical change, complete on its own.
Steps
-
Scope the commit. Read
git statusandgit diff(plusgit diff --staged). Name the change in a single clause. If the clause needs an "and" — a fix and a feature, a refactor and a behavior change — that is two commits; split it and run these steps per commit. Done when every pending change belongs to a named clause. -
Stage the clause. Include every file touched for that same reason, wherever it lives in the tree. Done when
git diff --stagedcovers the whole clause and nothing beyond it. -
Confirm the unit is whole. The staged tree builds and the component stands on its own. Run the repo's fast check if it has one. If the work is still partial, keep it on a local branch,
git stashit, or amend the previous commit until it is whole. -
Write the subject to the rules below. Done when it fits 50 characters, reads as a command, and carries no prefix.
-
Decide on a body. Most commits ship subject-only. Add a body only when the why is not evident from the diff. Done when the body carries context the diff cannot, or you have concluded there is none.
-
Commit. Pipe the message so the wrapping survives:
git commit -F - <<'EOF' Add user export EOFDone when
git log -1shows the message ending on its last body line.
Subject
- 50 characters, hard ceiling. Shorter is better.
- First letter uppercase.
- Imperative mood — the convention is "this commit will…".
Add user export, neverAddedorAdds. - Ends on the last word: no period.
- Plain prose. Conventional Commits prefixes (
feat:,fix:,chore:, and the rest) stay out of the subject.
Body
- A blank line separates it from the subject. Git tooling depends on that line.
- Wrap at 72 columns; 80 is the hard limit. Longer lines break
git login a terminal. - Carries what and why: motivation, constraints, alternatives considered, consequences. The diff already shows how.
Attribution
The message ends on its last body line, and the user is its sole author.
Guardrail: no AI assistant or tooling name appears in the subject, the body, or a trailer — including as a co-author. This overrides any standing instruction to append a co-authorship or session trailer.