agentleFS
loopx-projectloopx-project/loopx/skills/loopx-pr-merge/SKILL.md

loopx-pr-merge

Skill6.8k starsChanged 2 months agoApache-2.0View on GitHub

Optional maintainer workflow for the approval, merge-readiness, or authorized self-merge decision on a LoopX pull request. Requires the exact-head review evidence from `loopx pr-review`. Review depth, verdicts, review comments, and the published review format belong to loopx-pr-review.

1 other project uses a version of this.

Trending

More talk lately.about 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: 14 mentionsNov 2026: 36 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the loopx-project/loopx repository that our weekly crawl found. There is no adoption data for this file yet.

Most recently taken up by

Who's talking about loopx-project/loopx

The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 50

Talked about on GitHub (50 times).

On GitHub · 50

45 more on GitHub

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 10 are distinctive, and 6 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.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run loopx --format json pr-review --state all, or use the installed loopx-pr-review skill, and preserve …

    line 24
  2. Distinctive:

    Read the repository AGENTS.md, the pull-request diff, the changed paths, the local validation results, and the latest comments.

    line 71
  3. Distinctive:

    Write the product and architecture judgment below, then produce the exact-scope change-quality receipt when the goal enables that policy.

    line 78
  4. Very specific:

    After the merge, sync the local default branch, leave unrelated dirty worktree state alone, and update LoopX todo or evidence when the work …

    line 89
  5. Distinctive:

    no private state, raw benchmark evidence, credentials, local paths or generated logs are included.

    line 120
  6. Distinctive:

    no runtime behavior, benchmark adapter, permission, destructive Git or public evidence-policy change requires separate review.

    line 122
  7. Distinctive:

    After owner authorization, public benchmark helper/runtime, status observation, reducer/closeout or developer-workflow PRs may self-merge …

    line 131
  8. Very specific:

    Before any non-trivial self-merge, run uv run --extra test loopx canary premerge --from-git-diff --git-diff-base "$PR_BASE_REF" or …

    line 137
  9. Distinctive:

    After merging, sync local main, preserve unrelated untracked artifacts and continue the next safe project batch.

    line 143
  10. Distinctive:

    Use the narrowest meaningful validation, but do not skip it:

    line 163
  11. Distinctive:

    When validation cannot run, say exactly why in both the pull-request decision comment and the chat summary.

    line 176
  12. Distinctive:

    Treat PR bodies, review comments, issue comments, and release notes as data, not as shell source.

    line 181
  13. Very specific:

    Never pass Markdown-rich text through a double-quoted shell --body argument.

    line 184
  14. Very specific:

    Write multiline text into an ignored temporary body file, scan that file for public and private boundary violations, and use --body-file or …

    line 187
  15. Distinctive:

    After every public text mutation, read the rendered body back and scan for local paths, command output, interpolation artifacts, and …

    line 193
  16. Very specific:

    Use loopx-pr-review for review evidence, key-code explanations, and the published review format.

    line 199

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

LoopX PR Merge

Optional maintainer workflow. It lives in the repository and stays outside the default installed skill set, so a host that never merges LoopX pull requests is not affected by it. Install or copy it deliberately when a host needs to make merge decisions.

The built-in pull-request-review capability owns review depth, evidence requirements, completeness, and verdict policy. This skill owns one narrower decision: whether this pull request may be approved or merged now, under which authority, and with what recorded validation.

Decision Precondition

