← ClaudeAtlas

wise-commit-pushlisted

Sweep every working-tree change into the index (`git add -A` — modifications, deletions, and new untracked files), draft a Conventional-Commits subject from the staged diff, run `git commit`, then `git push` to the tracked upstream. If the working tree is already clean but the local branch is ahead of upstream (e.g. a previous skill already committed), skips the commit half and just pushes the existing local commits — the operator types one slash command either way. Refuses to push to `main` / `master` (commit lands locally; push is on the operator) and refuses `--force`, `--force-with-lease`, `--no-verify` entirely. Invoked as `/wise-commit-push` (bare alias) or `/wise:wise-commit-push` (canonical). Use whenever the user says "commit and push", "ship this", "push my changes", "commit and ship", "push the lint commit", or types `/wise-commit-push`. For local-only commits use `/wise-commit` instead; for read-only subject drafting use `/wise-commit-message`.
e1024kb/wise-claude · ★ 1 · Code & Development · score 80
Install: claude install-skill e1024kb/wise-claude
# /wise-commit-push — draft, commit, and push ## Why this skill exists `/wise-commit` closes the local loop — stage, draft, commit. The common follow-up on a feature branch is `git push`. Bundling those two steps into one call is the whole point of `/wise-commit-push`: the operator types one command and the change lands on the remote. The skill is a thin wrapper: read the shared [`commit-routine.md`](../wise-commit/commit-routine.md) (co-located with `/wise-commit`, since that's the simpler skill that owns the file), set `PUSH=yes` and `SIMPLIFY=yes`, and follow it. The routine is the source of truth for the §2 pre-staging simplify pass, staging, drafting, committing, the main/master push refuse guard, the upstream check, and the final-line emit format. The per-caller `SIMPLIFY` default policy lives in the routine's §"Inputs the caller sets". ## Invocation ``` /wise-commit-push /wise:wise-commit-push # canonical namespaced form ``` No positionals, no flags. If the argument string contains anything other than optional whitespace, stop with: ``` Unknown argument(s): <the extra tokens> Usage: /wise-commit-push ``` If the user wants `--force`, `--no-verify`, or any other escape hatch, they run `git push` directly. This skill's argument surface is deliberately empty so the routine's behaviour is predictable and safe. ## Procedure ### 1. Read the shared routine Read `${CLAUDE_PLUGIN_ROOT}/skills/wise-commit/commit-routine.md` (the file ships alongside `/wi