agentleFS
tykisgodtykisgod/quick-question/skills/commit-push/SKILL.md

commit-push

Skill11 starsChanged 2 months agoMITView on GitHub

Batch commit all uncommitted changes and push to the remote repository.

  • Reads credentials
  • Commits and pushes

11 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 8

    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. Very specific:

    If qq-project-state.py is available, run it first:

    line 13
  2. Distinctive:

    if the user explicitly says to force the push anyway, note the risk and continue

    line 20
  3. Distinctive:

    Run git status -u and git diff --stat to view all uncommitted changes

    line 21
  4. Distinctive:

    If all changes belong to the same feature, a single commit is fine

    line 26
  5. Distinctive:

    Write a commit message in conventional commit style

    line 29
  6. Distinctive:

    After all commits are done, run git push

    line 31
  7. Very specific:

    Call ExitWorktree tool with action: "remove" to clean up and return to original CWD

    line 38
  8. Very specific:

    If closeout refuses, inspect qq-worktree.py status --pretty

    line 45
  9. Very specific:

    Only fall back to separate merge-back / cleanup when debugging

    line 46
  10. Distinctive:

    If there are no changes at all, just inform the user

    line 61
  11. Distinctive:

    Keep commit messages concise and focused on "what was done" rather than "which files were changed"

    line 66
  12. Distinctive:

    Check the style of recent commits and stay consistent

    line 67

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

Script path fallback: qq scripts are invoked as bare commands (e.g. unity-test.sh). If "command not found", use ${CLAUDE_PLUGIN_ROOT}/bin/<command> instead.

Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).

Batch commit all uncommitted changes and push to the remote repository.

Steps

  1. If qq-project-state.py is available, run it first:
    qq-project-state.py --pretty
    Interpret it like this:
    • recommended_next == "/qq:commit-push" → normal ship path, continue
    • otherwise → stop and tell the user the actual next step first
    • if the user explicitly says to force the push anyway, note the risk and continue
  2. Run git status -u and git diff --stat to view all uncommitted changes
  3. Analyze the changes and group them by logical relationship (do not mix unrelated changes into the same commit):
    • Feature code changes in one group (feat/fix/refactor)
    • Asset files (prefabs, assets, scenes) in one group
    • Config/docs in one group
    • If all changes belong to the same feature, a single commit is fine
  4. For each group:
    • git add the relevant files (do not use git add -A; specify files individually)
    • Write a commit message in conventional commit style
    • Append Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> at the end of the commit message
  5. After all commits are done, run git push
  6. Worktree closeout — detect worktree type and close out:

    Type A: EnterWorktree session (CWD is inside .claude/worktrees/):

    • Identify the source branch: git log --oneline --all --decorate | head -5 or read the branch the worktree was based on
    • Merge worktree branch back to source: git checkout <source-branch> && git merge <worktree-branch>
    • Push source branch: git push
    • Call ExitWorktree tool with action: "remove" to clean up and return to original CWD

    Type B: qq-managed worktree (qq-worktree.py is available and isManagedWorktree=true):

    • Prefer one-step closeout:
      qq-worktree.py closeout --auto-yes --delete-branch --pretty
    • If closeout refuses, inspect qq-worktree.py status --pretty
    • Only fall back to separate merge-back / cleanup when debugging

    Type C: Not in a worktree → normal path, stop after push

Exclusion rules

Do not commit:

  • .env, API keys, credentials, or other sensitive files
  • Files matched by .gitignore
  • .obsidian/ directory
  1. Clear auto-pipeline (if active): qq-execute-checkpoint.py pipeline-clear --project . --status completed

Notes

  • If there are no changes at all, just inform the user
  • In hardening-style flows, treat /qq:commit-push as the end of the verified path, not the place to discover missing tests/review/doc drift
  • In any worktree (EnterWorktree or qq-managed), closeout belongs here, after verification and after push
  • For EnterWorktree worktrees: merge back via git, then ExitWorktree(remove)
  • For qq-managed worktrees: use closeout as the default path
  • Keep commit messages concise and focused on "what was done" rather than "which files were changed"
  • Check the style of recent commits and stay consistent

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.