← ClaudeAtlas

gglisted

Stage, commit and push the current file changes in one pass. Use when the user asks to commit, "commit and push", "stage and push my changes", "ship this", or invokes /gg. Reads the working tree, writes a commit message in the repository's own style, pushes to the tracking branch, and reports the short SHA. Never force-pushes, never bypasses hooks, and never commits without showing what it staged.
y-a-v-a/skills · ★ 0 · Data & Documents · score 67
Install: claude install-skill y-a-v-a/skills
# gg — stage, commit, push One invocation takes the working tree from dirty to pushed. ## Invocation - `/gg` — all changes in the working tree. - `/gg <message>` — same, but use the given text as the commit subject. - `/gg <path> [<path>…]` — restrict staging to those paths. Arguments that name a path are paths: one that exists on disk **or** appears in `git status` (a deleted file no longer exists, but `/gg old/file.js` after deleting it still means that path). Anything else is the message. ## Steps 1. **Read the state.** In one batch: `git status --porcelain=v1 -b`, `git diff`, `git diff --cached`, `git log -10 --pretty=format:'%s%n%b'`. Nothing staged and nothing modified: say so and stop. 2. **Learn the message style** from `git log`: subject mood and capitalization, subject length, whether bodies are used and how they wrap, which trailers appear. Follow that repository, not a generic convention. 3. **Check what you are about to stage.** Read every untracked file before staging it. Do not stage, and name to the user instead: - credentials and secrets — `.env*`, `*.pem`, `*.p12`, `id_rsa`, tokens, API keys, connection strings, anything that reads like a secret inside a diff; - build output, dependency directories, editor and OS cruft, coverage reports, local scratch files; - anything over ~1 MB, and any binary the user has not mentioned. A file that should be ignored belongs in `.gitignore`, not in the commit. 4. **Stag