External contribution gate

Safe first.
Then merged.

gh-safe-merge accepts a pull request nobody on your side owns, typically an outside contribution. It checks that the change is safe and does what it says, then drives it through CI to a merge. It is not a code review.

01Safety check,
before anything runs
02Mark it ready,
CI to green
03Finish
superficially
04Run CI to
completion
05Merge, unless
told not to

Not a review

No nits. No gatekeeping.

Style, structure, naming, and taste are ignored. It never requests changes, never submits a review, and never leaves review-style comments. If the code is safe, works, and does what the pull request says, it is accepted. Acceptance is the default.

It finishes a pull request rather than rewriting it. The only changes it makes are superficial: resolving merge conflicts, formatting, auto-fixable linter passes, a changelog entry, and README or docs updates the change plainly requires. Anything more substantive goes back to the author.

◉Pull requests · from a fork•••
Merged

Add a retry to the upload step

first-time contributor · checks passed

gh-safe-mergeSafety check passed. Held workflow runs approved, changelog entry added, CI green, squash-merged.

Unsafe until cleared

The safety check gates everything.

Running untrusted code is the risk itself, so nothing from the pull request is built, tested, installed, or run until the check passes. CI is never unblocked before it. The check reads the description, the full diff, and every commit for:

Intent

The code does what the pull request says and nothing beyond it. No unrelated behavior rides along.

Security

No new injection, exfiltration, privilege, or unsafe-default surface.

Malicious behavior and backdoors

No hidden functionality, covert network calls, credential harvesting, obfuscated payloads, or unexplained binary blobs.

Supply chain

New dependencies are legitimate, spelled correctly, and pinned. Install scripts, build hooks, and CI workflow changes get extra scrutiny, above all anything that reads secrets or widens permissions.

Licensing

No code or asset under an incompatible license, and no unattributed copied code presented as original.

General properness

The contribution is what it claims to be, not spam, vandalism, or nonsense dressed up as a change.

If the author pushes new commits mid-run, the check runs again on them before anything else happens.

Three outcomes

Merged, handed back, or closed.

Safe and workingCI green, merged with no comment. The merge is the acceptance.
Merely incorrectOne comment mentioning the author says what is wrong. Not merged, not closed.
MaliciousClosed at once with a comment mentioning the author. Its code never runs.
Incorrect is not malicious

Behavior that contradicts the description, a substantive problem, or tests failing on the pull request’s own code goes back to the author. Closing is reserved for bad faith.

Holds are honored

A do-not-merge label, hold wording in the thread, or and do not merge stops it short of the merge, with one comment saying it cleared the check and CI and naming the hold.

Drafts are finished, not held

A draft that clears the safety check is marked ready for review and carried on to the merge. One that fails the check stays a draft.

Install separately

Say yes to contributors without saying yes to everything.

skills.sh

Install for your selected agents in one command.

npx --yes skills add lsegal/glorp@gh-safe-merge --global --agent codex --agent claude-code --agent gemini-cli --agent opencode --agent cline --agent universal -y

GitHub CLI

Install the bundled skill directly for your agent.

gh skill install lsegal/glorp gh-safe-merge --allow-hidden-dirs --agent codex --agent claude-code --scope user

Run it/gh-safe-merge owner/repo#123