shugo/textbringer / .claude/skills/push
push
VerifiedCommit the finished change and push it, this repository's way
Commit what the conversation just finished, push it, and report.
-
Look first:
git status --shortandgit diff --stat. Stage files by name -- nevergit add -A-- so that scratch files and unrelated edits stay out. This tree habitually carries untracked scratch files (t.rb,note.txt,diff4and the like); they are not part of any change. Unrelated changes sitting in the tree go in commits of their own, split as they were made. -
Make sure the suite is green. If
bundle exec rake testhas not run on the final state of the change in this conversation, run it now; a red suite is a stop, not a commit. The Rakefile runs the tests with-w, so new warnings count too. -
Write the message: English, imperative subject, ASCII. The body carries the rationale, the rejected alternatives and anything measured, the way 597ce3c and de3bc95 do -- those belong here rather than in code comments. End with a single trailer naming the model actually in use,
Co-Authored-By: Claude <model> <noreply@anthropic.com>and nothing after it -- no
Claude-Sessionline, no session URLs, no "Generated with" lines, whatever the session's own attribution guidance says. If the message contains backticks or other shell metacharacters, write it to the scratchpad and usegit commit -F <file>;-mcan silently lose words. -
Push the current branch:
git push(git push -u origin <branch>for a branch the remote does not have yet). Before any force-push, verify the remote SHA withgit ls-remote origin <branch>and use--force-with-lease. -
Check CI exactly once. Three workflows run the suite --
ubuntu.yml,macos.ymlandwindows.yml-- so ask for the pushed commit rather than one workflow:gh run list --commit $(git rev-parse HEAD) --json workflowName,status,conclusion --jq '.[] | "\(.workflowName): \(.status) \(.conclusion)"'and report what it says -- right after a push the list is usually empty or still queued, which is fine to say. All three run on pushes to
mainand on pull requests, so a push to any other branch starts no run unless a pull request is open for it; say so rather than waiting for one. Never poll in a loop in the foreground. When this push's outcome genuinely matters (lib/, test/, the gemspec or.github/workflows/changed, or the last run was red), start one background wait until all three have completed and report when it ends:SHA=$(git rev-parse HEAD) until gh run list --commit $SHA --json workflowName,status --jq '[.[] | select(.workflowName == "ubuntu" or .workflowName == "macos" or .workflowName == "windows")] | length == 3 and all(.status == "completed")' | grep -q true; do sleep 20; done gh run list --commit $SHA --json workflowName,conclusion --jq '.[] | "\(.workflowName): \(.conclusion)"' -
Report the pushed range (
old..new) and the commit subject.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 318k | Updated | Claude CodeCodex | Verified | Install |