push-that-shit
Skill1 starsChanged 9 months agoMITView on GitHub
Commit current progress, push to remote, and manage PR lifecycle. Reads TODO.md to determine progress, creates meaningful commit messages, and manages draft/ready PR state. Use at significant milestones during /do-that-shit work.
- Commits and pushes
In this repository4 other files it gives its agents.
- do-that-shitSkill
- lessons-learnedSkill
- plan-that-shitSkill
- review-current-sessionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
23 rules. About 0 are common, 13 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Commit current work progress, push to remote, and manage PR lifecycle.
- Distinctive: line 15
If argument contains ticket info, extract it
- Very specific: line 17
Check directory name from pwd
- Distinctive: line 18
If still unclear, ask the user
- Very specific: line 27
Check $ARGUMENTS for explicit commit type:
- Distinctive: line 36
When no argument is provided, infer the commit type:
- Very specific: line 42
If PR exists and isDraft: false (already ready for review) → commit type is done
- Distinctive: line 43
If PR doesn't exist or is still draft → continue to step 2
- Very specific: line 45
Check TODO.md: - Read ~/tmp/dora-plans/{ticket-number}/TODO.md:
- Very specific: line 46
If ALL phases have all items marked [x] → infer done
- Very specific: line 47
If only minor/chore items remain unmarked → use AskUserQuestion to ask if this is done or wip
- Distinctive: line 48
If significant work remains incomplete → infer phase commit
- Very specific: line 50
If still unclear: - Use AskUserQuestion tool to ask the user:
- Very specific: line 59
When the commit type is done, run validation commands to catch obvious errors.
- Very specific: line 63
Check which projects have modified files compared to the base branch(IMPORTANT: base branch is develop):
- Very specific: line 81
Check: Do the changed files include anything under packages/protocol/?
- Distinctive: line 119
If there are no changes to commit, inform the user and skip Steps 5-6 (commit and push).
- Distinctive: line 142
Create commit with descriptive message:
- Distinctive: line 189
IMPORTANT: Do NOT include any co-author credit in commit messages.
- Distinctive: line 206
Create a draft PR:
- Distinctive: line 231
Update PR description with full details:
- Distinctive: line 260
Commit hash and message summary
- Distinctive: line 296
Always stage specific files when possible to avoid committing unrelated changes
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Push That Shit
Commit current work progress, push to remote, and manage PR lifecycle.
Step 1: Identify Ticket Number
Determine the ticket/branch identifier:
- If argument contains ticket info, extract it
- Otherwise, check git branch:
git branch --show-current - Check directory name from
pwd - If still unclear, ask the user
Extract identifiers like VES-965, ves-965, DORA-123, or branch names.
Step 2: Determine Commit Type (CRITICAL — drives the entire flow)
The commit type determines which subsequent steps execute. In particular, done triggers pre-push validation (Step 3). You MUST resolve the commit type before proceeding to any later step.
If argument is explicit
Check $ARGUMENTS for explicit commit type:
| Argument | Type | Use Case |
wip | WIP commit | Context limit handoff, partial work |
done | Completion | All work finished, ready for review |
If no argument provided, infer commit type
When no argument is provided, infer the commit type:
- First, check existing PR status:
gh pr view --json isDraft 2>/dev/null- If PR exists and
isDraft: false(already ready for review) → commit type isdone - If PR doesn't exist or is still draft → continue to step 2
- If PR exists and
- Check TODO.md - Read
~/tmp/dora-plans/{ticket-number}/TODO.md:- If ALL phases have all items marked
[x]→ inferdone - If only minor/chore items remain unmarked → use
AskUserQuestionto ask if this isdoneorwip - If significant work remains incomplete → infer phase commit
- If ALL phases have all items marked
- If still unclear - Use
AskUserQuestiontool to ask the user:- "What type of commit is this?" with options:
done,wip,phase commit
- "What type of commit is this?" with options:
Step 3: Pre-Push Validation (only for done) — MANDATORY
Skip this step unless the commit type is done (PR ready for review).
IMPORTANT: This step MUST run whenever the commit type is done, even if there are no uncommitted changes. The purpose is to validate the entire branch diff against the base branch, not just uncommitted work. A clean working tree does NOT mean the code is validated — lint, typecheck, and format checks must still run against the full set of changes introduced by this branch.
When the commit type is done, run validation commands to catch obvious errors.
Detect Changed Projects
Check which projects have modified files compared to the base branch(IMPORTANT: base branch is develop):
git diff --name-only origin/develop...HEAD
# Also include uncommitted changes:
git diff --name-only
git diff --name-only --cachedMap changed files to projects:
packages/protocol/**→ protocolapps/backoffice/**→ backofficeapps/web/**→ webapps/api/**→ api
Sub-step 3a: Run Codegen FIRST (if protocol changed) — DO NOT SKIP
CRITICAL: You MUST run this sub-step BEFORE any lint/format/typecheck commands. If you skip codegen, lint will run against stale generated files and produce false results.
Check: Do the changed files include anything under packages/protocol/**?
- YES → Run codegen, then proceed to Sub-step 3b:
This regenerates all dependent files (moonx protocol:build --dependents*.gen.go,*.gen.ts,appUrls.gen.ts). Lint/typecheck results are MEANINGLESS without this step when protocol files changed. - NO → Skip directly to Sub-step 3b.
Sub-step 3b: Run Validation Commands
For each detected project with changes, run format + lint commands. Format commands auto-fix issues; lint/typecheck catch errors.
| Project | Commands to Run |
| protocol | moonx protocol:format |
| backoffice | moonx backoffice:format && moonx backoffice:lint && moonx backoffice:typecheck |
| web | moonx web:format && moonx web:lint && moonx web:typecheck |
| api | moonx api:lint |
Handle Validation Results
- If lint/typecheck fails: Report the errors to the user and ask whether to:
- Fix the issues and retry
- Push anyway (not recommended)
- Abort the push
- If all validations pass: Proceed to the next step.
Note: Format changes will be included in the commit created in Step 5.
Step 4: Gather Context
Check Git Status
git status
git diff --statIf there are no changes to commit, inform the user and skip Steps 5-6 (commit and push). Do NOT skip Step 7 (PR management) — the PR may still need description updates or status changes.
Load Plan Files
Read from ~/tmp/dora-plans/{ticket-number}/:
- TODO.md - To understand completed phases
- SPEC.md - For PR description context
Expand path to absolute (e.g., /Users/suckzoo/tmp/dora-plans/ves-965/).
Analyze Progress
From TODO.md, identify:
- Completed phases (all items
[x]) - Current phase in progress
- Remaining work
Step 5: Create Commit
For Phase Completion (default)
Stage specific files related to the phase work:
git add <specific-files>Create commit with descriptive message:
git commit -m "$(cat <<'EOF'
<type>: <brief description>
<optional: bullet points of what was done>
EOF
)"Commit types: feat, fix, refactor, test, chore, docs
For WIP Commit (argument: wip)
Stage all changes:
git add -ACreate WIP commit:
git commit -m "$(cat <<'EOF'
wip: {ticket-number} - {current state description}
Progress:
- Completed: {list completed phases}
- In progress: {current work}
- Remaining: {what's left}
EOF
)"For Completion Commit (argument: done)
Stage all changes (including any formatting fixes from Step 3):
git add -ACreate final commit:
git commit -m "$(cat <<'EOF'
feat: complete {ticket-number} - {feature description}
{Summary of implementation from SPEC.md}
EOF
)"IMPORTANT: Do NOT include any co-author credit in commit messages.
Step 6: Push to Remote
Push the branch:
git push -u origin HEADStep 7: Manage PR
Check PR Status
gh pr view --json state,isDraft,url,number 2>/dev/nullIf No PR Exists
Create a draft PR:
gh pr create --draft --title "{ticket-number}: {short description from SPEC}" --body "$(cat <<'EOF'
## Summary
Work in progress for {ticket-number}.
{Brief description from SPEC.md}
## Status
- [ ] Implementation in progress
- [ ] Tests
- [ ] Ready for review
---
_Draft PR - will be updated when ready for review_
EOF
)"If PR Exists and Commit Type is done
Mark PR ready for review:
gh pr readyUpdate PR description with full details:
gh pr edit --body "$(cat <<'EOF'
## Summary
{Overview from SPEC.md}
## Changes
{Key changes made, derived from completed TODO phases}
## Testing
{Test approach / what tests were added}
## Checklist
- [x] Implementation complete
- [x] Tests added/updated
- [ ] Ready for review
EOF
)"If PR Exists and Commit Type is wip
Optionally update PR title to indicate WIP status (if not already):
gh pr edit --title "WIP: {ticket-number}: {description}"Step 8: Report Results
Summarize what was done:
- Commit hash and message summary
- Push status
- PR status (created/updated/marked ready)
- PR URL
Examples
Commit after completing Phase 1
/push-that-shit→ Creates commit: feat: add workspace lastStartedAt schema field
→ Pushes to origin
→ Creates draft PR if needed
WIP commit due to context handoff
/push-that-shit wip→ Creates commit: wip: VES-965 - schema and provider complete
→ Pushes to origin
→ Updates PR if exists
Final commit when all work done
/push-that-shit done→ Runs format/lint/typecheck on changed projects
→ Creates commit: feat: complete VES-965 GPU utilization metrics
→ Pushes to origin
→ Marks PR ready for review
→ Updates PR description with full details
Notes
- This skill does NOT execute implementation work - use
/do-that-shitfor that - Always stage specific files when possible to avoid committing unrelated changes
- The TODO.md file is used to understand progress, not modified by this skill
- PR descriptions are derived from SPEC.md and TODO.md progress
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
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.

