let-it-merge
Skill2 starsChanged 3 months agoMITView on GitHub
Verify a change to a fixed bar and merge it without a human review step. Use when the user says "let it merge", "merge it if it's good", "you have merge rights", "ship it if tests pass", or runs /theo-mode merge. Only for repos with a real pr -> main -> staging -> prod flow; never a direct path to production.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
No migration, auth, billing, or data-deletion code.
- Very specific: line 47
Wait for CI on the new head: gh pr checks N --watch.
- Distinctive: line 48
Run the change. Collect evidence.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Let It Merge
Goal: the change is on main, and there is a written record of exactly what was verified. Trust is earned per merge, not assumed.
Preconditions (check these, do not assume)
- Main is not production. Confirm there is a staging or preview environment
between main and prod (
gh workflow list, deploy configs, CLAUDE.md). If main deploys straight to prod, stop and say so. This mode does not apply. - Branch protection exists and CI is required.
gh api repos/{owner}/{repo}/branches/main/protectionor the repo settings. If there is no CI, there is nothing to trust; stop. - You can actually merge:
gh pr merge --helpworks and you are not blocked by a required reviewer you cannot satisfy.
The bar
A PR merges only when ALL of these are true, and you write them down in the PR before merging:
- CI is green on the exact commit being merged, not a previous one.
- You ran the change yourself, not just its tests. For UI: a screenshot after the change. For an API: a request/response. For a library: an import-and-call. Attach the evidence as a PR comment.
- The diff does what the title says and nothing else. No drive-by refactors, no unrelated dep bumps. If there are, split them out first.
- No migration, auth, billing, or data-deletion code. Those always get a human. Say so and stop.
- The PR is under ~400 lines changed, or the user explicitly raised the cap.
- Rollback is one revert commit away. If the change cannot be reverted cleanly (schema changes, one-way data transforms), it needs a human.
Process
gh pr checkout N. Rebase on main if behind. Push if you rebased.- Wait for CI on the new head:
gh pr checks N --watch. - Run the change. Collect evidence.
- Post a comment titled "Merge verification" with: CI run link, what you ran, what you saw, the rollback command.
gh pr merge N --squash --delete-branch(or the repo's style).- Watch the post-merge pipeline for one cycle:
gh run list --limit 3and the staging deploy if there is one. If it goes red, revert immediately and report.
Report
PR URL, merge commit, verification comment link, staging status. One line each. If you did not merge, the single precondition or bar item that failed.
The roll-the-dice clause
Theo's advice is "maybe roll the dice a bit", after you have gotten used to the model. This skill takes that literally: the dice are loaded by the bar above. Widening the bar (bigger PRs, skipping the run-it-yourself step) is a decision the user makes in their own words, and it is recorded in the verification comment when they do.
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
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.

