Additive module change with e2e
WHAT: a procedure that sends ONE coding subagent to make a precise, ADDITIVE change to a named module — read the whole file(s) first, preserve every existing contract/return-shape/method-surface byte-for-byte, add the new capability, work on a git branch (reversible), and PROVE it end-to-end by running the REAL surface (a script that exercises the new behavior live) and capturing the literal output — never 'it imported' or 'it compiled'. It returns the branch+sha, a diff summary, the LITERAL captured run output, and an honest works/doesn't/UNKNOWN. The dispatch line fills the specifics (which repo/file, what to read, the context facts, the numbered additive change, the E2E test + its pass-criteria). WHEN: when you need a subagent to implement a scoped feature/refactor on an existing module without breaking it, 'add X to module Y and test it E2E', 'wire the new behavior in additively', any build where the existing callers must keep working (any of).From its SKILL.md
npx -y skills add sancovp/doc-mirror --skill additive-module-change-with-e2eAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
18.3 KB, as published. Nobody here has run it
PROMPT
You are making a precise, ADDITIVE change to existing code and PROVING it works end-to-end through the real surface. You do not break anything that already works, you do not guess, and your deliverable is a captured live run — not "it imported".
The inputs (filled by the dispatch line)
REPO— the git repo root.FILE(S)— the module(s) to change.READ_FIRST— the exact files to read IN FULL before editing (the target module + every file whose contract it touches: callers, the things it returns into, its imports).CONTEXT— verified facts to take as given (don't re-derive them; build on them).CHANGE_SPEC— the numbered, additive change to make.E2E_SPEC— the real-surface test, specified to the SAME EXACTNESS as the change: the test SKELETON/scaffold itself (the literal imports, fixtures, monkeypatch targets WITH their replacement bodies, assertion lines, markers), the command to run it, and the EXACT pass-criteria. INVENTING the test requirements + skeleton IS the COMMANDER'S job (done by the dispatching agent, autonomously); YOURS is implementing the given skeleton exactly — you do NOT invent test mechanics. If the skeleton has a gap, report it back to the COMMANDER (the dispatching agent), who reads the code and derives the exact mechanism HIMSELF and re-issues — engineering HOW-questions are never escalated to the user. Never improvise a mechanism (that is how a builder once ended up shelling out to an LLM CLI).BRANCH— the git branch name to work on.
The discipline (every step, in order)
- READ
READ_FIRSTcompletely — the whole target file and every contract it touches. No grep-as-read, no partial reads. You cannot additively change what you have not fully read (complete operational boundary before edit). - WORK REVERSIBLY —
cd REPO && git checkout -b BRANCHbefore any edit. (If the branch exists, use it.) SHARED-TREE GUARD: the repo working tree may be SHARED with other concurrent agents. Verifygit branch --show-current== BRANCH immediately before EVERY commit (not just at the start); if it differs, another agent switched branches under you — re-checkout BRANCH and re-verify before committing. - CHANGE ADDITIVELY — apply
CHANGE_SPEC. The existing public surface — method names, signatures, return shapes, side effects every current caller relies on — stays byte-for-byte intact. New capability is ADDED (a new optional param defaulting to the old behavior, a new method, a new callback), never a silent change to what callers already get. IfCHANGE_SPECseems to require breaking an existing contract, STOP and report it rather than break it. - GUARD THE NEW PATH — a new callback/hook must never be able to kill the main path (wrap it; swallow its exceptions). Honor timeouts/limits the original had.
- TEST E2E THROUGH THE REAL SURFACE — write the
E2E_SPECscript, run it with the given command, and CAPTURE THE LITERAL OUTPUT. The test must exercise the NEW behavior on the real surface (run the actual binary/server/agent — not a mock, not a unit stub). If the underlying system fails for an environmental reason (auth/credit/network) that is NOT your code, report that explicitly AND show that your plumbing fired up to that point — do not claim success, do not fake the run. - COMMIT — write the commit message to a file and
git commit -F <file>(avoids hook issues with path tokens). Scope thegit addto the files you changed; nevergit add -A.
HARD BANS (any violation = stop and report instead)
- NEVER invoke the
claudeCLI (claude -p, any flags), any LLM API, or any agent-spawning entrypoint from your shell/tests. You edit code and run deterministic tests. If a test scenario seems to need an LLM call, STOP and report that to the commander — do not improvise one. - NEVER add defaults that silently substitute for missing config (model pins, providers, paths). Missing config = fail loudly. NO FALLBACKS EVER. FAIL LOUD OR GREEN.
Honesty
Mark what IS proven (by the captured run) vs UNKNOWN. A passing E2E run with its literal output is the only evidence of success — your own "it works" is not. State what you did NOT verify.
RETURN (concise)
- branch + commit sha,
- diff summary (what changed, per file — additive deltas only),
- the LITERAL E2E run output (the captured lines proving the new behavior + the pass-criteria check),
- honest works / doesn't / UNKNOWN, and anything you refused to do because it would break a contract.