agentleFS
LuisUrrutiaLuisUrrutia/skills/pr-followup/SKILL.md

pr-followup

Skill2 starsChanged 58 days agoMITView on GitHub

Babysit a pull request until merged or formally approved; inspect or repair feedback and CI, and move settled drafts to ready for review.

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. About 0 are common, 12 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈12

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this for requested babysitting and the continuation of a PR creation request.

    line 20
  2. Distinctive:

    Do not require approval again for covered work.

    line 27
  3. Distinctive:

    Use host-managed event notifications and end the agent turn while waiting.

    line 33
  4. Very specific:

    Use host checkout ownership and worktrunk for necessary checkout operations.

    line 44
  5. Distinctive:

    Read references/feedback.md for collection, judgment and reviewer communication.

    line 51
  6. Distinctive:

    Keep a small local ledger when multiple items or cycles need continuity: source IDs/URLs, updated version, claim, evidence, decision, …

    line 57
  7. Distinctive:

    Ask immediately when a critical choice remains unresolved and plausible answers would change the contract or validity of a repair.

    line 69
  8. Distinctive:

    Do not implement optional redesigns or change product policy just to clear a thread.

    line 78
  9. Distinctive:

    Run applicable behavioral checks, compile/build and broader smoke evidence under project instructions.

    line 99
  10. Distinctive:

    Do not republish merely to wake a bot.

    line 104
  11. Distinctive:

    All applicable CI/CD has passed, with no active jobs or unexplained failures, cancellations or unknown results.

    line 111
  12. Distinctive:

    No known repair, conflict, active automated reviewer or other actionable work remains.

    line 122
  13. Distinctive:

    Always attempt a fresh post-ready snapshot before returning.

    line 139

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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

PR follow-up

Bring an existing PR to the requested stopping point with evidence for its current revision. Evaluate feedback before changing code; keep every observed item accounted for. Use this directly with a PR URL or as a phase of an authorized delivery task.

Choose scope and establish state

  • Check: inspect and report. No edits, reruns, replies, publication or state changes.
  • Feedback: collect all feedback channels, evaluate each item, apply clear improvements within the request, and verify the resulting change. A request to review PR comments includes acting on correct observations unless it says read-only.
  • Drive: repair feedback, CI and necessary base conflicts, publish when authorized, and follow the PR until merged or a current formal approval is verified. Use this for requested babysitting and the continuation of a PR creation request.

Resolve scope from the request and standing instructions. Record whether commits, publication, replies and thread resolution are authorized. Code repair alone does not authorize messages to reviewers. A PR creation request covers Drive repairs, verification, commits, publication and the conditional ready transition below; explicit read-only, create-only or keep-draft instructions constrain that scope. Do not require approval again for covered work. Drive has no default elapsed-time cutoff. The user can set a time limit or stop it explicitly. A formal approval must still be valid for the current revision under repository policy; green checks and a bot's success comment are not approval. A closed, unmerged PR ends observation with that outcome, not success. An access blocker pauses affected work and must be reported, not treated as completion. Use host-managed event notifications and end the agent turn while waiting. A host watch notification resumes this skill and its retained task state. A subagent unable to own the watch returns that responsibility to its parent. If no resumable watch is available, report that limitation instead of keeping the model in a polling loop or claiming unattended coverage. A separate recurring schedule still requires an explicit request. Feedback scope does not become indefinite babysitting merely because its repairs or ready transition finished.

Resolve exact PR URL, target repository, head repository/ref/SHA, base ref/SHA, open/closed state, draft state and repository merge requirements. Match the local checkout to that head before editing; preserve unrelated work and index state. Use host checkout ownership and worktrunk for necessary checkout operations; stacked-pr owns stack topology and rebases. Keep one mutation owner per PR or stack. Register the PR with the host when supported. Stop on a closed or merged target unless the user requested a specific historical operation.

Observe and evaluate

Read references/feedback.md for collection, judgment and reviewer communication. It includes references/github-collection.md for GitHub pagination and channels. Inspect review threads, formal review bodies, conversation comments, check annotations/summaries and reviewer output in CI logs. A green job can still contain feedback. Record inaccessible channels as unknown.

Keep a small local ledger when multiple items or cycles need continuity: source IDs/URLs, updated version, claim, evidence, decision, correction, verification, published revision and any pending reply/resolution. Use ignored task storage. Deduplicate one causal issue while retaining all its source IDs. Re-read edited comments and new replies, including resolved or outdated threads; prior disposition does not settle new content. Remote state remains authoritative on resume.

Trace each claim through current code, requirements and caller behavior. Accept a clear improvement because its reasoning holds, not because a bot or reviewer said it. Disprove a claim with concrete evidence, not preference or a vote. Uncertainty is a question to investigate, not automatic permission to change behavior.

