watch-pr
Skill2.6k starsChanged 8 months agoBSD-3-ClauseView on GitHub
Monitor a PR's CI checks and Greptile code review after submission. Polls CI status, auto-fixes failures via ralph-loop, waits for Greptile review, addresses comments, and iterates until green.
- Commits and pushes
3 other projects use a version of this.
Trending
Quiet since October.about the whole repository
Most recently taken up by
- fitlab-ai/agent-infratheir own version, first seen Sep 11, 2026
- tbhb/vale-ai-tellstheir own version, first seen Aug 18, 2026
- sherifabdlnaby/skillstheir own version, first seen Aug 3, 2026
Who's talking about huggingface/OpenEnv
- aaif/project-proposals“[Project Proposal] OpenEnv”GitHub · Sep 28, 2026 · 2 reactions
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.claude/skills/deploy-hf - deploy-hf”GitHub · Oct 5, 2026
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.claude/skills/alignment-review - alignment-review”GitHub · Oct 5, 2026
- ProSkillsMD/proskills“[Candidate] huggingface/openenv/.agents/skills/openenv-cli - openenv-cli”GitHub · Oct 5, 2026
- sudosubin/agents.nix“agent-skills.github.huggingface.openenv: 0.5.0 → 0.7.0”GitHub · Oct 3, 2026
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub (22 times).
On GitHub · 22
- Sep 28, 2026[Project Proposal] OpenEnv — aaif/project-proposals2 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.claude/skills/deploy-hf - deploy-hf — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.claude/skills/alignment-review - alignment-review — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 5, 2026[Candidate] huggingface/openenv/.agents/skills/openenv-cli - openenv-cli — ProSkillsMD/proskills0 reactions · 1 comment
- Oct 3, 2026agent-skills.github.huggingface.openenv: 0.5.0 → 0.7.0 — sudosubin/agents.nix0 reactions
17 more on GitHub
- Oct 3, 2026[Add] OpenEnv (huggingface/OpenEnv) — PyTorchKR/landscape0 reactions
- Oct 2, 2026chore(deps): bump openenv from 0.5.0 to 0.6.0 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Oct 2, 2026chore(deps): bump openenv from 0.5.0 to 0.6.0 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 3 comments
- Sep 29, 2026Add reset schema publication to /schema endpoint — scosman/OpenEnv0 reactions
- Sep 28, 2026agent-skills.github.huggingface.openenv: init at 0.5.0 — sudosubin/agents.nix0 reactions
- Sep 25, 2026chore(deps): bump openenv from 0.4.2 to 0.5.0 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 25, 2026chore(deps): bump openenv from 0.4.2 to 0.5.0 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 16, 2026chore(deps): bump openenv from 0.4.1 to 0.4.2 in /openenv-custom-training — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 16, 2026chore(deps): bump openenv from 0.4.1 to 0.4.2 — beer-sakthai/openenv-rl-training0 reactions · 2 comments
- Sep 15, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.4.2 — Manimaran-tech/swarm_analyst0 reactions
- Aug 27, 2026AsyncGRPO: train OpenEnv harnesses from validated token captures — huggingface/trl0 reactions · 5 comments
- Jul 24, 2026Point the opencode example at huggingface/OpenEnv — huggingface/trl0 reactions · 2 comments
- Jul 7, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.4.1 — Manimaran-tech/swarm_analyst0 reactions · 1 comment
- Jun 23, 2026build(deps): update openenv requirement from >=0.2.0 to >=0.3.1 — Manimaran-tech/swarm_analyst0 reactions · 1 comment
- Jun 10, 2026[dprat0821] Add June watch for open agent training environments — Prompthon-IO/agent-systems-handbook0 reactions
- May 29, 2026mini_swe: stabilize async GRPO validation runs — rycerzes/OpenEnv0 reactions
- May 2, 2024Link Checker Dashboard 🔗 — ahgraber/AIMLbling-about0 reactions
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- tbhb/vale-ai-tells★ 115same name
- fitlab-ai/agent-infra★ 86same name
- sherifabdlnaby/skills★ 8same name
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 repository17 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hf-cliSkill
- openenv-cliSkill
- alignment-reviewSkill
- deploy-hfSkill
- generate-openenv-envSkill
- hf-space-recoverySkill
- implementSkill
- pre-submit-prSkill
- releaseSkill
- rfc-checkSkill
- simplifySkill
- sprintSkill
- update-docsSkill
- work-on-issueSkill
- write-testsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
24 rules. About 0 are common, 20 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈20
Distinctive · estimate
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
- Distinctive: line 13
When this skill is invoked, you MUST execute these steps immediately.
- Very specific: line 23
If no PR is found, stop with: "No PR found for current branch.
- Distinctive: line 46
Run the CI polling script with a 30-minute timeout:
- Distinctive: line 96
If ralph-loop successfully fixes the issues (tests pass locally), commit and push the changes, then go to Step 1.
- Distinctive: line 101
Read the failure logs from step 2a
- Distinctive: line 103
Read the relevant source files
- Distinctive: line 118
After pushing the fix, CI will re-run.
- Distinctive: line 124
All CI checks have passed.
- Distinctive: line 142
If both counts are 0: print "Waiting for Greptile review...
- Distinctive: line 143
If 3-hour timeout reached with no review: go to Step 5 (DONE) with note "Greptile review did not arrive within 3 hours."
- Distinctive: line 144
If review exists, check if actionable:
- Distinctive: line 183
Read the file at the specified path and line
- Distinctive: line 185
If it aligns with project principles: apply the fix
- Very specific: line 186
If it conflicts with .claude/docs/PRINCIPLES.md or .claude/docs/INVARIANTS.md: do NOT apply it.
- Distinctive: line 199
Before committing review fixes, present a summary to the user for approval:
- Distinctive: line 212
Use the AskUserQuestion tool to get explicit approval.
- Distinctive: line 223
If local checks pass:
- Distinctive: line 260
If final status is READY (CI green, reviews addressed), report:
- Distinctive: line 266
If final status is NEEDS ATTENTION (hit iteration limits), explain what remains.
- Very specific: line 280
After /pre-submit-pr creates and pushes a PR
- Distinctive: line 281
After pushing fixes to an existing PR
- Distinctive: line 282
When you want automated CI monitoring and review handling
- Very specific: line 286
Before a PR exists (run /pre-submit-pr first)
- Distinctive: line 288
When you want manual control over CI fixes
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
/watch-pr
Monitor a submitted PR until CI passes and code reviews are addressed.
EXECUTE THESE STEPS NOW
When this skill is invoked, you MUST execute these steps immediately. Do NOT just describe what will happen — actually do it.
Step 0: Resolve PR Number and Repo
Extract the PR number from $ARGUMENTS. If no argument was provided, detect from the current branch:
gh pr view --json number -q '.number'If no PR is found, stop with: "No PR found for current branch. Create one with gh pr create or pass a PR number: /watch-pr 123"
Also resolve the repo identifier:
gh repo view --json nameWithOwner -q '.nameWithOwner'Store as PR_NUMBER and REPO. Initialize counters:
CI_FIX_COUNT = 0(max 5)REVIEW_FIX_COUNT = 0(max 3)
Report to the user:
## Watching PR #<PR_NUMBER>
Monitoring CI and reviews for https://github.com/<REPO>/pull/<PR_NUMBER>Step 1: WAITING_CI — Poll CI Checks
Run the CI polling script with a 30-minute timeout:
bash .claude/hooks/ci-wait.sh <PR_NUMBER> 1800Important: Set the Bash tool timeout to 600000ms (10 minutes). If the script exceeds
this, re-invoke it with the remaining timeout: bash .claude/hooks/ci-wait.sh <PR_NUMBER> <REMAINING_SECONDS>.
Evaluate the exit code:
- Exit 0 (all checks passed): Go to Step 3 (WAITING_REVIEW).
- Exit 1 (checks failed): Go to Step 2 (CI_FAILED).
- Exit 2 (timeout): Report to user: "CI checks did not complete within 30 minutes. Check manually." Stop.
- Exit 3 (error): Report error and stop.
Step 2: CI_FAILED — Fix and Retry
Increment CI_FIX_COUNT. If CI_FIX_COUNT > 5, stop with:
CI has failed 5 times. Manual intervention required.
PR: https://github.com/<REPO>/pull/<PR_NUMBER>2a. Identify failed checks and get logs:
# Get the head SHA for this PR
HEAD_SHA=$(gh pr view <PR_NUMBER> --json headRefOid -q '.headRefOid')
# List failed workflow runs for this commit
gh run list --commit "$HEAD_SHA" --json databaseId,name,conclusion --jq '.[] | select(.conclusion == "failure")'For each failed run, fetch the failure logs:
gh run view <RUN_ID> --log-failed 2>&1 | tail -2002b. Try ralph-loop first:
Invoke the ralph-loop plugin to fix the failures:
Skill tool: skill: "ralph-loop"If ralph-loop successfully fixes the issues (tests pass locally), commit and push the changes, then go to Step 1.
2c. Fallback to inline fix (if ralph-loop unavailable or fails):
- Read the failure logs from step 2a
- Identify the root cause (test failure, lint error, build error, etc.)
- Read the relevant source files
- Fix the code
- Verify locally:
bash .claude/hooks/lint.sh && bash .claude/hooks/test.sh - Stage, commit, and push:
git add <specific-files> git commit -m "fix: address CI failure (<brief description>)" git push
2d. Return to Step 1 (WAITING_CI).
After pushing the fix, CI will re-run. Go back to Step 1.
Step 3: WAITING_REVIEW — Poll for Greptile Review
All CI checks have passed. Now wait for Greptile's code review.
Poll every 120 seconds for up to 3 hours (max 90 polls). On each poll:
# Check for reviews from greptile-apps[bot]
REVIEW_COUNT=$(gh api repos/<REPO>/pulls/<PR_NUMBER>/reviews \
--jq '[.[] | select(.user.login == "greptile-apps[bot]")] | length')# Check for line-level comments from greptile-apps[bot]
COMMENT_COUNT=$(gh api repos/<REPO>/pulls/<PR_NUMBER>/comments \
--jq '[.[] | select(.user.login == "greptile-apps[bot]")] | length')Decision logic:
- If both counts are 0: print "Waiting for Greptile review... (poll N/90)", sleep 120 seconds, and poll again.
- If 3-hour timeout reached with no review: go to Step 5 (DONE) with note "Greptile review did not arrive within 3 hours."
- If review exists, check if actionable:
- Actionable (go to Step 4): The latest review state is
CHANGES_REQUESTED, OR there are line-level comments fromgreptile-apps[bot]. - Not actionable (go to Step 5): Review state is
APPROVEDorCOMMENTEDwith no line-level comments.
- Actionable (go to Step 4): The latest review state is
To check review state:
gh api repos/<REPO>/pulls/<PR_NUMBER>/reviews \
--jq '[.[] | select(.user.login == "greptile-apps[bot]")] | last | .state'Step 4: REVIEW_RECEIVED — Address Greptile Comments
Increment REVIEW_FIX_COUNT. If REVIEW_FIX_COUNT > 3, stop with:
Greptile has requested changes 3 times. Manual intervention required.
PR: https://github.com/<REPO>/pull/<PR_NUMBER>4a. Fetch the review body:
gh api repos/<REPO>/pulls/<PR_NUMBER>/reviews \
--jq '[.[] | select(.user.login == "greptile-apps[bot]")] | last | .body'4b. Fetch all line-level comments:
gh api repos/<REPO>/pulls/<PR_NUMBER>/comments \
--jq '[.[] | select(.user.login == "greptile-apps[bot]")] | .[] | {id: .id, path: .path, line: .line, body: .body}'4c. Address each comment:
For each line-level comment:
- Read the file at the specified path and line
- Understand the suggestion
- If it aligns with project principles: apply the fix
- If it conflicts with
.claude/docs/PRINCIPLES.mdor.claude/docs/INVARIANTS.md: do NOT apply it. Reply explaining why:gh api repos/<REPO>/pulls/<PR_NUMBER>/comments/<COMMENT_ID>/replies \ -f body="Not applied: <reason based on project principles>" - For applied fixes, reply to acknowledge:
gh api repos/<REPO>/pulls/<PR_NUMBER>/comments/<COMMENT_ID>/replies \ -f body="Fixed in latest push."
4d. Human approval checkpoint:
Before committing review fixes, present a summary to the user for approval:
## Greptile Review Changes Summary
| # | Comment | Action | File |
|---|---------|--------|------|
| 1 | <brief description> | Applied / Declined | <path> |
| 2 | ... | ... | ... |
Approve these changes before pushing? (y/n)Use the AskUserQuestion tool to get explicit approval. If the user declines, stop and let them handle the review manually.
4e. Verify, commit, and push:
After user approval:
bash .claude/hooks/lint.sh && bash .claude/hooks/test.shIf local checks pass:
git add <specific-files>
git commit -m "fix: address Greptile review comments"
git push4f. Return to Step 1 (WAITING_CI).
CI will re-run after the push. Go back to Step 1.
Step 5: DONE — Final Report
## Watch PR Complete
### PR
https://github.com/<REPO>/pull/<PR_NUMBER>
### CI Status: PASSED
- CI fix iterations: <CI_FIX_COUNT>
### Greptile Review
| Status | Details |
|--------|---------|
| Received | YES / NO (timed out) |
| Actionable comments | N |
| Comments addressed | N |
| Comments declined | N (with reasons) |
| Review fix iterations | <REVIEW_FIX_COUNT> |
### Final Status: READY FOR HUMAN REVIEW / NEEDS ATTENTIONIf final status is READY (CI green, reviews addressed), report:
PR is ready for human review.If final status is NEEDS ATTENTION (hit iteration limits), explain what remains.
Safeguards
| Limit | Value | Behavior when exceeded |
| CI fix iterations | 5 | Stop, report failures, ask user |
| Greptile wait timeout | 3 hours | Continue without review |
| Review fix iterations | 3 | Stop, report outstanding comments |
When to Use
- After
/pre-submit-prcreates and pushes a PR - After pushing fixes to an existing PR
- When you want automated CI monitoring and review handling
When NOT to Use
- Before a PR exists (run
/pre-submit-prfirst) - For draft PRs that aren't ready for review
- When you want manual control over CI fixes
Workflow Integration
/work-on-issue #42 → Start from GitHub issue
↓
/write-tests → Create failing tests (Red)
↓
/implement → Make tests pass (Green)
↓
/update-docs → Fix stale docs across repo
↓
/simplify → Refactor (optional)
↓
/pre-submit-pr → Validate before PR
↓
/watch-pr → Monitor CI + Greptile review ← THIS SKILLDoes 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.

