gh-pr-ci-triage
Skill0 starsChanged 8 days agoMITView on GitHub
Debug failing GitHub Pull Request CI checks (GitHub Actions logs) and address PR review or issue comments systematically using the gh CLI. Trigger automatically when inspecting failing GitHub Actions PR checks or resolving GitHub PR review threads.
In this repository60 other files it gives its agents.
- AGENTS.mdAGENTS.md
- skills/agent-browser/AGENTS.mdAGENTS.md
- skills/reverse-skill/AGENTS.mdAGENTS.md
- spec-kit/AGENTS.mdAGENTS.md
- skills/reverse-skill/CLAUDE.mdCLAUDE.md
- skills/taste-skill/skills/llms.txtllms.txt
- multimodal-media-directorSkill
- novel-story-architectSkill
- screenplay-manga-directorSkill
- ui-ux-pro-maxSkill
- appsec-reviewSkill
- ask-mattSkill
- codebase-designSkill
- code-reviewSkill
- code-simplifierSkill
- decompile-reconstructionSkill
- diagnosing-bugsSkill
- diagram-flowchart-architectSkill
- domain-modelingSkill
- grill-with-docsSkill
- implementSkill
- implement-specSkill
- improve-codebase-architectureSkill
- prototypeSkill
- prSkill
- researchSkill
- resolving-merge-conflictsSkill
- retroSkill
- setup-matt-pocock-skillsSkill
- skill-evaluatorSkill
- tddSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wayfinderSkill
- wizardSkill
- chrome-extensionsSkill
- modern-web-guidanceSkill
- web-data-visualizationSkill
- web-game-studioSkill
- nano-banana-proSkill
- ponytail-auditSkill
- ponytail-debtSkill
- ponytail-gainSkill
- ponytail-helpSkill
- ponytail-reviewSkill
- ponytailSkill
- grillingSkill
- grill-meSkill
- handoffSkill
- office-pro-suiteSkill
- product-requirements-grillingSkill
- role-persona-routerSkill
- teachSkill
- to-questionnaireSkill
- wait-whatSkill
- writing-for-agentsSkill
- writing-great-skillsSkill
- reverse-skills-routerSkill
- self-improving-agentSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 1 is distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Verify GitHub CLI availability and authentication first:
- Very specific: line 24
If gh is missing or unauthenticated (or lacks repo/workflow scope), stop and instruct the user to run gh auth login rather than guessing …
- Very specific: line 31
Prefer the current branch PR (gh pr view --json number,url,headRefName), or use the user-supplied PR number/URL.
- Very specific: line 33
Run gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow (if a field is rejected by an older gh version, retry …
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
GitHub PR & CI Triage (gh-pr-ci-triage)
This skill synthesizes the Apache-2.0 gh-fix-ci and gh-address-comments workflows (openai/skills) for deterministic, plan-before-edit GitHub PR diagnostics via the gh CLI.
1. Mandatory Automatic Activation Rule
Automatically activate this skill whenever the user asks to:
- Debug, inspect, or fix failing GitHub PR checks or GitHub Actions workflow runs.
- Review, triage, or resolve open PR review threads or issue comments on the current branch's GitHub PR.
2. Preconditions
- Verify GitHub CLI availability and authentication first:
gh auth status - If
ghis missing or unauthenticated (or lacksrepo/workflowscope), stop and instruct the user to rungh auth loginrather than guessing remote CI state.
3. Mode A: Failing PR Checks Triage (gh-fix-ci)
- Resolve PR:
- Prefer the current branch PR (
gh pr view --json number,url,headRefName), or use the user-supplied PR number/URL.
- Prefer the current branch PR (
- Inspect Checks & Scope Provider:
- Run
gh pr checks <pr> --json name,state,bucket,link,startedAt,completedAt,workflow(if a field is rejected by an olderghversion, retry with supported fields). - External Provider Boundary: GitHub Actions runs are in scope; external CI systems (e.g., Buildkite, CircleCI, Jenkins) are out of log-fetch scope — report their
linkURL and status honestly without fabricating logs.
- Run
- Fetch Actionable Failure Logs:
- Extract the run ID from the failing check's
linkURL and run:gh run view <run_id> --json name,workflowName,conclusion,status,url,event,headBranch,headShagh run view <run_id> --log-failed(orgh run view <run_id> --log/gh api repos/{owner}/{repo}/actions/jobs/{job_id}/logsif the run is still in progress).
- Extract the run ID from the failing check's
- Summarize & Plan Before Editing:
- Extract the exact failing step, command, and error snippet (root cause, not noisy tail lines).
- Draft a concise fix plan, obtain approval when the fix crosses non-trivial boundaries, apply bounded edits, and run matching local checks before reporting resolution.
4. Mode B: PR Review Comment Resolution (gh-address-comments)
- Collect All Feedback:
- Fetch general PR comments and inline review threads via
gh pr view <pr> --comments --json comments,reviewsand GraphQL/REST review-thread queries (gh api graphqlorgh api repos/{owner}/{repo}/pulls/{pr}/comments).
- Fetch general PR comments and inline review threads via
- Number & Group Actionable Items:
- Deduplicate resolved/outdated threads; group remaining comments by file and severity (Correctness/Security vs. Style/Question).
- Execute & Verify:
- Apply targeted fixes for valid findings (or prepare factual responses where a reviewer premise does not hold), run tests, and present a clear per-comment resolution summary before any push/reply.
5. Attribution
- Synthesized from
openai/skills(gh-fix-ci,gh-address-comments—Apache-2.0License).
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.

