agentleFS
sblueminsbluemin/fleet-harness/.claude/skills/pr-workflow/SKILL.md

pr-workflow

Skill17 starsChanged 59 days agoMITView on GitHub

Deliver a fleet-harness change through commit, PR publication, Codex review adjudication, and merge, or resume an existing PR review loop. Do not start publication for local-only edits or a standalone code review.

10 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run when the user requests this PR lifecycle or explicitly authorizes publication/merge.

    line 12
  2. Very specific:

    Write changelogs only for feature-level product changes.

    line 28
  3. Very specific:

    Before the first review fix, freeze the Product Context Record and pushed REVIEW_BASE_HEAD: request, acceptance criteria, exclusions, …

    line 29
  4. Distinctive:

    After every pass and before merge, audit the cumulative review-fix diff against frozen context.

    line 31
  5. Distinctive:

    When no activation signal (Review wait step 1) exists yet, explicitly request review and check for a default 60 seconds.

    line 35

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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 Workflow

Deliver an authorized change as a PR on sbluemin/fleet-harness. Start new changes at commit/publication, open PRs at review, and review-complete PRs at final audit. Do not repeat completed phases ceremonially.

Scope and authority

Run when the user requests this PR lifecycle or explicitly authorizes publication/merge. Automatic skill loading does not authorize commit, push, PR creation, or merge. Do not ask again between ordinary steps within an authorized full lifecycle.

Defaults: base canary, merge squash, auto_merge=true. The base is always canary: the PR Target Guard workflow closes every pull request aimed elsewhere, and a request to target main/master belongs to release-version-update, not a PR. Reject head=base. With auto_merge=false, stop at review completion and preserve branch/worktree. Read Inputs when options need resolving.

Phase-specific loading

Current taskRead before starting
New commit, push, PR creation, changelog classificationPublishing
Review start/resume, feedback application, final auditJudgment
Codex activation and signal waitReview wait
Final audit, canary-only CI pre-check, base integration, merge, post-merge canary CI, cleanupMerge and cleanup

Core contracts

  • Confirm head worktree/branch/PR identity and stage only relevant files. Use English Conventional Commits without amend or hook bypass. Run checks for affected workspaces and disclose unavailable/unrun scripts.
  • Write changelogs only for feature-level product changes. .changelog.d/CLAUDE.md owns the authoring contract. A new branch fragment and amendment of an existing unreleased fragment are mutually exclusive. Do not add unnecessary fragments or no-changelog declarations for docs/prompts.
  • Before the first review fix, freeze the Product Context Record and pushed REVIEW_BASE_HEAD: request, acceptance criteria, exclusions, trade-offs, supported behavior, decision evidence. If these cannot be reconstructed on resume, stop edits/merge.
  • Review is a hypothesis, not authority. FIX requires a reproduced supported path, original scope alignment, preserved supported functionality, and proportional value. Do not make unreproduced defensive fixes. Post evidence-backed DECLINE / DEFER dispositions too; ask only when product intent is genuinely unresolved.
  • After every pass and before merge, audit the cumulative review-fix diff against frozen context. Revert only review-induced drift while preserving later user-directed changes. The reviewer cannot expand product scope.

Waiting and termination

When no activation signal (Review wait step 1) exists yet, explicitly request review and check for a default 60 seconds. Still no activation signal becomes codex_activation_timeout and may proceed through normal merge gates, but is not approval and never bypasses required checks.

Use signal-driven background waiting. Do not treat stale +1, eyes, or re-anchored inline comments as fresh approval/feedback. A usage-limit notice means that request is not shown to have produced a review; it does not mean no review ever ran, and it does not approve the head; classify it as Review wait describes and record codex_usage_limit. End the review loop on a pass with no FIX findings, with a default maximum of 3 passes. Continuing requires a named reproduced defect. Disclose timeouts, omissions, and failures.

Merge and delivery

Record FINAL_AUDIT_BASE; check base advancement and PR-file overlap again immediately before merging. Conflicts or overlapping advancement require head integration through rebase-on-canary, validation, and head-only --force-with-lease, then repeated audit/remote checks. Do not rewrite history in the ordinary path.

Merge also requires the re-check evidence when the gate in Merge and cleanup applies. Inside an objective, line up that gate's independent re-checker as soon as a review FIX commit or codex_usage_limit appears: a member that wrote none of the changes in scope, enlisted by the Commander when none exists. Ask for its record in English, the PR comment language, so the verbatim post needs no translation. Merge only through gh pr merge. Never use --admin, protected-branch direct pushes, or required-check bypasses. Green PR checks do not cover jobs that run only on a canary push: cover them locally before merge, and after merge watch the merge commit's canary runs to completion, as Merge and cleanup describes. Confirm actual MERGED state before cleaning the owned head worktree through git-worktree. Preserve draft/blocked/unmerged work.

Report PR URL/head/base, frozen SHAs/final audit, FIX/DECLINE/DEFER, commits/push targets, validation, review termination basis, merge SHA or unmerged reason, stopped waits, and cleanup. The host owns title/body/changelog/final-report synthesis.

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.