agentleFS
evnmevnm/claude-skills/commit-unstaged/SKILL.md

commit-unstaged

Skill1 starsChanged 5 months agoMITView on GitHub

Checks unstaged changes into Git as a sequence of commits with high quality commit messages. Use this whenever the user asks you to commit changes.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the unstaged changes (i.e.

    line 8
  2. Distinctive:

    When writing commit messages, adhere to the commit message guidelines in this repository's CLAUDE.md.

    line 14
  3. Distinctive:

    Always end step 1 with the AskUserQuestion tool to get my explicit confirmation before committing anything — never proceed to step 2 based …

    line 19

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

Never invoke this skill on your own initiative. Only run it when the user explicitly asks you to commit. Do not start it because a milestone, plan step or task finished, and do not treat a plan that says "commit at the end of each milestone" as that request. Work you just prototyped will be iterated on, and commits made too early have to be redone. The user decides when a body of work is at a good stopping point to cement into commits. Until they say so, leave changes uncommitted and say they are uncommitted.

Read the unstaged changes (i.e. the output of git diff, plus the contents of any untracked files), think about code change(s) they represent, and then help me check the changes in to Git in a series of commits.

This interaction occurs in two parts:

  1. First, based on your review of the changes, propose a series of commits.
  • Each commit should be self-contained and include a high quality commit message. A good commit message is one that conveys enough information for someone casually familiar with our codebase to understand it. Without being overly verbose, include any necessary context, a description of the problem or gap the commit addresses, and the solution the commit adds to the codebase.
  • When writing commit messages, adhere to the commit message guidelines in this repository's CLAUDE.md.
  • Collectively, the commits should be in a coherent order. We want to make it easy for code reviewers understand the broader change represented by a series of commits. Early commits might add independent components or tools that are then built upon by later commits, culminating in a "main" commit which uses those components/tools to solve the problem addressed by a pull request.
  • Model the presentation of the plan on the output of git rebase -i. Show the ordered list of commit messages.
  • Always print the full proposed commit sequence as plain text in your response — every commit's full message (title + body), not a summary or a truncated preview — BEFORE calling AskUserQuestion. The AskUserQuestion call itself is only for getting confirmation; its preview field is not a substitute for showing the plan in the actual message text, since the user should be able to read the full plan without opening/expanding anything.
  • The user must be able to read every proposed commit message without leaving the confirmation prompt. Text printed before a tool call can be hidden or collapsed in the UI (especially under terse output styles), so ALSO put the full proposed sequence (each commit's title and full body) in the question text or the preview field of the "Commit as proposed" option in AskUserQuestion. This applies regardless of output style: brevity rules never justify omitting or summarizing the commit messages.
  • Always end step 1 with the AskUserQuestion tool to get my explicit confirmation before committing anything — never proceed to step 2 based on plain-text approval alone, even for a single obvious commit. Offer at minimum "Commit as proposed" and "Revise message" (or similar) as options.
  1. Second, once you've received by approval on the proposed commits, run the git add, git commit, etc commands necessary to enact the series of commits.

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.