Catalog
fauziyasin-s2m4qw/maintain-pr

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.

v1.0LATEST
NewUpdated Nov 27, 2026

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>

Overall Score

76/100

Grade

B

Good

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

78

Quality

73

Clarity

80

Completeness

70

Summary

This skill guides an agent to maintain a single Docker documentation pull request by checking CI status, reviewing feedback, fixing failures, replying to comments, and reporting results. It operates within the docker/docs repository and the specified PR scope, using GitHub CLI commands to gather state, diagnose CI failures, address review feedback, and push changes.

Detected Capabilities

GitHub CLI execution (gh pr, gh api)Git operations (checkout, commit, push)File read and modification within PR scopeShell command execution for validation and formattingHTTP API calls to GitHub REST API

Trigger Keywords

Phrases that agents use to match this skill to user intent.

babysit prfix ci failureaddress review feedbackcheck pr statusmaintain pull requestresolve review comments

Risk Signals

WARNING

Shell execution via gh api with inline user input

Section 2 and 4: gh api calls with field interpolation
INFO

Branch checkout and push to remote on user-owned PR

Section 3 and 4: Git operations
INFO

File modification without explicit scope boundary

Section 3: 'Fix actionable failures in the PR's changed files'
WARNING

Comment reply via API with user-provided content

Section 4: inline comment endpoint with body field

Use Cases

  • Babysit an open PR and handle routine maintenance tasks
  • Fix CI failures on a pull request you own
  • Address actionable review feedback and reply to reviewers
  • Check the current status of a PR and identify pending issues
  • Push incremental fixes to an author-owned PR branch

Quality Notes

  • Positive: Clear scope boundary — only operates on user-owned PR within docker/docs repository
  • Positive: Well-documented workflow with numbered steps and explicit state handling (merged, closed, open)
  • Positive: Includes safety check ('Confirm that the PR is one the user owns') before proceeding
  • Positive: Requires explicit authorization gates and fallback instructions ('use review-pr' for incoming contributions)
  • Positive: Terminal state handling documented (merged, closed) to avoid unnecessary modifications
  • Negative: Section 3 says 'Fix actionable failures in the PR's changed files' but does not specify how to validate which files are changed or limit the blast radius
  • Negative: No explicit error handling guidance for failed git operations (checkout, push, commit)
  • Negative: Comment reply instructions include agent-disclosure footer guidance but do not validate that the agent actually implements it
  • Negative: Assumes `gh` CLI is configured and authenticated but does not document fallback for auth failures
  • Negative: Does not explicitly document what constitutes an 'actionable' failure — leaves classification to agent interpretation
Model: claude-haiku-4-5-20251001Analyzed: Nov 27, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use fauziyasin-s2m4qw/maintain-pr in your dev environment

Command Palette

Search for a command to run...