{"slug":"commit-push","title":"commit-push","summary":"Batch commit all uncommitted changes (or only the given files) and push to the remote repository.","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-10-20T17:30:33.608537Z","repo":{"url":"https://github.com/tykisgod/quick-question","stars":13,"forks":3,"license":"MIT","updatedAt":"2026-10-25T01:38:40Z"},"bodyHtml":"<hr>\n<h2>description: \"Batch commit all uncommitted changes (or only the given files) and push to the remote repository.\"</h2>\n<blockquote>\n<p>Run qq scripts as <code>${CLAUDE_PLUGIN_ROOT}/bin/&lt;name&gt;</code>: they are not on PATH, so a bare <code>qq-project-state.py</code> exits 127.</p>\n</blockquote>\n<p>Respond in the user's preferred language (detect from their recent messages, or fall back to the language setting in CLAUDE.md).</p>\n<p>Arguments: $ARGUMENTS</p>\n<ul>\n<li>File paths: commit only these files</li>\n</ul>\n<h2>Steps</h2>\n<ol>\n<li>If <code>qq-project-state.py</code> is available, run it first:\n<pre><code>${CLAUDE_PLUGIN_ROOT}/bin/qq-project-state.py --pretty\n</code></pre>\n<ul>\n<li><code>recommended_next == \"/qq:commit-push\"</code> → normal ship path, continue</li>\n<li>otherwise → stop and tell the user the actual next step first</li>\n<li>if the user explicitly says to force the push anyway, note the risk and continue</li>\n<li>with file arguments that are all docs/config (no engine source, e.g. the doc-only commit <code>/qq:doc-sync</code> hands over), skip this check</li>\n</ul>\n</li>\n<li>Run <code>git status -u</code> and <code>git diff --stat</code> to view the uncommitted changes</li>\n<li>Group them by <strong>logical relationship</strong> (do not mix unrelated changes into one commit): feature code (feat/fix/refactor), asset files (prefabs, assets, scenes), config/docs. One commit is fine when everything belongs to the same feature.</li>\n<li>For each group:\n<ul>\n<li><code>git add -- &lt;files&gt;</code> then <code>git commit -- &lt;files&gt;</code> (never <code>git add -A</code> / <code>commit -a</code>; the pathspec on the commit keeps out changes another session staged). While a merge is in progress (<code>MERGE_HEAD</code> exists) git refuses a partial commit: <code>git add -- &lt;resolved files&gt;</code>, then a plain <code>git commit --no-edit</code></li>\n<li>Write the message in the style of the repo's recent commits (conventional-commit style when there is no established style)</li>\n</ul>\n</li>\n<li>After all commits are done, run <code>git push</code></li>\n<li><strong>Worktree closeout</strong> (skip when not in a linked worktree):\n<ul>\n<li>From inside the worktree, run <code>${CLAUDE_PLUGIN_ROOT}/bin/qq-worktree.py status --pretty</code> first. Continue only when <code>isManagedWorktree</code> and <code>sourceWorktreeClean</code> are true and <code>localChanges</code> is false; otherwise stay in the worktree and tell the user why (an <code>EnterWorktree</code> worktree that <code>/qq:execute</code> or <code>/qq:go</code> never seeded is not qq-managed).</li>\n<li>Clear the auto-pipeline here, before leaving the worktree, if one is active: <code>${CLAUDE_PLUGIN_ROOT}/bin/qq-execute-checkpoint.py pipeline-clear --project . --status completed</code></li>\n<li>If this session entered the worktree with <code>EnterWorktree</code>, then call <code>ExitWorktree</code> with <code>action: \"keep\"</code>, and pass <code>--project &lt;worktree path&gt;</code> below: closeout deletes the worktree directory.</li>\n<li>Close out in one step. It merges into the source branch recorded in <code>.qq/state/worktree.json</code>, pushes it, then removes the worktree and its branch:\n<pre><code>${CLAUDE_PLUGIN_ROOT}/bin/qq-worktree.py closeout --auto-yes --delete-branch --pretty\n</code></pre>\n</li>\n<li>If closeout still refuses: a merge conflict or a rejected push sits in the source checkout, so resolve it there; for any other refusal, go back with <code>EnterWorktree</code> <code>path: &lt;worktree path&gt;</code> before making further edits. Fall back to separate <code>merge-back</code> / <code>cleanup</code> only when debugging.</li>\n</ul>\n</li>\n<li><strong>Clear auto-pipeline</strong> (if active and step 6 did not already): <code>${CLAUDE_PLUGIN_ROOT}/bin/qq-execute-checkpoint.py pipeline-clear --project . --status completed</code></li>\n</ol>\n<h2>Never commit</h2>\n<ul>\n<li><code>.env</code>, API keys, credentials, or other sensitive files</li>\n<li><code>.obsidian/</code></li>\n</ul>\n","files":[{"path":"SKILL.md","sizeBytes":3369,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"notes-only","suspicious":0,"notes":2,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-10-20T17:30:45.460801Z","sha256":"F688ED637ED3199948B4707BE541ED83C29E33BC69D8A633F27F7B950A17F377","sizeBytes":1680},"review":null,"source":{"repositoryUrl":"https://github.com/tykisgod/quick-question","path":"skills/commit-push","license":"MIT","commit":"d5304f97653e00fbf3b1bb483f61152ffc713dbc","subtreeSha":"49C6672104DA6D110CED8025F559F795BAA34BA38E09D1893776F171369FB01B","lastSyncedAt":"2026-11-07T21:43:58.417433Z"},"reviewedAt":"2026-10-20T17:31:20.591707Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/tykisgod/quick-question/tree/main/skills/commit-push"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install tykisgod-quick-question@llmmart"},{"target":"git","command":"git clone https://github.com/tykisgod/quick-question.git"}]}