merge
Skill6 starsChanged 5 months agoMITView on GitHub
The ship gate — the only skill that merges. `--staging` merges the feature→staging PR on green CI, deploys, verifies, emits a human test script and stamps the staging sign-off on approval. `--production` ships the double-confirmed release to `main` and deploys production. Never self-certifies staging; nothing reaches `main` any other way. Activates on /merge after pre-merge's PR exists.
26 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/vscodetheir own version, first seen Nov 12, 2026
- ryanportfolio/Harness-Firmwaretheir own version, first seen Oct 3, 2026
- ryanportfolio/Corewise.Academytheir own version, first seen Oct 3, 2026
- jantichy/claudetheir own version, first seen Oct 2, 2026
- envisioning/skillstheir own version, first seen Sep 22, 2026
- KUNDURUHIMANEESHREDDY/sabertheir own version, first seen Sep 21, 2026
Used with
Projects with it also use refine, fix and 7 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
vltingSkillrefine
Iterative refinement loop for modules/components. Research best practices, council-deliberate a spec, collect issues, implement in worktree, review — one target at a time, approval-gated. Auto mode for fully autonomous operation.
Also in 4 projects that use this
Google CloudSkillfix
Plan a remediation strategy after a test failure.
Also in 3 projects that use this
MicrosoftSkillreport
Turn an exploration (threads, findings, charts) into a single Markdown report — note, blog post, executive summary, KPI dashboard, slide brief, or multi-section analytical report, with embedded charts.
Also in 3 projects that use this
Microsoft AzureSkilltest
Also in 3 projects that use this
SentrySkillreview
Fixture review skill.
Also in 5 projects that use this
OpenAISkillaudit
Audit or critique a product flow, journey, workflow, funnel, onboarding path, checkout path, settings path, screen, or multi-step product experience by capturing screenshots first, then reporting UX, design, and accessibility findings inline from that evidence. Use Figma only when the user explicitly asks for a board. Use when the user asks to audit, review, critique, inspect, assess, analyze, evaluate, or give feedback on a product experience.
Also in 3 projects that use this
Other versions26 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 26
- microsoft/vscode★ 196ksame name
- ToolJet/ToolJet★ 41ksame name
- K9i-0/ccpocket★ 1.1ksame name
- automagik-dev/genie★ 345same name
- metedata/Remarc★ 73same name
- toy-crane/claude-code-playbook-template★ 73same name
- jantichy/claude★ 38same name
- Hassaan146/claude-skills★ 18same name
- AndreAlbuquerque/claude-config★ 17same name
- phanghonghao/THU-Awesome-Skills★ 8same name
16 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 0 are distinctive, and 9 are very specific to this project.
0
Common
Most of the 23 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 52
Does NOT modify source code — the canonical, complete write list is refs/sanctioned-writes.md.
- Very specific: line 54
Does NOT merge on red or pending CI.
- Very specific: line 55
Does NOT run --production without staging-green and a staging-signoff: stamp whose pinned sha still covers staging's tip — later commits …
- Very specific: line 56
Does NOT open or merge a staging→main PR without BOTH double-confirmation approvals.
- Very specific: line 57
Does NOT run a second --production while one is in flight — the release lock refuses release_in_flight naming the holder.
- Very specific: line 58
Does NOT run when the branch is unprotected and branch_protection resolves enforced.
- Very specific: line 59
Does NOT run --staging into a staging environment recorded unready when staging_readiness resolves enforced.
- Very specific: line 60
Does NOT report a deploy as shipped without running the platform's smoke_cmd against the deployed target (unconfigured → recorded as …
- Very specific: line 65
Before Step 1 in either mode, resolve the policy once, by script — it emits the full key set (release_flow, branch_protection, …
“Common” is measured: kept by at least 6 in 10 of the 23 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
merge
The ship gate. Runs after /pre-merge opened a feature→staging PR and takes it the
rest of the way: onto staging (tested by a human), then onto main (production,
double-confirmed). It is the only skill in the harness that merges — eng commits to
feature branches, pre-merge opens PRs. Nothing reaches main any other way.
pre-merge (PR feature→staging) → merge --staging → (human tests staging) → merge --production → (double-confirm) → PR staging→main → main (live)Usage
/merge --staging [--prd <path>]— merge the feature→staging PR on green CI, deploy + verify staging, emit a human test script, stamp the sign-off on approval (refs/staging.md);--prdnames the shipped PRD explicitly (else resolved from the PR head branchfeat/prd-<n>-*)/merge --production [--prd <path>]...— the double-confirmed release: PR toprod, merge, deploy, verify, tag (refs/production.md);--prd(repeatable) names the PRD(s) this release ships — the release body + the sign-off precondition/merge --production [--bump <major|minor|patch>] [--version <x.y.z>]— override the release version (default: minor bump from the lastv*tag on prod); the resolvedv<x.y.z>+<build>is shown in the confirm (refs/release-identity.md)/merge --init— detect ship tooling, interview about the gaps, writedevkit/policy.json; performs no merge, PR, or deploy (refs/protocol-init.md)/merge --quiet/--status <n>m— suppress or retune this run's status heartbeat; flag beats policy beats default (../shared/refs/status-heartbeat.md)
Natural language: "ship this to staging", "merge the staging PR", "promote to production", "release to production", "ship it live".
Posture
Release manager on a small product team. Owns the two irreversible-ish moments — the
staging merge and the production release. Compact and checklist-driven. Ship gates
never collapse: the green-CI check, the human test, and the production
double-confirmation run in every invocation. Under release_flow=direct the staging
stage is inactive — not waived; its human judgment moves to the inline human-test
approval, before the merge (../shared/refs/policy-schema-merge.md §1b).
Hard refusals
Shapes and JSON in refs/refusal-patterns.md. Merge:
- Does NOT modify source code — the canonical, complete write list is
refs/sanctioned-writes.md. - Does NOT merge on red or pending CI. An empty check set under
github_actions.enabled:falseis inactive by the user's decision — accepted with one report line (../shared/refs/policy-schema.md§2b); checks that do report are graded as always. - Does NOT run
--productionwithout staging-green and astaging-signoff:stamp whose pinned sha still coversstaging's tip — later commits refuse (stale_signoff), never ride along uncertified. - Does NOT open or merge a
staging→mainPR without BOTH double-confirmation approvals. - Does NOT run a second
--productionwhile one is in flight — the release lock refusesrelease_in_flightnaming the holder; a--stagingmerge during an in-flight production ship refuses the same way (refs/production.md,../shared/refs/policy-schema-merge.md§6). - Does NOT run when the branch is unprotected and
branch_protectionresolvesenforced;optionalwarns + proceeds,skipdoesn't verify;NO_GH/NO_REMOTErefuse regardless (../shared/refs/policy-schema-merge.md§2). - Does NOT run
--staginginto a staging environment recorded unready whenstaging_readinessresolvesenforced;optionalwarns,skipdoesn't guard, a missing record only warns (../shared/refs/policy-schema-merge.md§5). - Does NOT report a deploy as shipped without running the platform's
smoke_cmdagainst the deployed target (unconfigured → recorded as skipped with a note,refs/verify-deploy.md). - A failed ship is not a refusal — the merge already happened; merge writes the issues file and enters
refs/failed-ship.mdrather than dead-ending.
Pre-flight: policy file + init lifecycle (both modes)
Before Step 1 in either mode, resolve the policy once, by script — it emits the
full key set (release_flow, branch_protection, staging_readiness, steps.*,
github_actions) plus WARN= lines; no step re-reads the file. Fail-safe: no file /
malformed → built-in defaults with POLICY_STATE, exit 0 — a policy read never refuses
a run. Then check the init gate (../shared/refs/policy-schema.md §0):
S=.claude/scripts/script-policy-read.py; python3 "$S" # devkit/policy.jsonpolicy init state | action |
| file absent | built-in defaults + one-line nudge to run /msg --init or /merge --init; no auto-init — proceed |
init: false | auto-run --init inline first; user aborts --init → stop, run no protocol step |
init: true | proceed to Step 1 directly |
Modes
Each mode's steps, order, refusals and phase seams live in its own ref. Load it and run
it. Mechanical phases run in subagents; every human gate stays main-thread, wording
unchanged (../shared/refs/gate-dispatch.md; seams: each ref's Phase markers); --init
stays inline. Both ship modes end with the run report (skill: merge), the terminal
Issue summary block, the closing message (../shared/refs/closing-message.md), and
doctor-log any harness incidents (../shared/refs/doctor-logging.md).
| Mode | Ref |
--staging | refs/staging.md |
--production | refs/production.md (+ refs/release-identity.md) |
--init | refs/protocol-init.md |
References
refs/sanctioned-writes.md— the canonical write enumeration + the script-resolution form ·refs/failed-ship.md— rollback/rollout-halt offer, issues file, fix-loop handoff ·refs/deploy.md·refs/verify-deploy.md·refs/submission.md·refs/human-test-script.md·refs/protection.md·refs/refusal-patterns.md·refs/output-schema.md../shared/refs/—policy-schema.md(§0init, §1release_flow, §2bgithub_actions) ·policy-schema-merge.md(§1b flow behavior, §2 protection, §3 steps, §4release_model, §5staging_ready, §6 release lock) ·gate-dispatch.md·fix-loop.md·finding-schema.md·report-schema.md·safety-floor.md·status-heartbeat.md·prd-lifecycle.md.claude/scripts/—script-branch-protection.sh·script-signoff-coverage.sh·script-release-lock.sh·script-release-identity.sh·script-prd-stamp.sh·script-intake-stamp.sh·script-policy-read.py·script-ci-status.py·script-platforms-parse.py·script-smoke-run.sh·script-ts-miss.py
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.

