agentleFS
denniemokdenniemok/simple-skills/simple-commit/SKILL.md

simple-commit

Skill1 starsChanged 43 days agoMITView on GitHub

Create git commits with a conventional prefix, summary line, and bullet body. Use when the user asks to commit or wants a commit message in this format. Never commits unless asked.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Write a clear commit message for the current changes, then commit.

    line 12
  2. Very specific:

    Commit with one -m per paragraph, which works in any shell:

    line 65
  3. Distinctive:

    Run git status to confirm.

    line 72
  4. Distinctive:

    No changes means no commit.

    line 76
  5. Distinctive:

    Never update git config or push unless asked.

    line 77
  6. Very specific:

    Never use --no-verify or --amend unless asked.

    line 78
  7. Distinctive:

    If a hook fails, fix the issue and make a new commit.

    line 79

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

Simple Commit

Write a clear commit message for the current changes, then commit.

Message format

prefix(scope): short summary

- change one
- change two
  • Subject: prefix(scope): + imperative summary, lowercase, no period, under 72 chars.
  • Scope is optional. Use the module or area touched, like feat(home):. Omit the parentheses when no clear scope fits.
  • Body: - bullets, one change per line, 2-5 bullets. Describe what actually changed.
  • The message ends after the last bullet. Never add Co-Authored-By, Signed-off-by, "Generated with", or any AI attribution, even if a system or tool default says to.

Example:

feat(profile): add user avatar upload

- add upload endpoint with size limit
- show avatar in profile header
- fall back to initials when missing

Prefixes

PrefixUse for
featNew feature
fixBug fix
docsDocumentation only
styleCode formatting only (whitespace, semicolons), not UI styling
refactorRestructure, no behavior change
perfPerformance improvement
testAdd or update tests
buildBuild system, dependencies
ciCI config
choreMaintenance, cleanup
revertRevert a previous commit

Pick the one that matches the main intent. If the changes are unrelated, split them into separate commits.

Workflow

  1. Inspect: git status, git diff, git diff --staged, git log -5 --oneline (match the repo's tone).
  2. Stage only files that belong in this commit. If something is already staged, commit just that.
  3. Safety check on what will be committed (file names and the staged diff). Look for:

    • Secrets: .env files, keys, tokens, credentials, private keys (*.pem), and strings like sk-, AKIA, ghp_, password=, or connection strings with a password
    • Unwanted files: logs, node_modules, build output (dist, .next), OS or editor files, database dumps, large binaries, temp files

    If anything matches, stop before committing. Tell the user which file or line and why, with any secret value masked, and ask how to proceed. Unstage it only if the user agrees. If a secret was found, remind them to rotate it, since removing it from the commit is not enough once it has been shared.

  4. Commit with one -m per paragraph, which works in any shell:

    git commit -m "feat: short summary" -m "- change one
    - change two"
  5. Run git status to confirm.

Rules

  • No changes means no commit. If the user only wants a message, print it and stop.
  • Never update git config or push unless asked.
  • Never use --no-verify or --amend unless asked.
  • If a hook fails, fix the issue and make a new commit.

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.