agentleFS
zekhoizekhoi/claude/.agents/skills/kit-commit/SKILL.md

kit-commit

Skill0 starsChanged 20 days agoMITView on GitHub

Create git commits with messages that follow the repository's existing conventions, committing only the intended changes. Use when the user asks to commit, make a commit, or write a commit message for current changes. Do not use for pushing, opening pull or merge requests, rewriting history, or reviewing code.

  • Reads credentials

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Commit only when the user asked for a commit.

    line 8
  2. Distinctive:

    Run git status and git diff (staged and unstaged).

    line 12
  3. Distinctive:

    If the user named what to commit, commit only that.

    line 13
  4. Very specific:

    Never stage secrets, credentials, .env files, large generated artifacts, or files that .gitignore should cover.

    line 14
  5. Very specific:

    Read recent history (git log --oneline -20 and one or two full messages) and follow what it uses: Conventional Commits (type(scope): …

    line 18
  6. Very specific:

    Check for documented rules in CONTRIBUTING.md, commitlint configuration, or commit hooks.

    line 19
  7. Distinctive:

    If there is no convention, write a concise imperative subject of at most 72 characters, a blank line, and a body explaining what changed …

    line 20
  8. Distinctive:

    Do not change git configuration or author identity.

    line 27
  9. Distinctive:

    Use: "Commit these changes." "Write a commit message for what I staged."

    line 35

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “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

Commit

Commit only when the user asked for a commit. Never push, amend published commits, or rewrite history unless the user explicitly asks.

1. Inspect the changes

  • Run git status and git diff (staged and unstaged). Read the changes; do not commit what you have not looked at.
  • If the user named what to commit, commit only that. Otherwise determine whether the changes form one logical change. If they mix unrelated work, ask whether to split them or propose separate commits.
  • Never stage secrets, credentials, .env files, large generated artifacts, or files that .gitignore should cover. Stop and tell the user if any are part of the changes.

2. Match the repository's message convention

  • Read recent history (git log --oneline -20 and one or two full messages) and follow what it uses: Conventional Commits (type(scope): subject), ticket prefixes, capitalization, tense, line length, and trailers such as Signed-off-by.
  • Check for documented rules in CONTRIBUTING.md, commitlint configuration, or commit hooks.
  • If there is no convention, write a concise imperative subject of at most 72 characters, a blank line, and a body explaining what changed and why. Skip the body for trivial changes.
  • Describe the change accurately. Do not claim tests passed unless they ran.

3. Commit

  • Stage the intended paths explicitly (git add <paths>), not everything by default.
  • Respect hooks. If a pre-commit hook fails, fix the reported problem when it is within the change, or report it. Never bypass hooks with --no-verify unless the user asks.
  • Do not change git configuration or author identity.

4. Report

Show the commit hash and subject, list what was committed, and mention anything intentionally left uncommitted.

Examples

  • Use: "Commit these changes." "Write a commit message for what I staged."
  • Skip: "Push my branch." "Open a PR." "Squash the last three commits." (history rewrite needs explicit instructions)

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.