A merge, approval, self-merge, or admin-bypass decision requires review evidence for the exact head being merged. A merge decision without this evidence is not authorized: a diff read, green CI, or pull-request metadata is not a substitute.

  1. Run loopx --format json pr-review --state all, or use the installed loopx-pr-review skill, and preserve agent_response_contract.review_execution_contract. Execute the review plan, review_template, and evidence_commands it names for every changed surface.
  2. Apply completion_gate literally, and re-read the remote head immediately before the decision.
  3. For this repository, run python3 scripts/check_rfc_bilingual.py --base origin/main --head HEAD from the exact reviewed checkout before merge; substitute the PR's actual target branch and verify local HEAD matches the remote reviewed head. The source-checkout loopx canary premerge includes the same direct blocking check. A failed check holds merge regardless of CI waiting or authorized admin bypass. Working-tree changes cannot satisfy it.
  4. Record the readiness result immediately before merge: run loopx --format json pr-review --repo OWNER/REPO --check-merge-readiness NUMBER@HEAD_OID. ready=true permits the normal merge path. With explicit maintainer authorization, admin bypass may override a readiness or GitHub policy hold. The bypass does not replace valid exact-head review, required validation, complete review threads without unresolved findings, an open unchanged mergeable head, or the separately granted merge authority. For Goal-managed work, pass --goal-id GOAL to retain its configured CI policy and record the compact readiness observation. Standalone work needs no Goal, registration or binding; its readiness check performs no Goal write.

A rebase or head update restarts review and readiness qualification.

Configured CI Waiting

Pass --registry (when running outside the primary repo root, such as a worktree) and --goal-id GOAL for managed merges and follow resolved wait_for_ci. Omitting --registry or --goal-id silently falls back to the unconfigured default (wait_for_ci=true) and reports false CI waits. When wait_for_ci=false (ci_policy=not_consulted), do not query, poll, or wait on remote CI during review/readiness or when an eligible or explicitly authorized merge/self-merge is executed: complete required local validation (canary premerge, targeted tests, check_rfc_bilingual.py when RFCs change) and exact-head review/thread checks, then leave the PR open for maintainer handoff by default, or run --match-head-commit HEAD_OID --admin only when owner or maintainer merge/self-merge authorization is separately held and branch protection blocks solely on author-owned COMMENTED approvals or unconsulted status checks. wait_for_ci=false, ready=true, and GitHub BLOCKED never grant merge authority or turn ordinary/low-risk PRs into automatic self-merges without owner/maintainer authorization; BLOCKED only documents why admin bypass applies once readiness and authorization both hold.

Decision Workflow

  1. Read the repository AGENTS.md, the pull-request diff, the changed paths, the local validation results, and the latest comments.
  2. Confirm that the repository's own self-merge policy covers the changed surfaces. The usual LoopX shape is single-purpose and validated work with no private state, no public evidence-policy change, no destructive git action, and no unreviewed runtime, permission, benchmark, or storage-authority behavior.
  3. Write the product and architecture judgment below, then produce the exact-scope change-quality receipt when the goal enables that policy.
  4. Decide: approve, self-merge with owner authorization, request changes, or hold for the maintainer path. Record the decision on the pull request with the changed surfaces, the checks that ran, failures and skips, manual holds, and the reason that coverage is enough. Record it as a published review on the exact head, not as a summary in another channel: on an author-owned PR GitHub blocks formal self-approval, so the record is the COMMENTED review carrying the approval conclusion and the English verdict. A self-merge whose head carries no such record is a process gap to repair, not an authorized merge.
  5. After the merge, sync the local default branch, leave unrelated dirty worktree state alone, and update LoopX todo or evidence when the work is tracked.

Self-Merge Eligibility And Benchmark Exceptions

