push-and-watch
Skill8 starsChanged 3 months agoMITView on GitHub
Push local commits to the remote, ensure a draft PR exists, and monitor the GitHub Actions run until completion. Use when the user says "push and watch", "push it", or asks to push and monitor CI.
- Commits and pushes
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Verify the working tree is clean (git status).
- Distinctive: line 13
Verify there are local commits ahead of the remote (git status should show "Your branch is ahead").
- Distinctive: line 21
If the push fails (e.g. rejected, no access), stop and report the error.
- Distinctive: line 27
Check whether a PR already exists for the current branch:
- Distinctive: line 33
If no PR exists, create one in draft mode:
- Distinctive: line 43
Wait a few seconds for CI to pick up the push, then list runs for the current branch:
- Distinctive: line 49
If no run appears after 30 seconds of polling, report and stop.
- Very specific: line 53
Use gh run watch <run_id> --exit-status to stream the run status until completion.
- Distinctive: line 57
After the run completes, report:
- Very specific: line 61
Failures: if any job failed, fetch its logs with gh run view <run_id> --log-failed and include the relevant error output (truncated to the …
- Distinctive: line 63
If the run passed, report success concisely.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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.
Files
Push and Watch
Push local commits to the remote and monitor the CI run until completion.
1. Pre-flight Checks
- Verify the working tree is clean (
git status). If there are uncommitted changes, stop and ask. - Verify there are local commits ahead of the remote (
git statusshould show "Your branch is ahead"). If not, report "nothing to push" and stop.
2. Push
git push -u origin HEADIf the push fails (e.g. rejected, no access), stop and report the error.
3. Ensure Pull Request Exists
Skip this step if on main or master.
Check whether a PR already exists for the current branch:
gh pr view --json url 2>/dev/nullIf no PR exists, create one in draft mode:
gh pr create --draft --fillReport the PR URL.
4. Wait for Run
Wait a few seconds for CI to pick up the push, then list runs for the current branch:
gh run list --branch $(git branch --show-current) --limit 1If no run appears after 30 seconds of polling, report and stop.
5. Watch
Use gh run watch <run_id> --exit-status to stream the run status until completion.
6. Report
After the run completes, report:
- Status: passed or failed
- Jobs: list each job with its status and duration
- Failures: if any job failed, fetch its logs with
gh run view <run_id> --log-failedand include the relevant error output (truncated to the last 50 lines per failed job)
If the run passed, report success concisely. If it failed, include enough log context to diagnose the failure.
In this repository38 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- active-readSkill
- active-reviewSkill
- analyze-knowledgeSkill
- audit-accomplishmentsSkill
- audit-historySkill
- bisectSkill
- ci-debug-loopSkill
- create-decision-documentSkill
- create-jira-itemSkill
- create-prSkill
- create-ruleSkill
- create-skillSkill
- discover-patternsSkill
- evaluate-dependencySkill
- fix-pr-conflictSkill
- implement-planSkill
- match-voiceSkill
- rebase-pr-chainSkill
- review-allSkill
- review-api-compatSkill
- review-ciSkill
- review-codeSkill
- review-coverageSkill
- review-databaseSkill
- review-documentationSkill
- review-infrastructureSkill
- review-observabilitySkill
- review-performanceSkill
- review-planSkill
- review-reliabilitySkill
- review-securitySkill
- review-trajectorySkill
- set-session-contextSkill
- ship-itSkill
- simplify-proseSkill
- start-daySkill
- verify-when-completeSkill
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.

