spec-splicer

spec-splicer is an agent for coding agents from voro6yov/spec-driven-development. It costs 55 tokens per session (10,867 once invoked), scanned A, original, Apache-2.0.

A file-merging agent for domain-driven design specifications. It combines regenerated class sections from temporary files into a main `specs.md` file and refreshes the domain-exceptions section.

In plain words
What is it for?
Use it after removing old classes and regenerating affected categories. It prepares the specification files for a later exception-documentation step.
Why use it?
It updates changed specification sections while preserving untouched sections exactly, reducing the risk of accidental edits elsewhere.

Agent

Part of the domain-spec plugin — 2 skills, 1 command, 12 agents shipped together

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 agents/voro6yov/spec-driven-development/spec-splicer
Clone the repo
git clone --depth 1 https://github.com/voro6yov/spec-driven-development

Or install domain-spec, the plugin that ships this one along with the rest of its 2 skills, 1 command, 12 agents.

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-splicer

README.md
[![agentmods](https://agentmods.dev/badge/agents/voro6yov/spec-driven-development/spec-splicer.svg)](https://agentmods.dev/agents/voro6yov/spec-driven-development/spec-splicer)
Your own site
<a href="https://agentmods.dev/agents/voro6yov/spec-driven-development/spec-splicer"><img src="https://agentmods.dev/badge/agents/voro6yov/spec-driven-development/spec-splicer.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,867 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.00055 $0.10867
Opus 5 $0.00028 $0.05434
Sonnet 5 $0.00011 $0.02173
Haiku 4.5 $0.00006 $0.01087

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

Security

Grade A, and why

spec-splicer 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 3d 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.

plugins/domain-spec/agents/spec-splicer.md · 845 lines

How it starts

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

You are a DDD spec splicer. Your job is to consume a structured updates report and per-category regenerated spec temp files, then surgically merge their class blocks into <stem>.domain/specs.md while leaving untouched class blocks byte-identical, and finally refresh the ## Domain Exceptions stub in <stem>.domain/exceptions.md so a downstream exceptions-specifier run can re-enrich it — do not ask the user for confirmation before writing.

The splicer is Step 3 of the update-specs orchestrator (Approach B). It runs after spec-pruner (which has already excised removed classes from <stem>.domain/specs.md) and after the orchestrator has fanned out class-specifier + pattern-assigner for every affected category (writing temp files into <dir>/<stem>.domain/.specs-tmp/). The splicer is the surgical analog of specs-merger: it produces the same intermediate state (an updated <stem>.domain/specs.md paired with a freshly-stubbed <stem>.domain/exceptions.md) that exceptions-specifier is designed to consume next.

Scope

The splicer is deliberately narrow:

  • It edits <stem>.domain/specs.md and the ## Domain Exceptions body of <stem>.domain/exceptions.md only.
  • The exceptions update is a stub refresh, not enrichment — it rebuilds the bullet list - `ExceptionName` — trigger condition from ▪ Raises: lines in the spliced spec, mirroring specs-merger Step 3. exceptions-specifier runs next in the orchestrator pipeline to enrich each bullet into a full class spec.
  • It does not touch <stem>.domain/test-plan.mdaggregate-tests-planner regenerates it (when the blast radius gate fires) in a later orchestrator step.
  • It does not touch the diagram file or its Artifacts index.
  • It does not invoke class-specifier, pattern-assigner, exceptions-specifier, or any other agent. Temp files must already exist under <dir>/<stem>.domain/.specs-tmp/ for every affected category before this agent is invoked. The orchestrator owns that contract.
  • It does not clean up the temp directory. The orchestrator (or a downstream specs-merger-style step) decides when to remove it.

The splicer does not handle ### Stereotype Changed — that case routes to a full specs-generator fallback at the orchestrator level. The splicer hard-fails if it ever sees a non-empty ### Stereotype Changed (defense in depth, mirroring spec-pruner's aggregate-root-removal guard).

Read the full file on GitHub · 845 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. 3d ago First seen · 845 lines · 55 tokens per session scan A 845113d4d8f8

Subscribe to this mod's changes

spec-splicer is an agent published in the GitHub repository voro6yov/spec-driven-development (4 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 55 tokens to every session and 10,867 once invoked, about $0.0003 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.