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.
npx skills add ndisisnd/msg --skill pre-mergegit clone --depth 1 https://github.com/ndisisnd/msgWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/ndisisnd/msg/pre-merge)<a href="https://agentmods.dev/skills/ndisisnd/msg/pre-merge"><img src="https://agentmods.dev/badge/skills/ndisisnd/msg/pre-merge/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/ndisisnd/msg/pre-merge"><img src="https://agentmods.dev/badge/skills/ndisisnd/msg/pre-merge.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00147 | $0.02675 |
| Opus 5.5 | $0.00059 | $0.01070 |
| Sonnet 5.5 | $0.00029 | $0.00535 |
| Haiku 4.5 | $0.00015 | $0.00267 |
Grade A, and why
pre-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 today.
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.
How it starts
The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.
pre-merge
The quality gate. Runs after eng --build says a feature branch is done: it checks
quality, fixes the bugs it finds, and writes its report. It stays local — it never
pushes and never opens a PR; /merge does both. Pre-merge holds no human gate — the
human look at the running feature belongs to merge (../shared/refs/safety-floor.md
§ Human gates). Absorbs the retired /review and /test. Each run is independent.
Posture: release engineer — owns the gate; repeatable evidence over assertion, severity matched to reachability, tables over prose, JSON-first.
eng --build → /pre-merge → (fail → automatic fix: eng --plan + eng --build, gate again, ≤2 rounds) → pass → "Next: /merge"
Usage
/pre-merge— gate the current feature branch against the base (staging, elsemain). First run: nocomponents[]indevkit/policy.json⇒ setup runs inline (detect tooling → batched questions, gaps only → gated install/scaffold → savedevkit/policy.json), then the gate continues in the same run (refs/protocol-init.md). The PRD is found from the branch name (feat/prd-<N>-<slug>); no match or several matches ⇒ one question, with a "No PRD" choice (refs/executor.md§0b). When test selection is on, critical-test tagging runs automatically before selection (refs/protocol-criticality.md)/pre-merge --update— redo or refresh setup: re-run preflight → diffcomponents[]→ approve the delta → applypresent/active_when/new-component changes only, never re-grading user-set criticality or re-prompting settled opt-outs (refs/protocol-init.md). The.github/workflows/CI pipeline is part of the detect unlesspolicies.github_actions.enabledisfalse— a settled opt-out, not a gap/pre-merge --prior-issues <path>/--full-secret-scan— load a prior verdict JSON to mark regressions / make thesecuritycomponent scan the full tree (default: diff-only)/pre-merge --flaky <N>/--changed-only— retry failing e2e / unit-int tests up toNtimes; skip platform components whose surface the diff doesn't touch (refs/_common.md).--minified/--full— force test selection on for this run (a trial; nothing written) / force the full suites, the kill switch. Flag beats policy:--full>--minified>policies.test_selection(refs/executor.md§3c)
What ships with it
37 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- refs/_common.md 5.3 KB
- refs/executor.md 49 KB
- refs/finding-schema.md 3.1 KB
- refs/output-schema.md 8.9 KB
- refs/platform-profiles.md 3.2 KB
- refs/platform/protocol-a11y.md 4.6 KB
- refs/platform/protocol-api.md 5.6 KB
- refs/platform/protocol-e2e.md 1.4 KB
- refs/platform/protocol-load.md 3.9 KB
- refs/platform/protocol-migration.md 6.6 KB
- refs/platform/protocol-mobile.md 5.2 KB
- refs/platform/protocol-perf.md 4.0 KB
- refs/platform/protocol-smoke.md 6.0 KB
- refs/prd/protocol-manual-test-plan.md 7.5 KB
- refs/prd/protocol-prd-consistency.md 8.8 KB
- refs/protocol-criticality.md 7.0 KB
- refs/protocol-init.md 36 KB
- refs/refusal-patterns.md 3.8 KB
- refs/severity-rubric.md 7.0 KB
- refs/stubs/.prettierrc.json 90 B
- refs/stubs/.size-limit.json 52 B
- refs/stubs/biome.json 192 B
- refs/stubs/docker-compose.test.yml 1.5 KB
- refs/stubs/eslint.config.js 358 B runs code
- refs/stubs/playwright.config.ts 423 B runs code
- refs/stubs/pre-merge.yml 2.1 KB
- refs/stubs/README.md 2.5 KB
- refs/stubs/ruff.toml 180 B
- refs/stubs/seed-test.ts 2.0 KB runs code
- refs/stubs/vitest.config.ts 332 B runs code
- refs/sync.md 3.7 KB
- refs/universal/protocol-coverage.md 5.8 KB
- refs/universal/protocol-mechanical.md 4.1 KB
- refs/universal/protocol-regression.md 5.3 KB
- refs/universal/protocol-security.md 4.5 KB
- refs/universal/protocol-tests.md 4.1 KB
- scripts/script-resolve-diff.sh 3.3 KB runs code
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.
- today Changed · +10 lines · +46 tokens per session 0a1ab151be48
- 1mo ago First seen · 101 lines · 101 tokens per session scan A b3d440bdaea3
pre-merge is a skill published in the GitHub repository ndisisnd/msg (6 stars, last pushed yesterday), licensed MIT. It adds 147 tokens to every session and 2,675 once invoked, about $0.0006 per session on Opus 5.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.
Other skills, from other repositories
shared-tooling-git-hooks
Husky v9 setup, lint-staged v16 patterns, commitlint with conventional commits, CI/production handling, monorepo setup, migration from v8.
git-commit-helper
Generate conventional commit messages automatically. Use when user runs git commit, stages changes, or asks for commit message help. Analyzes git diff to create clear, descriptive conventional commit messages. Triggers on git commit, staged changes, commit message requests.
publish-vscode-extension
Publish a VS Code extension to the VS Code Marketplace and/or Open VSX Registry. Use when the user wants to publish, ship, or release a VS Code extension; audit or improve manifest, listing, or release setup; build or upload a .vsix; set up vsce or ovsx; create a marketplace publisher or Open VSX namespace; configure…
ci-autofix
Autonomous CI/CD remediation — parse GitHub/GitLab failure logs, find the root cause (lint/type/test), generate and commit a fix.
skillspec-migrate
Complete a .agent.partial file by resolving TODO markers.
skill-writer
Review a SkillSpec .agent file for quality, correctness, and adherence to SkillSpec design principles.