/github-janitor:pr-janitorfrom github-janitor
Keep the authenticated GitHub user's open, ready-for-review pull requests healthy: address still-valid review feedback, report failing CI for manual analysis, and drive checks green with direct PR links. Never posts redundant comments and never resolves threads a human took part in. Use when the user says 'pr janitor', 'fix my PRs', 'address the review comments', 'keep my PRs green', '/pr-janitor', or from a scheduled OpenClaw automation.
Ships in github-janitor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Decide which pull requests deserve work and whether to say anything at all. The work on a single PR — verifying findings, replying, resolving — belongs to the pr-address-comments skill, in ../pr-address-comments/SKILL.md next to this file. Read it once you have picked a PR and follow it, with the silence rule below layered on top.
The one rule that matters here: never act on a finding you have not proven is still open on the current head. Reviewers, CI and other agents move faster than you. A comment that was true an hour ago is often already fixed, and answering it again is worse than saying nothing.
Unattended runs (scheduled automations): first run test -x /usr/bin/gh.real. If it fails, the host guardrail shims from ../../guardrails/install.sh are not installed: do nothing on GitHub and report "guardrails missing on this host" as the only blocker.
Both live in this skill's directory (${CLAUDE_PLUGIN_ROOT}/skills/pr-janitor/bin/ as a Claude Code plugin):
bin/pr-fingerprint.sh — one line per eligible PR: head SHA, updatedAt, check rollup, unresolved thread count. One GraphQL call. This is what the scheduled trigger compares between runs.bin/pr-snapshot.sh <owner/repo> <number> — the full current state of one PR: checks on that exact SHA, review threads with isResolved, isOutdated and each author's account type, reviews and issue comments.Use them instead of assembling state by hand, and re-run the snapshot before every mutation: it is stale the moment you push or someone else does.
gh auth status must succeed. LOGIN=$(gh api user --jq .login).gh search prs --author "$LOGIN" --state open --json number,url,repository,isDraft,title.$LOGIN. Organization repos are in scope.For each PR in scope, run bin/pr-snapshot.sh and decide whether there is anything worth a deep pass:
isResolved: false and its last comment is not already an answer from you.Failing CI checks are reported but not automatically fixed — they go in the report with check name and detailsUrl for manual analysis.
A PR with green checks and nothing unresolved is done. Record it and move on — do not read its diff, do not clone it.
isOutdated: true, or a comment pinned to a SHA older than the head, means the code moved under the finding. That is a strong hint it is already handled, but it is a hint: check the current code before deciding either way.
For each PR that survived triage, read ../pr-address-comments/SKILL.md and do what it says: read files at the PR's SHA, separate each finding's premise from its conclusion, reach a verdict of correct / false positive / out of scope, fix what is genuinely broken, commit, push, reply with reproducible evidence, and resolve bot threads only.
Two additions for unattended work:
After every push, re-run the snapshot, confirm the head is your commit, and re-triage what is left against it.
In English, compact, one bullet per PR, always with the direct https://github.com/<owner>/<repo>/pull/<n> link. Per PR: head SHA and CI state, what changed and how it was verified, human threads replied to (still open), bot threads resolved, findings skipped with the reason, blockers.
Failing CI checks: list each one with its name and detailsUrl so you can investigate manually. Format:
❌ [Check Name](detailsUrl) — check logs for detailsExample: ❌ [Run CI tests](https://github.com/softonic-development/apk-signature-provider/actions/runs/35227351827/job/106703547019) — check logs for details
A blocker is only something you cannot fix from here: missing credentials, external infrastructure, a product decision. Never report green from an earlier SHA.
Unattended runs: silence applies to the report too. Return exactly NO_REPLY unless this run changed code, posted a reply, resolved a thread, hit a blocker, or found failing CI checks. A PR you triaged as clean is not news, however it entered your scope: a run that swept ten PRs and found nothing to do still returns NO_REPLY.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub serban-marius/pip-boy --plugin github-janitor3 skills in this plugin
/inbox-janitorClean the authenticated user's GitHub notification inbox and send a short digest of what still needs them. Marks as done what a rule-based snapshot proves is noise (merged/closed subjects, already-approved review requests, bot PRs, own-PR activity, CI/push/subscription chatter) and never touches mentions, assignments or pending reviews on human PRs. Use when the user says 'clean my github inbox', 'github notifications', 'inbox janitor', '/inbox-janitor', or from a scheduled OpenClaw automation./pr-address-commentsWorks through the review comments left on a GitHub PR: analyses each finding, verifies it against the actual code at the PR's own SHA, replies in English explaining either how it was fixed (and in which commit) or why it is a false positive, resolves the bot's threads while leaving human threads for the human to close, then commits, pushes and waits for CI and for the reviewer bot's next pass. Knows Softonic's `sftbot-pr-reviewer[bot]` and its finding format, and adds actionable feedback for improving the bot whenever it reports a false positive. Use this whenever the user says things like 'revisa los comentarios de la PR', 'atiende los comentarios del bot', 'responde a la review', 'address the PR review comments', 'fix what the reviewer flagged', 'check if the bot's findings are correct', 'resuelve los comentarios de sftbot', '/pr-address-comments', or asks you to act on feedback someone left on a pull request. This is the counterpart of the github-pr-review skill: that one leaves the comments, this one answers them.Other plugins' skills for the same job