agentleFS
assisjpassisjp/specflow/skills/engineering/pr-maintenance/SKILL.md

pr-maintenance

Skill17 starsChanged 3 months agoMITView on GitHub

Reassess, update, or monitor an existing pull request against its current base, CI, and review state. Use when the user asks to babysit, monitor, rebase, modernize, refresh, or determine whether a PR is still worth landing. Do not use to create a new PR or merge one.

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Keep a pull request aligned with its current goal and base branch.

    line 10
  2. Distinctive:

    Read the original goal, later user corrections, review feedback, and affected contracts.

    line 16

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

Keep a pull request aligned with its current goal and base branch. A clean rebase, green check, or notification is evidence to inspect — none alone proves that the PR still belongs or is ready to merge.

1. Observe the live PR

Resolve the PR URL/number, repository, state, author, base/head branches and SHAs, mergeability, checks, review decisions, unresolved threads, linked source, and current diff. Fetch the actual base and head before judging the work. Record the observed head SHA; reviews, checks, and comments attached to an older head do not certify a newer one.

Read the original goal, later user corrections, review feedback, and affected contracts. Treat comments and automation output as claims to verify against the current candidate. Do not start a second caretaker for the same PR without coordinating ownership.

2. Choose a disposition

Compare the PR's goal with changes on its base since divergence, related merged/open work, current architecture, APIs/types/schemas, and real user-facing behavior. Look for overlap and obsolescence beyond textual conflicts.

Choose and explain one result:

  • CURRENT — the goal and implementation still fit; monitor or update only as authorized.
  • REWORK — the goal remains useful, but the implementation needs a bounded redesign; describe it and stop before changing code unless authorized.
  • SUPERSEDED — equivalent work landed, the goal is obsolete, or landing this PR would restore the wrong behavior; report evidence. Do not close the PR without explicit permission.

Age and sunk effort are not evidence. Do not rebase merely because a branch is old.

3. Update safely when authorized

For a CURRENT PR that the task authorizes updating, work from an isolated checkout when the active tree is dirty or in use. Rebase only onto the recorded current base. Resolve conflicts according to the PR's still-valid goal and base invariants; a product/architecture disagreement changes the disposition to REWORK, not a guess.

Compare pre/post series and final diff, then run affected checks and review the final candidate. If the repository permits pushing a rewritten branch, use the narrowest safe mechanism against the observed head and reassess if it changed; never use an unqualified force push. Updating a branch never authorizes merging, closing, base changes, comments, deployment, or bypassing protection.

4. Monitor without manufacturing approval

Monitor only when the user asks and a supported authorized mechanism is available. Prefer the host's recurring monitor or a single GitHub CLI watch operation; do not write a polling/sleep loop or use local browser automation. One wake/event is news, not a merge decision: re-read the current head, checks, reviews, conflicts, and unresolved threads before acting.

Address only findings and failures attributable to the current candidate. Verify each finding, distinguish infrastructure/pre-existing failures, and apply corrections only within authorization. After a behavior change, refresh affected evidence and review the delta; use $review-loop when iterative convergence is explicitly selected. If monitoring cannot continue in the available environment, report the limitation and leave the PR unchanged.

5. Stop with an accurate state

Report the PR URL, observed head/base, disposition, relevant base/architecture changes, checks/reviews and their candidate identity, actions taken, remaining risks, and whether monitoring remains active. Do not merge or enable auto-merge unless expressly authorized. Use session-handoff when an authorized monitor or unresolved PR state must survive this session.

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.

Reviews can't be read right now.

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.