git-push
Skill1.5k starsChanged 4 days agoMITView on GitHub
Commits any pending work via git-commit, syncs with origin (fetch, merge-oriented pull), pushes the current branch, watches GitHub Actions, and fixes root causes until CI is green—including coverage gates without lowering thresholds. Use when the user asks to push, sync and push, or ship the branch and chase CI. Requires explicit invocation or a parent workflow that authorizes push and CI remediation. Do not use without permission to write to git remote or when the user forbids automated CI fix loops.
- Commits and pushes
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 25
If push or CI remediation would be a surprise, stop and confirm.
- Very specific: line 47
If git status --porcelain is non-empty (including untracked you intend to keep), run git-commit first so the working tree is committed with …
- Very specific: line 57
If an upstream exists: e.g.
- Distinctive: line 60
If there is no upstream yet, a reasonable first push is git push -u origin HEAD after the branch is ready—set upstream for future pulls.
- Distinctive: line 69
If push is rejected because the remote advanced, fetch, merge (per above), resolve conflicts, then push again—do not force-push unless the …
- Distinctive: line 78
Wait until the relevant workflow(s) finish.
- Very specific: line 82
Read logs; reproduce locally when possible (ruff check ., pytest ..., targeted tests, matching what CI failed).
- Very specific: line 85
git-commit: when there are new changes) and push, then re-watch CI. - Distinctive: line 92
If CI fails because test coverage (or a similar required threshold) is not met:<br />
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Push
Purpose
Close the loop from dirty working tree → clean push → green GitHub Actions: commit everything pending when needed, integrate upstream with merge (not silent rebase unless the user prefers otherwise), push, watch workflows, and iterate on real failures until passes.
Authority
git pushallowed when the user invokes$git-push, namesgit-push, or clearly asks you to sync, push, and fix CI until green—or a checked-in workflow authorizes the same (for exampleexecute-planstep 5 after all phases are committed).execute-plandoes not authorize runninggit-pushafter each phase—only the final tail.- This authorizes
git commit,git pull/git merge(integratingorigin),git push, reading CI logs, and code/test fixes needed to get workflows green. - If push or CI remediation would be a surprise, stop and confirm.
Use When
- The user wants the branch on the remote and CI passing.
- You need the full “commit if needed → sync → push → babysit CI” routine.
Do Not Use When
- The user only wants a dry run or local-only commands.
- You are not allowed to touch
originor fix CI (no override).
Preconditions (agent)
- Know the current branch and whether it has an upstream
(
git status -sb,git rev-parse --abbrev-ref @{u}when set). git fetch originbefore deciding you are in sync.
Procedure
1. Uncommitted changes
- If
git status --porcelainis non-empty (including untracked you intend to keep), rungit-commitfirst so the working tree is committed with a full what / why message. - Do not bypass
git-commitwith a lazy one-liner unless the user explicitly overrides.
2. Integrate origin (merge-oriented)
- Preferred for this skill: after
git fetch origin, integrate with merge, not rebase—unless the user explicitly asks for rebase. - If an upstream exists: e.g.
git pull --no-rebase(orgit mergeorigin/<upstream-branch>after fetch) so local commits combine with remote updates. - If there is no upstream yet, a reasonable first push is
git push -u origin HEADafter the branch is ready—set upstream for future pulls. - Merge conflicts: resolve carefully; if intent is ambiguous, stop and ask rather than guessing.
3. Push
git pushto the appropriate remote (usuallyorigin) and branch.- If push is rejected because the remote advanced, fetch, merge (per above), resolve conflicts, then push again—do not force-push unless the user explicitly requests it and it is safe for the branch.
4. Monitor GitHub Actions
- Identify the run(s) for the pushed commit / branch (for example
gh run list --branch <branch> --limit 5thengh run watch <run-id> --exit-status, or the Actions UI). - Wait until the relevant workflow(s) finish.
5. On failure: fix root cause, repeat
- Read logs; reproduce locally when possible (
ruff check .,pytest ..., targeted tests, matching what CI failed). - Fix the underlying issue—not symptoms only—then commit (again via
git-commitwhen there are new changes) and push, then re-watch CI. - Loop until green or until you hit a blocker (permissions, flaky external, ambiguous product intent).
6. Coverage and quality gates
- If CI fails because test coverage (or a similar required threshold)
is not met:
<br />Never satisfy the gate by lowering the threshold or disabling checks as a shortcut. - Correct response: add or strengthen tests, exercise untested paths, or refactor for testability so coverage earns the bar.
Anti-patterns
- Pushing with a dirty tree (except when every pending change is intentionally left out—and then say so explicitly; default is commit first).
- Force-push to shared branches without explicit approval.
- “Fixing” CI by weakening lint, coverage, or type gates.
- Re-running CI repeatedly without changing what failed.
Related skills
git-commit: message shape and default whole-tree staging (unless a narrower parent workflow applies).execute-plan: may narrow what gets committed per phase; this skill still applies to the push / merge / CI loop once commits are ready.
Other versions18 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 18
- yunshu0909/yunshu_skillshub★ 760same name
- jerrywu001/cc-sessions-viewer★ 411same name
- chengkj99/kj-skills★ 14same name
- phanghonghao/THU-Awesome-Skills★ 8same name
- pgnzbl-ux/crucible★ 4same name
- rohanhong/tmpl.general-repo★ 3same name
- mir-am/skills-agents-ai-coding★ 2same name
- MYQFJ23333/git-claude★ 2same name
- SmartAssets-io/skills★ 2same name
- solplum/agent-git-workflow-skills★ 2same name
8 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository20 other files it gives its agents.
- audit-fix-hardcoreSkill
- audit-fix-loopSkill
- auditSkill
- build-vs-buySkill
- create-planSkill
- create-skillSkill
- debugSkill
- deploySkill
- documentationSkill
- elon-muskSkill
- execute-plan-hardcoreSkill
- execute-planSkill
- git-commitSkill
- guide-ingestSkill
- ilya-sutskeverSkill
- markdownSkill
- phase-auditSkill
- research-debuggingSkill
- research-planningSkill
- write-notesSkill
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.

