agentleFS
aloiloraloilor/lean-coding-agent/skills/git-conventional-commit/SKILL.md

git-conventional-commit

Skill7 starsChanged 47 days agoMITView on GitHub

Create Conventional Commits 1.0.0 when the user explicitly asks to commit, and push when they also ask to push. Do not use for requests that only ask to propose a commit message, review changes, or stage files.

  • Deletes or force-pushes
  • Commits and pushes

6 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Read git status --short and git diff HEAD.

    line 8
  2. Distinctive:

    Commit the whole worktree unless the user narrows the scope, splitting unrelated changes into logical commits.

    line 9
  3. Very specific:

    Never discard or overwrite user changes, amend, rewrite history, force-push, or run destructive commands such as git reset --hard, git …

    line 19

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Git Conventional Commit

  1. Read git status --short and git diff HEAD.
  2. Commit the whole worktree unless the user narrows the scope, splitting unrelated changes into logical commits. Include changes that predate the session or were written manually. Ask only when boundaries are materially ambiguous.
  3. Stage each commit with git add <paths> or git add -A, check it with git diff --cached --stat, and commit as <type>[optional scope][!]: <description>. Use a short lowercase scope only when it adds context, and an imperative, repository-specific description without a trailing period. Add a body or footers only for durable context, issue references, or a BREAKING CHANGE: explanation.
  4. Repeat until git status --short is empty or only explicitly excluded changes remain; report those and the instruction that excluded them. Never create an empty commit; report when there is nothing to commit.

Push

Only when the user asks to push, and only after the commits succeed: run git push, or git push --set-upstream origin HEAD when the branch has no upstream. If HEAD is detached or there is no upstream and no origin, stop and report what is missing. If the push is rejected, report the error; do not rebase or retry with another push mode.

Safety

Never discard or overwrite user changes, amend, rewrite history, force-push, or run destructive commands such as git reset --hard, git checkout -- <path>, or git clean -fd unless the user explicitly asks.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.