merge

A release gate that controls moving reviewed code from a feature branch to staging and then to the live production branch.

In plain words
What is it for?
Use it to merge a feature into staging, deploy and verify it, produce a human test script, or release approved changes to production.
Why use it?
It keeps merging and deployment in one controlled process, with checks, verification, human staging tests, and production confirmation.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/ndisisnd/msg/merge
Any agent
npx skills add ndisisnd/msg --skill merge
Clone the repo
git clone --depth 1 https://github.com/ndisisnd/msg

Made for: Claude Code, Codex.

Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,983 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00094 $0.01983
Opus 5 $0.00047 $0.00992
Sonnet 5 $0.00019 $0.00397
Haiku 4.5 $0.00009 $0.00198

Measured 2d ago against content hash cc2f12d81301, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

merge scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/merge/SKILL.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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); --prd names the shipped PRD explicitly (else resolved from the PR head branch feat/prd-<n>-*)
  • /merge --production [--prd <path>]... — the double-confirmed release: PR to prod, 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 last v* tag on prod); the resolved v<x.y.z>+<build> is shown in the confirm (refs/release-identity.md)
  • /merge --init — detect ship tooling, interview about the gaps, write devkit/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).

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 101 lines · 94 tokens per session scan A cc2f12d81301

Subscribe to this mod's changes

merge is a skill published in the GitHub repository ndisisnd/msg (6 stars, last pushed 16d ago), licensed MIT. It adds 94 tokens to every session and 1,983 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.