maintain-pr
Skill4.7k starsChanged 7 months agoApache-2.0View on GitHub
Maintain and follow up on a single Docker documentation pull request that you own or are responsible for updating. Check CI and review feedback, fix actionable failures, push changes, reply to comments, and report status. Use for requests such as "babysit this PR", "check the status of my PR", "fix CI on my PR", or "address review comments on #500". Do not use for maintainer review of an incoming contribution; use review-pr for that.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about docker/docs
The biggest 1 of 1 mention linking to the repository that our crawl found. Each line is their own headline.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-readiness-auditSkill
- create-lab-guideSkill
- create-prSkill
- curate-whats-newSkill
- fix-issueSkill
- migrate-content-iaSkill
- researchSkill
- review-changesSkill
- review-prSkill
- testcontainers-guide-migratorSkill
- triage-issueSkill
- writeSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Do one maintenance pass over the specified author-owned PR: inspect its state, fix actionable failures or feedback, reply to reviewers, and …
- Distinctive: line 29
Always check both top-level reviews and inline comments.
- Distinctive: line 36
If merged, report the final state and identify unanswered review comments.
- Distinctive: line 39
If closed without merge, read the closing context and report the reason.
- Distinctive: line 44
Read the failure details.
- Distinctive: line 49
Follow repository instructions for formatting, targeted linting, explicit staging, commits, and pushes.
- Distinctive: line 54
Treat every review comment as a claim to verify.
- Distinctive: line 60
Commit and push the focused change.
- Distinctive: line 68
Use the inline comment endpoint to reply:
- Distinctive: line 77
Use GraphQL to retrieve unresolved review-thread IDs and resolve only the threads that were addressed.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Maintain PR
Do one maintenance pass over the specified author-owned PR: inspect its state, fix actionable failures or feedback, reply to reviewers, and report the result. This workflow may modify the branch and GitHub because the user is asking to maintain the PR. Do not apply it to an incoming PR merely because the user asks to review or assess it.
1. Gather PR state
gh pr view <PR> --repo docker/docs --json state,title,url,headRefName,headRepositoryOwner,comments,reviews,reviewDecision
gh pr checks <PR> --repo docker/docs --json name,state,detailsUrl
gh api repos/docker/docs/pulls/<PR>/comments \
--jq '[.[] | {id, author: .user.login, body, path, line, in_reply_to_id}]'Always check both top-level reviews and inline comments. A review with an
empty body may still contain line-level feedback. Confirm that the PR is one
the user owns or is authorized to update before checking out or pushing its
branch. If not, stop and use review-pr.
2. Handle terminal states
If merged, report the final state and identify unanswered review comments. Reply only when the user remains responsible for follow-up.
If closed without merge, read the closing context and report the reason. Common causes include maintainer rejection, supersession, or automation.
3. Diagnose CI failures
- Read the failure details.
- Determine whether the failure comes from the PR or predates it.
- Fix actionable failures in the PR's changed files.
- Report pre-existing or upstream failures without changing unrelated files.
Follow repository instructions for formatting, targeted linting, explicit staging, commits, and pushes. Preserve unrelated working-tree changes.
4. Address review feedback
Treat every review comment as a claim to verify. Implement it only when the evidence supports it; explain any evidence-based disagreement.
After each fix:
- Format and validate the changed files.
- Commit and push the focused change.
- Reply to every addressed thread with what changed or why no change was made.
- End replies with an accurate agent-disclosure footer, such as
Generated by Codex. - Resolve threads only after replying.
- Re-request review when appropriate.
Use the inline comment endpoint to reply:
gh api repos/docker/docs/pulls/<PR>/comments \
--method POST \
--field in_reply_to=<COMMENT_ID> \
--field body='<RESPONSE>'Use GraphQL to retrieve unresolved review-thread IDs and resolve only the threads that were addressed. Do not silently fix feedback without replying.
5. Report
## PR #<number>: <title>
**State:** <open, merged, or closed>
**CI:** <passing, failing, or pending>
**Review:** <approved, changes requested, or pending>
**Action taken:** <changes, replies, and thread resolution, or none needed>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.

