Skip to content

/document-merge

Merge overlapping docs without losing a line.

What it does

Consolidates several overlapping markdown documents into one, verifiably: every synthesis decision gets a stable ID, every source line range maps to an output section, the originals are archived byte-identical, and a validation script enforces the round trip.

When to reach for it

Three research notes covering the same ground, or a README that exists in four variants.

It's working if

  • You can take any paragraph from any original and find where it went in the merged document.
  • "Did we lose something?" is answered by running the check, not by re-reading four documents.
  • A merge that quietly dropped a section fails its own validation instead of shipping.

Install this skill

Then type /document-merge in your agent.

npx skills@latest add smorinlabs/smorinlabs-harness -s document-merge

Or install it as the document-merge plugin.

/plugin install document-merge@smorinlabs-harness

Where it fits