pr-triage
Skill0 starsChanged 7 months agoMITView on GitHub
Triage a PR's AI review comments and CI failures. Fetches bot reviews (Greptile, CodeRabbit, Copilot, etc.), classifies each comment, and diagnoses CI failures. Use when a PR has bot review comments to address, CI failures to debug, or both. Trigger: "pr triage", "check my PR", "CI failed", "bot comments", "review comments", "triage this PR", "what's blocking my PR".
- Commits and pushes
25 other projects use a version of this.
Adopted by
Most recently taken up by
- Reactive-Skills/skillstheir own version, first seen Nov 29, 2026
- d-o-hub/do-harnesstheir own version, first seen Nov 29, 2026
- nesquena/steward-ostheir own version, first seen Nov 24, 2026
- github/exploretheir own version, first seen Nov 15, 2026
- mazze93/claude-code-skillstheir own version, first seen Nov 10, 2026
- salvo8519/fairmarktheir own version, first seen Nov 8, 2026
Used with
Projects with it also use aeon-update, auto-workflow and 10 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.
aaronjmarsSkillaeon-update
Pull framework updates from the upstream Aeon repo into this instance - 3-way merges canon's new commits into a PR, never clobbering operator config.
Also in 4 projects that use this
aaronjmarsSkillauto-workflow
Two-mode aeon.yml workflow builder - analyze inspects URLs and emits a tiered, signal-verified skill-enablement plan plus an aeon.yml diff; enable flips slugs to enabled:true and opens a PR.
Also in 4 projects that use this
- +10 more from aaronjmars
Other versions25 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 25
- rtk-ai/rtk★ 88ksame name
- toss/es-toolkit★ 11ksame name
- github/explore★ 5ksame name
- aaronjmars/aeon★ 800same name
- aeonfun/aeon★ 800same name
- Python-roborock/python-roborock★ 256same name
- OutThisLife/brooklyn-skills★ 218same name
- redhat-developer/rhdh★ 174same name
- FlorianBruniaux/ccboard★ 106same name
- nesquena/steward-os★ 79same name
15 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 repository59 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- cavemanSkill
- context-engineeringSkill
- deprecation-migrationSkill
- design-an-interfaceSkill
- domain-modelSkill
- edit-articleSkill
- git-guardrails-claude-codeSkill
- github-triageSkill
- grill-meSkill
- autoplanSkill
- benchmarkSkill
- browseSkill
- canarySkill
- carefulSkill
- codexSkill
- context-restoreSkill
- context-saveSkill
- csoSkill
- design-consultationSkill
- design-htmlSkill
- design-reviewSkill
- design-shotgunSkill
- devex-reviewSkill
- document-releaseSkill
- freezeSkill
- guardSkill
- healthSkill
- investigateSkill
- land-and-deploySkill
- learnSkill
- make-pdfSkill
- office-hoursSkill
- plan-ceo-reviewSkill
- plan-design-reviewSkill
- plan-devex-reviewSkill
- plan-eng-reviewSkill
- qa-onlySkill
- qaSkill
- retroSkill
- reviewSkill
- setup-deploySkill
- shipSkill
- unfreezeSkill
- improve-codebase-architectureSkill
- incremental-implementationSkill
- performance-optimizationSkill
- qaSkill
- request-refactor-planSkill
- security-hardeningSkill
- setup-pre-commitSkill
- spec-driven-developmentSkill
- tddSkill
- to-issuesSkill
- to-prdSkill
- triage-issueSkill
- ubiquitous-languageSkill
- write-a-skillSkill
- zoom-outSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
If a PR number was provided, use that instead:
- Distinctive: line 45
If no PR exists for the current branch, tell the user and stop.
- Distinctive: line 82
If there are no bot comments AND CI is green, say so and stop — nothing to triage.
- Distinctive: line 119
If all checks pass, skip this section entirely.
- Very specific: line 128
If --log-failed output is too large, fetch the specific job:
- Distinctive: line 156
If the latest base branch run also fails the same job: it's pre-existing, not your fault.
- Distinctive: line 158
If only your branch fails: it's your change that broke it.
- Distinctive: line 198
If new failures appear after the push, loop back to step 3B for the new failures only.
- Distinctive: line 212
DO NOT: write fix code — suggest the approach, user writes the code
- Distinctive: line 216
DO NOT: treat all bot comments as equal — classification drives the action
- Distinctive: line 219
DO check for pre-existing failures before blaming the user's changes
“Common” is measured: kept by at least 6 in 10 of the 22 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
PR Triage
Post-push triage for PRs: handle AI bot review comments and CI failures in one pass. You push, then deal with the fallout — this skill covers both.
When to Use
- PR has comments from AI review bots (Greptile, CodeRabbit, Copilot, Codex, etc.)
- CI is failing on your PR
- Both — bot comments AND CI failures at the same time
- You want a single dashboard of "what do I need to fix before this merges"
- NOT for writing code reviews yourself — that's
/review - NOT for pre-push review of your own changes — that's
/review
Prerequisites
ghCLI authenticated- A PR on the current branch (or a PR number provided)
Process
1. Identify the PR
Detect the PR from the current branch:
gh pr view --json number,url,headRefName,baseRefName,statusCheckRollup,reviewDecision,stateIf a PR number was provided, use that instead:
gh pr view {number} --json number,url,headRefName,baseRefName,statusCheckRollup,reviewDecision,stateIf no PR exists for the current branch, tell the user and stop.
2. Gather everything
Fetch in parallel:
Bot review comments:
# Inline review comments (file-level)
gh api repos/{owner}/{repo}/pulls/{number}/comments --paginate
# Conversation-level comments (issue comments)
gh api repos/{owner}/{repo}/issues/{number}/comments --paginateCI status:
gh pr checks {number}
gh run list --branch {branch} --limit 5Identify which comments are from bots vs humans. Common bot account patterns:
- Username contains
[bot]suffix - Known bots:
greptile-apps[bot],coderabbitai[bot],github-actions[bot],copilot-pull-request-review[bot],codex[bot],sonarcloud[bot],codecov[bot] - Account type is "Bot" in the API response
Present a summary dashboard:
PR #{number}: {title}
Branch: {head} → {base}
Bot Reviews: {N} comments from {bot names}
CI Status: {passing/failing} — {N passed, M failed, K pending}
Human Reviews: {summary if any}If there are no bot comments AND CI is green, say so and stop — nothing to triage.
3A. Triage bot review comments
For each bot comment, read the comment body and the code it references. Classify:
| Classification | Meaning | Action |
| Valid + actionable | Real issue, needs a code change | Fix it |
| Valid + already handled | Real issue, but code already addresses it | Respond explaining why |
| False positive | Bot misread the code or context | Dismiss with explanation |
| Style / nit | Preference, not correctness | Adopt if cheap, skip if not |
| Duplicate | Same concern raised by multiple bots or repeated | Address once |
| Informational | Bot is explaining something, no action needed | Acknowledge or skip |
For each valid + actionable comment:
- Show the bot's comment (quoted)
- Show the relevant code context (read the file at that line)
- Explain what the bot is flagging and whether it's correct
- Suggest a fix approach — describe what to change, don't write the code
For false positives:
- Explain WHY it's a false positive
- Draft a short response the user can post to the thread (user reviews before posting)
Present results as a summary table:
| # | Bot | File:Line | Classification | Action |
|---|-----|-----------|---------------|--------|
| 1 | Greptile | src/api.ts:42 | Valid + actionable | Fix null check |
| 2 | CodeRabbit | src/auth.ts:15 | False positive | Already validated upstream |
| 3 | Greptile | src/db.ts:88 | Style nit | Optional: rename var |3B. Triage CI failures
If all checks pass, skip this section entirely.
For each failing check/job:
Step 1: Fetch the failure logs
gh run view {run-id} --log-failedIf --log-failed output is too large, fetch the specific job:
gh run view {run-id} --log --job {job-id} | tail -50Step 2: Classify the failure
| Failure Type | Signals | Fix Strategy |
| Build error | Compilation failed, import not found, type error | Fix the syntax or type issue locally |
| Test failure | Assertion failed, expected X got Y | Read the test, understand what it expects, fix your code |
| Lint / format | Style violation, unused import, formatting diff | Run the repo's formatter/linter locally |
| Type check | Type mismatch, missing property, incompatible types | Fix the type error |
| Dependency | Package not found, version conflict, lockfile | Regenerate lockfile |
| Environment | Works locally, fails in CI | Different OS, tool version, or missing env var |
| Flaky test | Passes sometimes, fails sometimes, same code | Not your fault — check if it fails on main too |
| Pre-existing | Main branch has the same failure | Not your fault |
| Timeout | Job exceeded time limit | Check if your changes are slow, or CI is under load |
| Permission / secret | Auth failed, secret not found | Fork PRs can't access repo secrets |
Step 3: Determine fault
This is the critical question. Check if the same job fails on the base branch:
gh run list --branch {base-branch} --limit 5 --workflow {workflow-name}If the latest base branch run also fails the same job: it's pre-existing, not your fault.
If only your branch fails: it's your change that broke it.
For pre-existing failures, draft a PR comment:
CI failure in `{job-name}` is pre-existing — same failure on `{base-branch}` ([run link]). Not introduced by this PR.For your failures: show the relevant error, explain it, suggest the fix approach.
4. Action plan
Present a prioritized list of everything that needs to happen:
Priority 1 — CI fixes (blocking merge):
- List each CI failure that's YOUR fault, with fix approach
Priority 2 — Valid + actionable bot comments (blocking review):
- List each, with fix approach
Priority 3 — Responses needed (unblock review thread):
- False positive explanations to post
- Pre-existing CI failure comments to post
Priority 4 — Optional (quick wins):
- Style nits worth adopting
- Informational acknowledgments
5. Execute
Work through the action plan in priority order. For each item:
- Code fixes: Explain the approach, user writes the code. Help with unfamiliar linter rules or CI tools.
- PR comment responses: Draft the response, user reviews and posts. Keep responses terse and factual.
- After fixes: Push and re-check CI.
git push
gh pr checks {number} --watchIf new failures appear after the push, loop back to step 3B for the new failures only.
Common Traps
| Shortcut | Why It Fails |
| Ignore all bot comments | Bots catch real issues 30-50% of the time. Ignoring signals you didn't read them. |
| Push random CI fixes without reading logs | Diagnose first. Blind pushes waste CI minutes and clutter git history. |
| Dismiss bot comments without explanation | Classify first. If false positive, explain WHY — reviewers read the thread. |
| Assume "passes locally = CI is wrong" | CI uses pinned versions and clean state. If it fails there, it's usually real. |
| Fix pre-existing failures in your PR | Check main first. Don't own problems that aren't yours. |
Rules
- DO NOT write fix code — suggest the approach, user writes the code
- DO NOT auto-dismiss bot comments — classify each one with reasoning
- DO NOT skip fault determination for CI — always check if base branch has the same failure
- DO NOT post PR comments without user reviewing them first
- DO NOT treat all bot comments as equal — classification drives the action
- DO present a clear summary dashboard before diving into details
- DO prioritize CI fixes over bot comments (CI blocks merge, comments block review)
- DO check for pre-existing failures before blaming the user's changes
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.

