agentleFS
AkylasAkylas/oss-weather/.claude/skills/commit/SKILL.md

commit

Skill459 starsChanged 3 months agoMITView on GitHub

MANDATORY skill for ALL commits. Must be used EVERY TIME before creating any git commit. No exceptions.

We split this skill into the rules it gives an agent

15 rules. 0 are common, 12 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 168 edited versions we read keep these.

  • 12

    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:

    ALWAYS: run git diff --staged first to see changes

    line 12
  2. Very specific:

    ALWAYS: run the checks relevant to the change before committing (there are no test/lint/format scripts — invoke the binaries with npx.

    line 15
  3. Distinctive:

    NEVER: commit automatically as a side effect of making code changes.

    line 20
  4. Distinctive:

    If splitting into multiple commits: the full split plan (which files go in which commit, in what order)

    line 32
  5. Distinctive:

    If fixup: which commit SHA it targets and why

    line 33
  6. Distinctive:

    Then ask the user to confirm: Do not proceed until they approve.

    line 35
  7. Distinctive:

    Before creating a new commit, check whether the staged changes should be fixup'd into a recent commit on the current branch.

    line 41
  8. Distinctive:

    Run git log main..HEAD --oneline to list all commits on the branch since diverging from main

    line 45
  9. Distinctive:

    If a staged change clearly amends or extends code from a previous commit (same file, nearby lines, related logic — e.g.

    line 47
  10. Very specific:

    Run git commit --fixup=<sha> (with user confirmation)

    line 52
  11. Distinctive:

    If the change doesn't clearly relate to a previous commit, proceed with a normal new commit.

    line 55
  12. Distinctive:

    ONLY add a body when the header alone isn't enough for a reviewer:

    line 89
  13. Distinctive:

    Use the imperative present tense, same as the subject

    line 91
  14. Distinctive:

    Keep every line under 100 characters

    line 94
  15. Very specific:

    Only add a Co-Authored-By trailer when Claude actually wrote the code being committed.

    line 107

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

Generating Commit Messages

Mandatory Process

BEFORE ANY git commit COMMAND:

  1. ALWAYS run git diff --staged first to see changes
  2. ALWAYS analyze the staged changes thoroughly
  3. ALWAYS split the code changes into atomic commits, one per coherent / cohesive change. Tests for a change should be in the same commit as the change itself. A single feature spanning multiple files (module + view + test) is ONE cohesive change — do not split it by file. Only split when changes are truly unrelated (e.g. a bug fix + a new feature + a docs update)
  4. ALWAYS run the checks relevant to the change before committing (there are no test/lint/format scripts — invoke the binaries with npx; yarn vitest/yarn eslint/yarn prettier fail on Yarn 4):
    • Tests: npx vitest run <path> when a *.test.ts covers the change (isolate with a path or -t '<name>')
    • Types/Svelte: yarn svelte-check when .svelte/.ts typing is affected (this one is a real script)
    • Lint: npx eslint <changed files>
  5. ALWAYS generate a commit message following the format below
  6. NEVER commit automatically as a side effect of making code changes. Only commit when the user explicitly invokes the commit skill or says "commit".

Confirmation Before Committing

--auto (caller runs autonomously): skip all approval/confirmation waits here (commit-plan gate below + fixup/rebase) — commit directly. Diff review, atomic splitting, checks, message format unchanged.

User trust requires seeing the plan before execution. Always present the full commit plan and wait for explicit approval before running any git commit command.

For each commit (regular or fixup), present:

  • The commit message (header + body if applicable)
  • The list of files included
  • If splitting into multiple commits: the full split plan (which files go in which commit, in what order)
  • If fixup: which commit SHA it targets and why

Then ask the user to confirm. Do not proceed until they approve. If they request changes to the message or grouping, adjust and re-present.

This applies equally to regular commits, fixups, and any commits triggered during the open-pr workflow.

Auto-Fixup Detection

Before creating a new commit, check whether the staged changes should be fixup'd into a recent commit on the current branch.

Process:

  1. Run git log main..HEAD --oneline to list all commits on the branch since diverging from main
  2. For each staged file, check git log main..HEAD -- <file> to see if it was modified in a recent branch commit
  3. If a staged change clearly amends or extends code from a previous commit (same file, nearby lines, related logic — e.g. fixing a typo introduced in a prior commit, adding a missing import for a recently added module), suggest fixup'ing into that commit
  4. Present the suggestion: "This change to <file> looks like it should be fixup'd into <sha> <message>. Want me to fixup instead of creating a new commit?"

When fixup is confirmed:

  1. Run git commit --fixup=<sha> (with user confirmation)
  2. Then run GIT_SEQUENCE_EDITOR=true git rebase --interactive --autosquash main to squash immediately (with user confirmation before the rebase)

If the change doesn't clearly relate to a previous commit, proceed with a normal new commit.

Required Commit Message Format

This repo uses Conventional Commits (enforced by the @commitlint/config-conventional config inline in package.json). The format is fixed:

<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>

The header is mandatory; scope, body, and footer are optional.

Header

Shape: <type>(<scope>): <subject>

  • <type> is one of: build ci docs feat fix fix-next perf refactor release style test
  • <scope> (optional) is the affected area — usually a feature under app/components/ or a service under app/services/ (e.g. ocr, pdf, camera, sync, settings, security, edit, pkpass). When a change is platform-specific, prefix the scope with the platform: android/sync, ios/camera
  • <subject>: imperative present tense ("change" not "changed"), lowercase first letter, no trailing period
  • No line may exceed 100 characters

Examples:

docs(README): add build setup steps for submodules
fix(ios/camera): correct preview orientation on rotation

Body

ONLY add a body when the header alone isn't enough for a reviewer:

  1. Use the imperative present tense, same as the subject
  2. Explain WHAT changed only if the commit touches more than 3 files
  3. Explain WHY — the motivation, contrasted with previous behavior
  4. Keep every line under 100 characters

Footer

  • Reference the issue this commit closes: Fixes #<issue> / Closes #<issue>
  • Breaking changes start with BREAKING CHANGE: followed by a description and migration path

Revert

A commit that reverts another begins with revert: followed by the reverted header. The body states This reverts commit <hash>.

Co-Authored-By

Only add a Co-Authored-By trailer when Claude actually wrote the code being committed. If the user wrote the changes themselves (and Claude is just committing), do not add it.

Download now (ZIP)

  • Other versions189 projects use a version of this.

    Word for word · 1

    1. Akylas/OSS-DocumentScanner★ 2.6k100% same

    Edited · 0

    None found.

    Wrote their own version · 188

    1. microsoft/vscode★ 194ksame name
    2. TryGhost/Ghost★ 56ksame name
    3. ToolJet/ToolJet★ 41ksame name
    4. ShareX/ShareX★ 41ksame name
    5. openai/symphony★ 27ksame name
    6. ccusage/ccusage★ 19ksame name
    7. ryoppippi/ccusage★ 19ksame name
    8. windmill-labs/windmill★ 18ksame name
    9. EverMind-AI/EverOS★ 14ksame name
    10. EverMind-AI/EverMemOS★ 14ksame name

    178 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use act-on-feedback, add-mcp-tools 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.
    • 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

    • decocmsSkill

      add-mcp-tools

      Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

      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

    • decocmsSkill

      run-local-freestyle

      Run Studio locally with chats and task runs executing in real Freestyle sandboxes, reachable through an ngrok tunnel. Use when asked to "run locally with Freestyle", "test claude-code chats locally", "run the sandbox harness end to end", or to try daemon/harness-runner changes in a real sandbox.

      Also in 3 projects that use this

    • mitsuhikoSkill

      oebb-scotty

      Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

      Also in 3 projects that use this

    • mitsuhikoSkill

      pi-share

      Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.

      Also in 3 projects that use this

  • In this repository11 other files it gives its agents.

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.