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

55 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use get-pr-reviews, push-everything and 9 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.
  • saffron-healthSkill

    get-pr-reviews

    Get nicely formatted output of the last review comments on a PR. Used internally by other skills.

    Also in 3 projects that use this

  • saffron-healthSkill

    push-everything

    Stage ALL changes in the repository (not just session changes), commit, and push. Use when you need to commit all pending changes.

    Also in 3 projects that use this

  • NVIDIASkill

    generate-spec

    Produce a feature specification covering API changes, backward compatibility, cross-language impact, performance, and a file-level change plan. Use when designing a new feature, planning a significant change, or the user asks to spec something out.

    Also in 3 projects that use this

  • ddehartSkill

    knowledge-graph

    Search, capture, and query the claude-code-plugins knowledge graph. Use when asked to "capture this", "add this to the graph", "what do we know about X", "update the graph", "check the graph for X", or when a decision, pattern, or non-obvious fact surfaces mid-session that's worth recording. Also: "log an observation", "what patterns do we have about skill triggering", "any decisions on the knowledge-commons plugin", "what do we know about the commit-creator agent".

    Also in 3 projects that use this

  • MicrosoftSkill

    merge

    Merge changes from the topic branch to the merge base branch. Use when the user wants to merge their session's work back to the base branch.

    Also in 3 projects that use this

  • Hugging FaceSkill

    update-docs

    Update documentation across the repo after API changes. Finds stale references in docs, examples, docstrings, and fixes them.

    Also in 4 projects that use this

  • +2 more from saffron-health

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.