agentleFS
SuckzooSuckzoo/skills/push-that-shit/SKILL.md

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

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
  1. Distinctive:

    Commit current work progress, push to remote, and manage PR lifecycle.

    line 9
  2. Distinctive:

    If argument contains ticket info, extract it

    line 15
  3. Very specific:

    Check directory name from pwd

    line 17
  4. Distinctive:

    If still unclear, ask the user

    line 18
  5. Very specific:

    Check $ARGUMENTS for explicit commit type:

    line 27
  6. Distinctive:

    When no argument is provided, infer the commit type:

    line 36
  7. Very specific:

    If PR exists and isDraft: false (already ready for review) → commit type is done

    line 42
  8. Distinctive:

    If PR doesn't exist or is still draft → continue to step 2

    line 43
  9. Very specific:

    Check TODO.md: - Read ~/tmp/dora-plans/{ticket-number}/TODO.md:

    line 45
  10. Very specific:

    If ALL phases have all items marked [x] → infer done

    line 46
  11. Very specific:

    If only minor/chore items remain unmarked → use AskUserQuestion to ask if this is done or wip

    line 47
  12. Distinctive:

    If significant work remains incomplete → infer phase commit

    line 48
  13. Very specific:

    If still unclear: - Use AskUserQuestion tool to ask the user:

    line 50
  14. Very specific:

    When the commit type is done, run validation commands to catch obvious errors.

    line 59
  15. Very specific:

    Check which projects have modified files compared to the base branch(IMPORTANT: base branch is develop):

    line 63
  16. Very specific:

    Check: Do the changed files include anything under packages/protocol/?

    line 81
  17. Distinctive:

    If there are no changes to commit, inform the user and skip Steps 5-6 (commit and push).

    line 119
  18. Distinctive:

    Create commit with descriptive message:

    line 142
  19. Distinctive:

    IMPORTANT: Do NOT include any co-author credit in commit messages.

    line 189
  20. Distinctive:

    Create a draft PR:

    line 206
  21. Distinctive:

    Update PR description with full details:

    line 231
  22. Distinctive:

    Commit hash and message summary

    line 260
  23. Distinctive:

    Always stage specific files when possible to avoid committing unrelated changes

    line 296

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Push That Shit

Commit current work progress, push to remote, and manage PR lifecycle.

Step 1: Identify Ticket Number

Determine the ticket/branch identifier:

  1. If argument contains ticket info, extract it
  2. Otherwise, check git branch: git branch --show-current
  3. Check directory name from pwd
  4. 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:

ArgumentTypeUse Case
wipWIP commitContext limit handoff, partial work
doneCompletionAll work finished, ready for review

If no argument provided, infer commit type

When no argument is provided, infer the commit type:

  1. 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 is done
    • If PR doesn't exist or is still draft → continue to step 2
  2. Check TODO.md - Read ~/tmp/dora-plans/{ticket-number}/TODO.md:
    • If ALL phases have all items marked [x] → infer done
    • If only minor/chore items remain unmarked → use AskUserQuestion to ask if this is done or wip
    • If significant work remains incomplete → infer phase commit
  3. If still unclear - Use AskUserQuestion tool to ask the user:
    • "What type of commit is this?" with options: done, wip, phase commit

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 --cached

Map changed files to projects:

  • packages/protocol/** → protocol
  • apps/backoffice/** → backoffice
  • apps/web/** → web
  • apps/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:
    moonx protocol:build --dependents
    This regenerates all dependent files (*.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.

ProjectCommands to Run
protocolmoonx protocol:format
backofficemoonx backoffice:format && moonx backoffice:lint && moonx backoffice:typecheck
webmoonx web:format && moonx web:lint && moonx web:typecheck
apimoonx api:lint

Handle Validation Results

  1. 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
  2. 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 --stat

If 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 -A

Create 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 -A

Create 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 HEAD

Step 7: Manage PR

Check PR Status

gh pr view --json state,isDraft,url,number 2>/dev/null

If 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 ready

Update 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-shit for 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.