spec-merger

spec-merger is a skill for Claude Code from MageByte-Zero/spec-superflow. It costs 38 tokens per session (1,044 once invoked), scanned A, original, MIT.

A workflow tool that copies changes from temporary change-specific specifications into the main specification set. Specifications are documents that describe how a system should behave.

In plain words
What is it for?
Use it before closing an implementation to detect conflicts and publish added, changed, removed, or renamed requirements.
Why use it?
It prevents the main specifications from becoming out of date when several changes modify the same requirements.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the spec-superflow plugin — 10 skills, 1 hook shipped together

Good fit Use it before closing an implementation to detect conflicts and publish added, changed, removed, or renamed requirements.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/magebyte-zero/spec-superflow/spec-merger
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.

Any agent
npx skills add MageByte-Zero/spec-superflow --skill spec-merger
Clone the repo
git clone --depth 1 https://github.com/MageByte-Zero/spec-superflow

Made for: Claude Code.

Or install spec-superflow, the plugin that ships this one along with the rest of its 10 skills, 1 hook.

Wrote 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.

agentmods badge for spec-merger

README.md
[![agentmods](https://agentmods.dev/badge/skills/magebyte-zero/spec-superflow/spec-merger/github.svg)](https://agentmods.dev/skills/magebyte-zero/spec-superflow/spec-merger)
Your own site
<a href="https://agentmods.dev/skills/magebyte-zero/spec-superflow/spec-merger"><img src="https://agentmods.dev/badge/skills/magebyte-zero/spec-superflow/spec-merger/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.

agentmods 80×15 button for spec-merger

Your own site · 80×15
<a href="https://agentmods.dev/skills/magebyte-zero/spec-superflow/spec-merger"><img src="https://agentmods.dev/badge/skills/magebyte-zero/spec-superflow/spec-merger.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00038 $0.01044
Opus 5.5 $0.00015 $0.00418
Sonnet 5.5 $0.00008 $0.00209
Haiku 4.5 $0.00004 $0.00104

Measured 2mo ago against content hash 22bc7fb83f60, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

spec-merger 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 2mo 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.

skills/spec-merger/SKILL.md · 78 lines

How it starts

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

Spec Merger

Bundled runtime

Before executing a CLI line below, replace its leading SSF with node "<plugin-root>/scripts/spec-superflow.mjs"; <plugin-root> is the absolute directory two levels above this file. Never run SSF literally or call an ssf from PATH.

Before the final executing → closing transition, delta specs (ADDED/MODIFIED/REMOVED/RENAMED) must be published into the main spec base. changes/<change>/ remains the active workflow source; root specs/ is only the published baseline. Specs that aren't synced become lies. A change already in closing must not be routed to spec-merger.

Execution-State Guard

Before SSF sync or any other write, run SSF state get <change-dir> state. Continue only when the persisted state is exactly executing. If it is closing → STOP: "Closing is terminal. Do not route this change to spec-merger; synchronization belongs before the final executing → closing transition." For any other state, or if the state cannot be read → STOP and route through workflow-start; do not perform side effects.

Pre-Flight Checks

Conflict Detection

Run SSF sync <change-dir>. If conflicts are detected (same requirement modified by multiple changes), present the conflict list to the user for resolution order.

Sync Process

Step 1: Identify Deltas

Each specs/<capability>/spec.md under the change folder contains delta operations under ## ADDED/MODIFIED/REMOVED/RENAMED Requirements.

## Purpose is an optional top-level delta extension. Use it only when creating a canonical main spec. When it is absent or empty, the sync result uses and reports a deterministic default Purpose so legacy delta specs remain usable. A delta Purpose must not overwrite an existing main spec Purpose.

Step 2: Apply by Operation

ADDED: Append the requirement to the published baseline's ## Requirements. Create a canonical main spec if it does not exist.

MODIFIED: Match on ### Requirement: <name> and replace its description and scenarios. Flag if the requirement does not exist in the canonical baseline.

Read the full file on GitHub · 78 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. 2mo ago Changed · +4 lines 22bc7fb83f60
  2. 2mo ago Changed · -40 lines 9ed7607e3e2b
  3. 3mo ago First seen · 114 lines · 38 tokens per session scan A 794a1d99a6c9

Subscribe to this mod's changes

spec-merger is a skill published in the GitHub repository MageByte-Zero/spec-superflow (922 stars, last pushed 2d ago), licensed MIT. It adds 38 tokens to every session and 1,044 once invoked, about $0.0002 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-30.

Related

spec-merger compared with skills from other repositories

spec-merger next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
spec-mergerMageByte-Zero/spec-superflowSkill9222d agoMITA38Claude Code
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.7k2d agoMITA69Claude Code
chinese-documentationjnMetaCode/superpowers-zhSkill8.7k2d agoMITA62Claude Code
subagent-driven-developmentjnMetaCode/superpowers-zhSkill8.7k2d agoMITA21Claude Code
openspec-bulk-apply-changeintent-driven-dev/intent-driven-templateSkill24011d agoMITA30Claude Code, Codex
acceptance-test-authoringintent-driven-dev/intent-driven-templateSkill24011d agoMITA51Claude Code, Codex
task-to-prowainlewis/blueprintSkill4498d agoMITA40Claude Code, Codex