/blake-os:git-pushfrom blake-os
Publishes local commits to origin only when the branch is current with remote. Verifies not behind, never force-pushes. Invoked by blake-os:git-ops.
Ships in blake-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Publish local commits to origin — but only when the branch is current with the remote. If the remote moved, integrate first with git-sync, then push. A push is never forced.
Commit first. If the working tree has uncommitted changes, run git-commit or report what is still dirty.
git remote get-url origin
git branch --show-current
If no origin remote, stop: "No remote configured. Add one with: git remote add origin "
git fetch origin
git rev-list --left-right --count @{u}...HEAD # output: "<behind> <ahead>"
The rev-list line prints behind then ahead. Decide on the numbers:
behind = 0, ahead = 0 — stop: "Already up to date with remote — nothing to push." (If @{u} errors because no upstream is set, the branch is new — go straight to Step 3, which sets the upstream.)behind > 0 (the remote has commits the local branch doesn't, whether or not it is also ahead) — stop and do not push. Report: "Remote has N commits you don't have. Run git-sync first to integrate them (it will fast-forward or merge), then push." A push now would be rejected — do not attempt it.behind = 0, ahead > 0 — clear to push. Continue to Step 3.If the branch has no upstream:
git push -u origin HEAD
If an upstream exists:
git push
Never git push --force or --force-with-lease.
git fetch origin && git rev-list --left-right --count @{u}...HEAD
Confirm behind = 0, ahead = 0 — local matches remote. Report: branch, remote URL, number of commits pushed.
git-sync first..env or credential files appear in the outgoing commits, stop and warn.Ordering across operations is owned by blake-os:git-ops.
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/feedbackFiles a GitHub issue on this repo to tell Brent about anything worth his attention — confusion, something that didn't work, an idea or wish, or a new way the user phrased a request. Brent is a collaborator on this private repo and uses these issues to fix and improve the tools. Use this whenever the user sounds confused or frustrated, says something is broken or didn't work as expected, wishes something worked differently, or asks to tell Brent something — even if they never say "feedback" or "issue". Also invoked by blake-os:git-ops to log a request it could not cleanly route./git-commitInternal commit step for the blake-os git-ops router. Stages explicit file paths and creates atomic commits on the current branch, matching the repo's existing message style and scanning for secrets before staging. Invoked by blake-os:git-ops — not a direct entry point. Trigger directly only on the exact request "git commit"./git-opsSingle front door for everything git and GitHub — saving work, getting the latest, backing up, and putting changes online. Routes plain-language requests to the right operation in the correct order, even when the user does not use git terms. Use whenever the user wants to save, back up, update, sync, upload, publish, or check on their project's files — phrases like "save my work", "back it up", "I'm done", "get the latest", "put it online", "did it save?"./git-syncInternal sync step for the blake-os git-ops router. Brings the current branch up to date with origin — fast-forwards when only behind, makes a merge commit when local and remote diverged, aborts and hands off on conflict; never rebases or force-pushes. Invoked by blake-os:git-ops — not a direct entry point. Trigger directly only on the exact request "git pull" or "git sync".npx claudepluginhub basher83/lunar-claude --plugin blake-osOther plugins' skills for the same job