/workloom:mergefrom workloom
Merge one GitHub PR with Simple approvals (explicit session consent and native gates) or Advanced approvals (also enforce the trusted base Markdown/YAML policy pair). No policy setup or GitHub self-approval is required for Simple approvals; present policy remains binding. Use for "merge this PR", "merge", or an explicitly authorized ship --merge tick. Exact-head normal merge or required native queue; no admin bypass, invented confidence percentage, self-approval or rule changes.
Ships in workloom. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One bounded closure pass, not another review/repair pipeline. A standalone merge
request authorizes this exact PR's normal merge/required queue submission when the
gate passes; evaluate/plan-only posts nothing. Scheduled use requires ship's
recorded explicit merge authority (--merge or an exact-PR merge choice at
handoff) and the watch contract.
Plain ship, review, approval and APPROVALS.md alone grant no merge authority.
gh identity. Verify open,
non-draft state, head repository/ref/SHA, actual base/SHA and merge access.
Never switch accounts, ready a draft, approve, repair code or change rules.APPROVALS.md and
APPROVALS.yml (.yaml only when .yml is absent) from the actual base
commit. Pin present blobs and verified absence with source references.
Inspect effective branch protection/rulesets and complete current reviews/
checks. Reuse evidence; do not invoke approve to manufacture a missing review.
Use the checked native-rule capability reader
to distinguish a verified private-plan inspection limitation from an access
error. Where permitted by present policy, or the explicit-authority fallback,
retain all other gates and normal expected-head-bound GitHub enforcement.
Never infer absent rules from a capability limitation, skip available reads,
or turn other denials into permission.--approval off never removes native/policy approval requirements.
For a required queue, satisfy all PR-side admission prerequisites; merge-
group checks/order/fresh-base enforcement run natively after admission. Don't
require a not-yet-created merge-group check to exist before enqueuing or claim
admission proves those final checks passed. A stricter policy still applies.Support two approval models without forcing policy setup:
APPROVE review
is required merely to use this mode.An exact-PR merge request, including recorded ship --merge authority, supplies
merge authority in either model; do not ask again solely because policy files
are absent or the authenticated author cannot self-approve.
Ship's conditional consent supplies
the caller's policy-permitted sign-off from the same --merge request once
current review/tests/proof pass; do not demand another human reply for it.
Require its actor/access, exact candidate, policy and evidence bindings.
Ship invokes pr for due conditional readying; this merge owner still never
readies a draft itself. A separate actor, native review or hard manual policy
condition remains a real blocker, not a reason to reconfirm the caller's consent.
Record session
consent as such, never as a native GitHub approving review. Do not switch accounts,
post a fake approval, or force the user to create policy files for a personal repo.
| Verified actual-base state | Merge gate |
|---|---|
| Markdown and sidecar present | Advanced approvals: honor Markdown merge conditions and require the complete current sidecar result policySatisfied=true. |
| Markdown only | Simple session consent plus its explicit merge conditions; a missing sidecar alone is not a blocker unless the Markdown expressly requires it. |
| Sidecar only | Simple session consent plus its complete current rules and policySatisfied=true; do not invent Markdown requirements. |
| Neither present | Simple approvals: session consent, current risk/review/validation evidence and native requirements; no policy files or evaluator needed. |
| Present policy is invalid, ambiguous, unreadable, unsupported, observing, or its required evidence is incomplete/expired | Block the affected gate; this is not absence and the fallback cannot bypass it. |
Use the deterministic contract for every
present sidecar. A comments verdict can permit merge with actual required
approvals; it never permits an automated approving review. Honor any applicable
nested policy; an unsupported hierarchy is not a no-policy repository.
Establish absence through a successful read of the exact base tree or a confirmed missing path after verifying repository/ref access. A denied read, ambiguous 404, empty malformed response or missing head copy proves nothing. Do not use a PR's deletion/change of policy to evade the existing base policy. Record authority, exact candidate, present policy blobs or absent paths, risk, evidence, native prerequisites and selected merge method. Recheck before writing; a changed candidate or newly added/removed/changed base policy needs affected reassessment, and changed policy requires explicit owner renewal.
Without policy-defined risk thresholds, do not impose the bundled example or
invent mandatory sign-offs. Material unknowns or consequential unresolved
findings still block. User merge consent never substitutes for native independent
approvals, required checks, discussion resolution, freshness, mergeability or
queue admission. Missing policy may block approve while merge is eligible;
do not require this account's approval when GitHub does not require it.
Prefer the user's or present policy's merge method. With neither, use squash when enabled, otherwise the sole enabled method; ask only if the remaining choice is ambiguous. A required native queue always takes precedence.
Re-read active authority, identity, head/base, policy presence/blobs, effective rules, checks/reviews/discussion and mergeability immediately before the write. A changed input returns to its affected gate. Select a repository-enabled merge method permitted by present policy or the Simple-mode rule above; ambiguity is a blocker. Normal enforcement remains in place.
gh api --method PUT on
repos/<owner>/<repo>/pulls/<number>/merge, with JSON passed as data containing
the verified sha and permitted merge_method (merge, squash or
rebase). The expected head is mandatory, not a best-effort preflight. A rejected
head/rule/check condition returns pending/blocked; never retry unguarded.enqueuePullRequest operation
through gh api graphql, with this PR's node ID and expectedHeadOid.
Verify support on this GitHub host; no head-bound enqueue means blocked, not
an unguarded fallback. Never jump the queue or bypass it with a direct/admin
merge. Record the verified queue entry, candidate SHA and policy/evidence.--admin, alter protection, dismiss reviews, change identities,
enable auto-merge or delete the branch/worktree. In particular, gh pr merge
can enable auto-merge on a queue branch when checks are pending; don't use it
as an unverified substitute for the explicit guarded APIs above. Existing
external auto-merge/queue intent needs reconciliation, not adoption as this
run's successful submission or a conflicting duplicate write.The expected head does not pin the base, policy or check state. Use native freshness/queue enforcement for requirements that must hold atomically; if a mandatory invariant cannot be enforced by the chosen operation/rules, block instead of claiming the head guard guarantees it. Queue admission authorizes the native queue's eventual merge under its checks, not a future agent bypass.
On timeout/uncertain delivery, read PR/queue state before retrying. Direct success
needs merged=true plus verified MERGED state, intended head and merge commit
URL/SHA. Queue acceptance is queued, never merged: verify the native entry
and preserve observation under the watch contract. A native rejection or ejection
returns pending/blocked; changed candidates require fresh review/risk evidence.
For queued ship work, suspend candidate-mutating repair; new blockers need the
normal withdrawal of this run's owned queue entry before repair/re-gating.
--merge authorizes that withdrawal on stop/expiry/new blockers, not removing
someone else's entry. Cancel owned schedules after verified merge; preserve the
worktree/branch for follow-ups. Return merged, queued, pending or
blocked, policy/risk/confidence verdict, exact candidate and verified outcome
reference. No live test merges or queue submissions to validate this skill.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sebastienlevert/workloom --plugin workloom26 skills in this plugin
/addressAddress review feedback and merge conflicts on an existing PR end to end in any project. Use for "/address", "address PR feedback", "fix review comments", or "resolve PR conflicts". For authorized feedback fixes, assess the concern, ship validated code to the same PR branch, reply with commit/test evidence, then resolve only fully addressed review threads. Preserve unrelated work and PR state; never merge the PR. Optional --watch repeats the scoped operation after 1h, 2h, 4h, 12h, then daily until stopped. Plan-only and conflict-only requests remain scoped.
/approveSubmit an eligible GitHub PR approval only under the target repository's trusted root APPROVALS.md plus deterministic APPROVALS.yml and actual branch rules, with a current evidence-backed code review and exact-commit publication. Use for "approve this PR" or ship's approval tick. Missing/ambiguous policy, draft, stale/red checks or ineligible identity remain pending/blocked. Never self-approve, switch accounts, merge, or bypass rules.
/factoryOrchestrate existing development skills from issue triage/selection through implementation, review, feedback repair and PR readiness. Modes draft, ready and merge control final authority; draft is default. Invoke the owning skills rather than duplicating their logic. Explicit merge mode requires current, evidence-backed high confidence and normal repository checks/reviews; never self-approve, bypass protection or run an unbounded queue.