agentleFS
spytensorspytensor/openmozi/.claude/skills/commit/SKILL.md

commit

Skill215 starsChanged 4 months agoMITView on GitHub

Smart commit: bump version, find related issues, commit with Co-authored-by, push. Use when the user says 'commit' or wants to finalize changes.

  • Commits and pushes

186 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use act-on-feedback, generate-run-commands 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 4 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 4 projects that use this

  • MindgamesSkill

    branch

    Use when a user asks to create a new local git branch and start issue work (for example, "create branch" or "start working on issue XYZ"). Use this for issue-based branch naming in the `type/scope-short-description` pattern and for always syncing local `main` from `origin/main` before creating the new branch, creating the local tracking `main` branch first when needed.

    Also in 9 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

  • thoughtbotSkill

    implement-with-tdd

    Implement a SPEC, plan, or feature outside-in, with TDD.

    Also in 3 projects that use this

  • thoughtbotSkill

    multi-lens-review

    Review a change for defects, then against its spec, its codebase's conventions, the domains trying to emerge from it, and whatever still depends on what it replaced.

    Also in 3 projects that use this

  • +1 more from thoughtbot
  • Other versions186 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 186

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

    176 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.

  • In this repository3 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 165 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When the user asks to commit, execute ALL of these steps:

    line 9
  2. Very specific:

    Read package.json to get the current version.

    line 24
  3. Very specific:

    Update the "version" field in package.json.

    line 30
  4. Distinctive:

    Check if there are open GitHub issues related to the changes:

    line 34
  5. Very specific:

    If $ARGUMENTS contains an issue number, use that directly.

    line 42
  6. Distinctive:

    If either fails, fix the issues before committing.

    line 51
  7. Very specific:

    Commit type: feat: for features, fix: for bugs, refactor: for refactors, chore: for config/deps.

    line 64
  8. Distinctive:

    If a related issue was found:

    line 74

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

Smart Commit

When the user asks to commit, execute ALL of these steps:

Step 1: Analyze Changes

git status
git diff --stat
git diff
git log --oneline -5

Understand what was changed and why.

Step 2: Determine Version Bump

Read package.json to get the current version. Determine the bump type based on changes:

  • patch (x.y.Z): bug fixes, minor tweaks
  • minor (x.Y.0): new features, new commands, new modules
  • major (X.0.0): breaking changes

Update the "version" field in package.json.

Step 3: Find Related Issues

Check if there are open GitHub issues related to the changes:

gh issue list --state open --limit 20

Match the changes against issue titles/descriptions. If a related issue is found, reference it in the commit message as (#N) and close it after pushing.

If $ARGUMENTS contains an issue number, use that directly.

Step 4: Build & Test

pnpm build
pnpm test

If either fails, fix the issues before committing. Do NOT commit broken code.

Step 5: Commit

Stage the changed files (be specific, avoid git add -A for safety):

git add <specific files>
git commit -m "<type>: <description> (#<issue>)

Co-authored-by: Mozi <MoziAI-co@users.noreply.github.com>"

Commit type: feat: for features, fix: for bugs, refactor: for refactors, chore: for config/deps.

Step 6: Push

git push origin main

Step 7: Close Related Issues

If a related issue was found:

gh issue close <N> --comment "Implemented in <commit-hash> (v<new-version>)."

Step 8: Report

Print a summary:

  • Version: old -> new
  • Commit: hash
  • Files changed: count
  • Issue closed: #N (if any)

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.