agentleFS
drewmerc302drewmerc302/claude-skills/skills/commit-push/SKILL.md

commit-push

Skill0 starsChanged 4 months agoMITView on GitHub

Commit staged (or all) changes and push to the current remote branch. Use when the user says /commit-push, wants to commit and push without opening a PR, says "push this up", "commit and push", or "ship this". Do NOT use when the user wants to open a pull request — that's /commit-push-pr.

  • Commits and pushes

19 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use open-pr.

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.
  • Google CloudSkill

    open-pr

    Commits local changes to a new Git branch and opens a GitHub pull request through the configured GitHub MCP server. Use when proposing code changes in a new pull request. Don't use for local-only commits without a remote GitHub repository.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 7

    Distinctive

    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
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Commit the current changes and push to origin.

    line 8
  2. Distinctive:

    Run git status and git diff --cached to see what's staged.

    line 12
  3. Distinctive:

    Run git push. If the branch has no upstream, run git push -u origin HEAD.

    line 16
  4. Distinctive:

    Do not open a PR or suggest one unprompted

    line 28
  5. Distinctive:

    Do not amend previous commits

    line 29
  6. Distinctive:

    Do not force push

    line 30
  7. Distinctive:

    Do not skip the staged-file verification step — missing files before push has been a recurring issue

    line 31

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

Commit and Push

Commit the current changes and push to origin. No PR creation.

Steps

  1. Run git status and git diff --cached to see what's staged. If nothing is staged, stage all tracked changes with git add -u.
  2. Show the user what will be committed and confirm the scope looks right.
  3. Write the commit message to a session-unique path using the Write tool — never heredocs or -m, since the Bash tool injects ANSI codes that end up verbatim in the commit. Use the session scratchpad dir if one exists, otherwise /tmp/msg-<repo>-<short-sha-or-timestamp>.txt. Never a shared path like /tmp/msg.txt: concurrent Claude sessions clobber it mid-commit and you commit the other session's message.
  4. Run git commit -F <that path>.
  5. Run git push. If the branch has no upstream, run git push -u origin HEAD.
  6. Report the pushed commit hash and branch.

Commit message format

  • One-line summary (imperative mood, ≤72 chars)
  • Blank line, then body if needed
  • Focus on why, not what — the diff shows the what
  • Match the repo's existing commit style (check git log --oneline -5)

What not to do

  • Do not open a PR or suggest one unprompted
  • Do not amend previous commits
  • Do not force push
  • Do not skip the staged-file verification step — missing files before push has been a recurring issue

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.