agentleFS
tam159tam159/next-role/.claude/skills/commit/SKILL.md

commit

Skill62 starsChanged 57 days agoMITView on GitHub

Stage current changes and create a Conventional Commits-style commit matching this repo's history. Use when the user says "commit", "commit this", or asks for a commit message. Pre-commit hooks will run automatically.

  • Reads credentials

194 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-branch, review-r and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    create-branch

    Create a git branch following Sentry naming conventions. Use when asked to "create a branch", "new branch", "start a branch", "make a branch", "switch to a new branch", or when starting new work on the default branch.

    Also in 4 projects that use this

  • luischanciSkill

    review-r

    Run the R code review protocol on R scripts. Checks code quality, reproducibility, domain correctness, and professional standards. Produces a report without editing files.

    Also in 3 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 3 projects that use this

  • AWSSkill

    issue

    Implement a GitHub issue end-to-end — branch, code, test, docs, and commit.

    Also in 9 projects that use this

  • luischanciSkill

    validate-bib

    Validate bibliography entries against citations in all manuscript files. Find missing entries and unused references.

    Also in 3 projects that use this

  • +2 more from luischanci

The file

We split this skill into the rules it gives an agent

8 rules. 0 are common, 5 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 175 edited versions we read keep these.

  • 5

    Distinctive

    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:

    Create a single commit using Conventional Commits format, matching the style in git log.

    line 7
  2. Distinctive:

    Run these in parallel:

    line 11
  3. Distinctive:

    Add the specific files that belong in this commit by name.

    line 19
  4. Very specific:

    Never stage .env, credentials, or other secrets.

    line 20
  5. Distinctive:

    Commit with a HEREDOC so formatting survives:

    line 27
  6. Distinctive:

    After the commit succeeds, run git status to confirm a clean tree and report the commit SHA + subject.

    line 40
  7. Very specific:

    Add a Co-Authored-By trailer unless the user has asked for one (this repo's history doesn't use them).

    line 45
  8. Very specific:

    Use --amend unless explicitly requested.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 175 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

Create a single commit using Conventional Commits format, matching the style in git log.

Workflow

  1. Run these in parallel:
    • git status (see what's untracked / modified)
    • git diff and git diff --staged (see what will be committed)
    • git log --oneline -10 (match recent style)
  2. Review the changes and group them into ONE commit. If the diff spans clearly unrelated changes, ask the user whether to split.
  3. Stage explicitly (avoid git add -A / git add .):
    • Add the specific files that belong in this commit by name.
    • Never stage .env, credentials, or other secrets. If gitleaks would flag it, don't stage it.
  4. Compose the commit message:
    • Subject: <type>: <short imperative summary> — lowercase, no trailing period, ≤72 chars.
    • Types in use here: feat, fix, chore, docs, refactor, test.
    • Body (optional): explain the why, not the what. Wrap at 72 chars.
  5. Commit with a HEREDOC so formatting survives:

    git commit -m "$(cat <<'EOF'
    feat: <subject>
    
    <optional body>
    EOF
    )"
  6. Pre-commit will run automatically. If it modifies files (auto-fix), re-stage and create a NEW commit — do not amend unless the user asks. If hooks fail with errors, fix the underlying issue and create a new commit; never bypass with --no-verify.
  7. After the commit succeeds, run git status to confirm a clean tree and report the commit SHA + subject.

Do not

  • Push to the remote unless the user asks.
  • Add a Co-Authored-By trailer unless the user has asked for one (this repo's history doesn't use them).
  • Use --amend unless explicitly requested.

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.