Review a fork PR, review an external contributor PR, check provenance (DCO) and ee/ CLA, run /test, carry a fork commit into a same-repo branch, is this PR safe to merge. Checklist for pull requests from forks before a human approves or merges them.
94%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Use for every PR whose head is not in different-ai/openwork
(isCrossRepository: true). As at GitLab, contributing
means accepting the DCO, or the Individual or Corporate CLA for ee/
(CONTRIBUTING.md). There is no Signed-off-by requirement, no CLA signature
and no label to enforce.
The contributor flow is fork-only, including fork bots. Same-repository
PRs use normal CI and review, with no contributor merge status or /test.
The merge safeguards are the required openwork-tests-required check plus
trusted maintainer review. The fork screen status is advisory.
Everything below runs from dev and never executes PR code:
contributor-pr.yml (pull_request_target, every fork push): runs the
free screen and blocks CI or agent configuration changes. A maintainer
carries those changes to a same-repository branch instead.contributor-screen.yml,
no model, no secrets) sets contributor-pr/screen and keeps one PR
comment. Nothing that costs money runs before your /test:
/test refuses.ee/packages/den-db/**, *.sql, migration jobs), binaries,
encoded or obfuscated-looking lines, text aimed at an AI reviewer (in
the diff or commit messages; treat any AI review of that commit as
unreliable). Read each listed item yourself before /test./test./test (binds the head as it was
when you commented) or /test <sha>. contributor-pr-test.yml checks you
have write access, the head hasn't moved, and the screen isn't blocked,
then approves only this PR's waiting test runs on the reviewed SHA. Check
openwork-tests-required (quick-check.yml, no secrets) succeeds before
approving the PR; no combined contributor status is posted.
/test.Repository Actions settings must require approval for all outside
collaborators, not only first-time contributors. Never approve fork runs
manually as a shortcut around /test. Required CI, CODEOWNERS and approval
of the latest push remain enabled. This checklist is the human merge gate.
See deployment and security caveats.
Fork diffs with 300 or more changed files need a maintainer carry (GitHub's
immutable comparison file list is capped).
Every item must be answered explicitly in the review comment. Blocked on any
item means no approval and no merge.
export R=different-ai/openwork N=<pr-number>
gh pr view $N -R $R --json isCrossRepository,headRepositoryOwner,headRepository,headRefOid,labels,files,author \
--jq '{fork: .isCrossRepository, head: "\(.headRepositoryOwner.login)/\(.headRepository.name)@\(.headRefOid[:10])", author: .author.login, labels: [.labels[].name], ee: [.files[].path | select(startswith("ee/"))]}'The DCO (outside ee/) or the CLA (ee/) applies by contributing; nothing
needs a signature or a Signed-off-by line. What a reviewer checks is that
the contribution is plausibly the contributor's to license:
ee/; outside ee/, ask them to confirm they may
contribute it.Anything doubtful -> Blocked until the source and license are clear.
CONTRIBUTING.md (first section, same model as GitLab): contributing to ee/
means the contributor is deemed to accept the Individual or Corporate CLA in
legal/. There is no signature to collect and no label to apply. Renames out
of ee/ count as ee/ changes.
gh pr view $N -R $R --json files --jq '[.files[].path | select(startswith("ee/"))]'ee/ files changed -> note it in the review comment so the record shows
the CLA applied. Not a blocker on its own.legal/corporate-contributor-license-agreement.md) in the
review so they can confirm they are authorized.This repo is public (AGENTS.md Confidentiality). Read the diff for both:
HEAD=$(gh pr view $N -R $R --json headRefOid --jq .headRefOid)
gh api "repos/$R/commits/$HEAD/status" --jq '.statuses[] | select(.context | startswith("contributor-pr")) | "\(.context) \(.state) \(.description)"'.github/, .opencode/, .agents/skills/, or
.claude/skills/ is review machinery; a human security review is the gate.Not the summary, not the files list, not the CI result.
gh pr diff $N -R $R | wc -l
gh pr diff $N -R $RRecord in the review comment: the head SHA you read, which files you read in full, and anything you skimmed (generated files, lockfiles, fixtures). If you skimmed anything that executes, you did not review it.
Grep the diff, then ask the PR to justify every hit or remove it:
gh pr diff $N -R $R | grep -n -E '^\+.*(ipcMain|ipcRenderer|contextBridge|exposeInMainWorld|webContents\.send|handle\(|fetch\(|http\.|https\.|net\.|WebSocket|child_process|spawn\(|exec\(|shell\.openExternal|eval\(|new Function)' | head -50
gh pr diff $N -R $R | awk '/^diff --git/ { pkg = /package\.json/ } pkg && /^\+ +"/' # added package.json lines
gh pr diff $N -R $R --name-only | grep -E 'pnpm-lock\.yaml|^\.github/|opencode\.json|^\.opencode/'pnpm-lock.yaml, no postinstall
scripts, maintained upstream, and not duplicating something already in the
workspace (native deps must stay converged on one major, see #3561).opencode.json, or .opencode/ changes from a fork: treat as
review machinery; a maintainer reproduces the change on a same-repo branch
rather than merging the fork's copy.Do this when a fork changes CI or agent configuration (the gate refuses those), when the fork branch is stale and the contributor is unresponsive, or when the change must be split. Preserve authorship.
git fetch origin dev "pull/$N/head:contributor/pr-$N" # GitHub exposes the fork head as refs/pull/N/head
git worktree add /tmp/ow-carry-$N -b carry/pr-$N origin/dev
cd /tmp/ow-carry-$N
git log --oneline origin/dev..contributor/pr-$N # the commits to carry, oldest last
git cherry-pick -x origin/dev..contributor/pr-$N # keeps Author: as the contributor, adds "(cherry picked from commit ...)"
git log origin/dev.. --format='%h %an <%ae> %s' # the contributor must still be the author
git push -u origin carry/pr-$N
gh pr create -R $R --base dev --head carry/pr-$N --title "<original title>" \
--body "Carries #$N by @<contributor> onto a same-repo branch so CI can run with trusted configuration. Original commits: <shas>."Rules:
git cherry-pick preserves Author:; the committer becomes you. That is
correct and expected. Do not rewrite the author to yourself.Co-authored-by: Name <email> for the contributor
so the credit trail survives.Post one comment on the PR with the seven items above, each marked OK,
Blocked (why), or N/A (why), plus the head SHA the review binds to. If
the head changes after the comment, the review is stale; rerun sections 1,
3, 4, and 5 before approving.
If the pre-test review is clear, authorize tests on the commit you actually
read (HEAD recorded in section 3), not a fresh lookup of a possibly newer
head. Only approve the PR after required CI is clear:
gh pr comment $N -R $R --body "/test $HEAD"Naming the SHA you read is the strict form; a plain /test comment binds the
head as it was when you commented. The workflow replies on the PR if it
refuses (no write access, head moved, CI or agent configuration changed,
screen blocked or not finished).
different-ai/openwork
5631a77
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.