Ask immediately when a critical choice remains unresolved and plausible answers would change the contract or validity of a repair. Pause that repair, continue independent work, and report the choices with a recommendation. Do not let pending CI, an inaccessible channel or one disputed item freeze unrelated supported fixes.

Repair, verify and publish

Group related feedback by root cause; make the smallest coherent correction that preserves the intended contract. Add a regression test when it exercises the failure. Do not implement optional redesigns or change product policy just to clear a thread.

Load support only at the boundary that needs it:

NeedOwner
Uncertain defect or CI failuredebug for causal investigation.
Bounded review claim that needs deeper auditreview-code-changes in read-only mode.
A deciding indirect consequenceanalyze-change-effects.
Workflow or agent-instruction changesgithub-actions or agent-instructions.
Applicable execution evidenceverify and the local application recipe.
Atomic commitscommit; carry existing authorization and preserved work.
Push and complete PR description refreshpr; pass exact identity and verified revision.
Dependent PR topology or cascading rebasestacked-pr, retaining one writer.

For CI, base updates and observation, read references/ci-and-observation.md. Before GitHub writes or publication, use pr's publication procedure for actor identity, SSH, exact destination and post-write checks. Standalone follow-up needs those same checks; it does not require having created the PR with pr.

Run applicable behavioral checks, compile/build and broader smoke evidence under project instructions. If a prerequisite is unavailable, report the exact limitation; do not treat it as passed. Commit at coherent boundaries and publish a batch of verified fixes when authorized. Re-read the actual remote head after publication, invalidate prior CI/readiness evidence, and update the whole PR body through pr. Do not republish merely to wake a bot. Continue collecting feedback for the new head.

Move a settled draft to review

In Feedback or Drive scope, mark an open draft ready without another permission prompt when a fresh snapshot of the current head/base establishes all of these:

  • All applicable CI/CD has passed, with no active jobs or unexplained failures, cancellations or unknown results. Optional failures also block this transition unless the user explicitly accepts an exception. Explain legitimate policy-based skips; jobs skipped only because the PR is a draft must be checked after the transition.
  • Observed feedback has been resolved: accepted fixes are verified and published, reviewer questions are answered visibly or settled by the user, decisions are settled, and required thread resolutions are complete under the authority in references/feedback.md. Merely listing an unresolved item in the final report does not satisfy this gate. If a required reply or thread resolution lacks authorization, keep the draft and report that prerequisite.
  • No known repair, conflict, active automated reviewer or other actionable work remains. Inaccessible evidence blocks the transition. A future human review or missing approval alone does not: ready for review is distinct from ready to merge.

Honor an explicit keep-draft instruction and leave Check scope read-only. Recheck identity, head/base and readiness immediately before using pr's publication identity checks and gh pr ready <url>. Verify isDraft is false; inspect remote state before retrying an uncertain write. If the revision moved, reassess it.

The transition starts a new observation phase even if the SHA is unchanged. Invalidate the draft-era completion snapshot, discover workflows and automated reviewers triggered or unblocked by ready state, and collect every feedback channel again. Continue the repair/verify/publish loop for new failures and comments. Do not infer completion from the old green checks or a momentarily empty queue; verify expected post-ready work has run or report it as pending. Drive then keeps its host-managed watch until its stopping condition is met; Feedback returns its current result without starting indefinite observation. Always attempt a fresh post-ready snapshot before returning; report an inaccessible snapshot as blocked rather than claiming completion.

Human feedback arriving during observation or on host resumption enters the same loop. If human review is still pending when the agent yields, report that fact separately from completed technical work; never claim approval or merge readiness.

Stop with an honest result

Feedback work is accounted for when every observed item is applied or reported with its reason for remaining unapplied and any required decision. Distinguish locally fixed, verified, published, replied and resolved; none implies the next.

On each Drive wake, first check for merge or a current formal approval. Either ends babysitting: report the verified state and stop the host watch. A host may stop silently on merge or closure; do not promise a final agent message without a wake. Report that outcome when next invoked. Approval does not establish merge readiness; report any remaining checks, feedback or conflicts without claiming they passed. Otherwise collect a fresh coherent snapshot of the head/base, checks and feedback, repair authorized issues, and yield to the host watch. Technical completion alone does not end Drive before approval or merge. Honor an explicit stop or user time limit, and report closed-unmerged state or access blockers separately. Never merge, enable auto-merge or approve a gated workflow merely to make the loop finish.

Return the PR URL and current head, applied work summary with relevant commits, actual verification commands/results, current checks, and remaining items. For each unapplied item give the evidence-based reason; for a user decision include choices and recommendation. State complete for requested scope, waiting, or blocked and what would allow continuation. Retain the ledger only while needed for resumption, then remove owned scratch. Stop local watchers owned by this run; retain this run's host watch only while Drive is waiting for its stopping condition. Other pending reviews do not override an already verified approval stop.

For requested source maintenance, use agent-instructions with origin.txt and references/upstream-updates.md.

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.