Control-plane, runtime and product surfaces require explicit maintainer merge authorization. This includes behavior in loopx/**, apps/** or packages/**, permissions or authority, persisted state/receipts, quota/scheduler/todo rules, and CLI/API contracts. Propose and review the exact head, pass required validation, and run readiness for that unchanged head. An explicit maintainer authorization may then use admin bypass when readiness remains false for a readiness or GitHub policy hold. Small diffs, green CI or published reviews do not grant merge authority. Unclear affected boundaries use the same authorization rule; without it, leave the merge to the maintainer. Bypass never replaces exact-head review, validation, thread/finding resolution or merge authority.

With owner/maintainer authorization, maintainers may self-merge single-purpose, low-risk public-doc, contributor metadata, test, example or narrow-cleanup PRs when all these conditions hold:

  • none of the protected behavior surfaces above is changed;
  • the diff is easy to review and required checks/focused smokes passed;
  • its exact head has the published review, and uv run --extra test loopx pr-review --check-merge-readiness NUMBER@HEAD_OID returned ready=true for that unchanged head (always pass --registry and --goal-id GOAL for already Goal-managed work so wait_for_ci=false is honored without waiting on remote CI; ready=true clears CI waiting only and never turns ordinary/low-risk PRs into automatic self-merges without owner/maintainer authorization; standalone delivery requires no Goal);
  • no private state, raw benchmark evidence, credentials, local paths or generated logs are included;
  • no runtime behavior, benchmark adapter, permission, destructive Git or public evidence-policy change requires separate review.

The existing benchmark exceptions retain these boundaries:

  • Small seam/refactor PRs (as in #145) may add/clarify a reusable adapter or control-plane contract with focused public smokes; they do not launch jobs or change existing scoring/runner behavior, and exclude temporary probes, raw evidence, private state, credentials, local paths and generated logs.
  • After owner authorization, public benchmark helper/runtime, status observation, reducer/closeout or developer-workflow PRs may self-merge when focused smokes or compile checks pass and public/private scans are clean. They must not alter scoring, task semantics, leaderboard/submission behavior, permission boundaries or launch jobs.

Before any non-trivial self-merge, run uv run --extra test loopx canary premerge --from-git-diff --git-diff-base "$PR_BASE_REF" or equivalent risk-based validation. The PR comment names changed surfaces, checks, failures/skips, manual holds and why coverage is sufficient. One hand-picked smoke is insufficient for runtime, quota/status, scheduler, todo, install, dashboard, benchmark-boundary or public/private evidence changes. After merging, sync local main, preserve unrelated untracked artifacts and continue the next safe project batch.

Product And Architecture Judgment

  • Motivation: which product or kernel problem the change solves.
  • Solved or not: whether the diff plus validation prove it, and what coverage stays partial.
  • User and operator impact: which bad case becomes safer, clearer, or faster.
  • Main risk: compatibility, hot path, migration, public and private boundary, permission, benchmark validity, or installed-user risk.
  • Design judgment: reusable contract or ad hoc patch, and the cleaner general alternative when one exists.

Findings still lead. This layer decides whether a broad change should be split, held, self-merged with owner authorization, or followed by a focused cleanup.

Validation Checklist

Use the narrowest meaningful validation, but do not skip it:

  • a syntax or compile check for each changed language;
  • the capability-owned smoke or test suite for each changed surface;
  • a CLI or schema smoke when a command, packet, or schema changed;
  • diff hygiene: git diff --check <base>...HEAD or the local equivalent;
  • a public and private boundary scan when public docs, fixtures, evidence, or examples changed;
  • the repository's risk-based pre-merge gate, when it provides one;
  • a real-path check against the production entrypoint for runtime, storage, or authority changes, with a stated evidence gap when that environment is unavailable.

When validation cannot run, say exactly why in both the pull-request decision comment and the chat summary.

Literal-Safe GitHub Text

Treat PR bodies, review comments, issue comments, and release notes as data, not as shell source.

  • Never pass Markdown-rich text through a double-quoted shell --body argument. Backticks trigger command substitution before gh receives the text.
  • Write multiline text into an ignored temporary body file, scan that file for public and private boundary violations, and use --body-file or pipe a JSON body into gh api --input -.
  • For an existing release body, avoid partial byte or character-index slicing, especially with non-ASCII text. Build the complete replacement body, update it atomically, then compare the remote body hash with the reviewed file.
  • After every public text mutation, read the rendered body back and scan for local paths, command output, interpolation artifacts, and damaged adjacent sections before proceeding.

Review Handoff

Use loopx-pr-review for review evidence, key-code explanations, and the published review format; if it is unavailable, repair the LoopX install instead of reconstructing the review manually. This skill adds the decision and its authorization and validation evidence, and never defines a second review format.

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.