agentleFS
DockerKnown publisherdocker/docs/.agents/skills/maintain-pr/SKILL.md

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

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the docker/docs repository that our weekly crawl found: only 1 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

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.

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
  1. Distinctive:

    Do one maintenance pass over the specified author-owned PR: inspect its state, fix actionable failures or feedback, reply to reviewers, and …

    line 14
  2. Distinctive:

    Always check both top-level reviews and inline comments.

    line 29
  3. Distinctive:

    If merged, report the final state and identify unanswered review comments.

    line 36
  4. Distinctive:

    If closed without merge, read the closing context and report the reason.

    line 39
  5. Distinctive:

    Read the failure details.

    line 44
  6. Distinctive:

    Follow repository instructions for formatting, targeted linting, explicit staging, commits, and pushes.

    line 49
  7. Distinctive:

    Treat every review comment as a claim to verify.

    line 54
  8. Distinctive:

    Commit and push the focused change.

    line 60
  9. Distinctive:

    Use the inline comment endpoint to reply:

    line 68
  10. Distinctive:

    Use GraphQL to retrieve unresolved review-thread IDs and resolve only the threads that were addressed.

    line 77

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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:

  1. Format and validate the changed files.
  2. Commit and push the focused change.
  3. Reply to every addressed thread with what changed or why no change was made.
  4. End replies with an accurate agent-disclosure footer, such as Generated by Codex.
  5. Resolve threads only after replying.
  6. 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>

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.