agentleFS
keefarkeefar/ticket-flow/skills/push/SKILL.md

push

Skill4 starsChanged 3 months agoMITView on GitHub

Push the local `main` branch to origin — invoke when the user asks in plain words to push ("push das", "lad das hoch", "push to origin"). `finish`/`flow` deliberately leave commits local; this runs from the controller session (never a dispatched subagent) so auth prompts and errors stay visible.

  • Commits and pushes

20 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use test, plan and 1 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Microsoft AzureSkill

    test

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 4 projects that use this

  • AWSSkill

    tdd

    Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.

    Also in 3 projects that use this

The file

Files
SKILL.md

/ticket-flow:push — Push merged commits to origin

Args: none.

Why this exists

/ticket-flow:finish (Phase 3) merges the worktree branch into main but deliberately does not run git push — and /ticket-flow:flow --parallel likewise leaves its merges local. So after a flow chain, main carries commits that are not yet on the remote.

/ticket-flow:push is the one explicit "upload now" step. Keeping push separate and explicit means auth/network failures (gh login, 2FA, keychain, a diverged remote) surface here, in the session you are watching — not silently somewhere else.

Steps

REPO="$(git rev-parse --show-toplevel)" && cd "$REPO"
git fetch origin --quiet 2>/dev/null || true
git push origin main
  • Success → report ✓ pushed main → origin and the commit range that went up.
  • Failure → surface the raw git push error, do not retry automatically:
    • non-fast-forward (someone pushed to origin in the meantime) → git pull --rebase origin main, then re-run /ticket-flow:push.
    • auth / 401 → gh auth login (or fix the keychain), then re-run.
    • connection error → re-run when back online.

What it doesn't do

  • Force-push (never).
  • Push branches other than main — the merge target of /ticket-flow:finish.
  • Repo creation for a first-time publish — that is /ticket-flow:publish.
  • Auto-retry on transient errors — you decide.

Related

  • /ticket-flow:publish — first-time publish of a new repo (gh repo create + initial push)

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.