agentleFS
d-gangzd-gangz/dgang-skills/skills/commit-push/SKILL.md

commit-push

Skill2 starsChanged 4 months agoMITView on GitHub

Generate organized commits and push changes directly to current branch.

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

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    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:

    If on main/master, warn me but still continue.

    line 27
  2. Distinctive:

    If there are no changes at all (staged or unstaged), inform me and stop.

    line 28
  3. Distinctive:

    If there are already staged changes: unstage them with git reset HEAD and explain "Unstaging to create organized batched commits", then …

    line 29
  4. Distinctive:

    If you don't recognize a change from this session's context, read its diff before batching.

    line 30
  5. Very specific:

    Create the commits (proceed immediately, no approval needed).

    line 34

“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

Generate organized commits & push changes

Goal: Commits are the retrieval index for future sessions — batch and word them so a later git log reads as a useful changelog of what changed and why.

Pre-fetched context

Current branch: !git branch --show-current

Working tree status:

!`git status --porcelain`

Change summary (staged + unstaged):

!`git diff HEAD --stat`

Steps

  1. Review the context above:
    • If on main/master, warn me but still continue.
    • If there are no changes at all (staged or unstaged), inform me and stop.
    • If there are already staged changes: unstage them with git reset HEAD and explain "Unstaging to create organized batched commits", then proceed with all unstaged changes.
    • If you don't recognize a change from this session's context, read its diff before batching.
  2. Batch the changes into atomic, focused commits. If changes relate to a Linear issue mentioned in conversation, include its magic word (ref) + ID in that commit (e.g., feat(auth): add login, ref INT-42).
  3. Create the commits (proceed immediately, no approval needed). For each batch, git add only that batch's files — never git add . or -A.
  4. Push to the current branch and confirm success.
  5. Report back to user: commits created (message, files), batching rationale, push status.

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.