/additive:foldfrom additive
RUNNER-ONLY — never invoke this on your own initiative. Not when an increment lands, not when documents look stale, not to be helpful. It runs only when a pipeline invokes it as a command, or when the user names it outright. Reconciles the permanent documents against what shipped: corrects the information architecture and the UX drawings, drafts a story for behavior nothing claims, sweeps the vocabulary, and records the code-versus-decision conflicts it may not settle.
Ships in additive. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Do not invoke fold. Ever, on your own initiative. A runner invokes it, or the user names it outright. There is no third case, and "the increment just landed" is not one — an agent that folds when it thinks the moment is right rewrites documents nobody asked it to touch, in a turn nobody is watching. If you are in a conversation and folding seems called for, say so and stop.
Fold corrects the documents to match what shipped. It runs after the increment lands and before the merge, with no human in the turn.
Read ../../references/warrant.md before you write any prose. Every
document fold touches may be wrong.
Any caller may invoke fold. It does not need to know anything about the caller.
docs/adrs/ the branch diff reaches —
the ones the diff changed, and the ones whose Touches names a file
the diff changed.--base <ref> names the branch the team merges into. If the
caller gives no ref, use the repository's default branch. The
pipeline knows which branch that is. This argument is how the skill
receives that knowledge. The skill does not decide the branch itself.Touches. Never a
repository-wide pass. A decision the branch went nowhere near is
settled history, and fold does not re-read it.docs/ files within scope, except docs/adrs/CLAUDE.md hard rules, when a decision settles an
invariant.additive/fold/conflicts.md, when the code
has moved away from a decisiondocs/adrs/. A decision is written and
superseded by a person who decided something. No unattended run
touches that directory.Touches entry does
not resolve.No human can answer a question during this turn. Do not guess.
Write only what the code proves. If you cannot prove something from the code, draft it, and mark it as a draft. If something needs human judgment, do not decide it. Leave an artifact instead, and let the gate carry it to a person. A wrong correction made without a human is worse than an uncorrected document. The wrong correction looks settled. The uncorrected document does not.
Touch nothing outside these: docs/ except docs/adrs/, the root
CLAUDE.md hard rules, and .additive/.
0. Record every conflict, decide none. Where the code contradicts a
decision the branch reached, you have found the case this skill may not
settle. The decision may have been superseded by a better idea nobody
wrote down, or the code may be a defect. Both look identical from here,
and only a person knows which. Do not edit the decision, and do not
correct the code. Append the conflict to .additive/fold/conflicts.md
and continue with the rest of the work:
# Conflicts
## {subsystem} — {the dated heading of the decision}
Decision: docs/adrs/{subsystem}.md
Found: {YYYY-MM-DD}, by fold, on {branch}
- **Claims:** {what the decision says, in one sentence}
- **Code does:** {what the code does now, with the file and the line}
- **Question:** is the code the new decision, or is it a defect?
### Evidence
{What was read, and where, so a person can re-check this rather than
trust it. Name the file and the line for every claim.}
One file, one section per conflict. Create the file if it does not exist. If a section for this decision is already there and says the same thing, leave it alone — fold is idempotent, and a conflict re-found is not a new conflict.
audit blocks the merge on the conflict, and the artifact is what the
person who unblocks it reads. design raises it with the user the next
time anyone opens that subsystem.
1. Move the project-wide rules. A rule that governs the whole
project belongs in the root CLAUDE.md hard rules, because every
session reads that file. Each decision's Project rules section states
whether it holds one. Most hold none.
2. Correct the documents — description only. Within scope, correct the information architecture and the UX drawings to match what shipped:
Never correct a story to match the code. A story case is a promise. The code must match that promise. The case does not describe the code. If you correct a case to match the code, a defect becomes a specification. If a bound test fails, that is a defect. The test suite already reports it. If a case has no bound test, the gate blocks the merge for that reason.
3. Draft what the team discovered. If the increment built a behavior that no story claims, draft a story for it here. Name its cases and its test bindings. Mark the story as a draft. The pull request review is where a new promise gets accepted. That review reads a diff. It is not a conversation. The user does not need to give extra time to it.
4. Check the vocabulary. If the code introduced a term that the information architecture's Labeling section does not carry, do one of two things:
Each thing must have one name. Use that one name on the surface, in the stories, and in the code.
5. Commit. Make one commit. State what was reconciled, and cite each decision by its file and its dated heading. Then stop. Whether to push is not fold's decision.
The documents within scope describe what shipped. The decisions
themselves are untouched, where the people who made them left them.
Every conflict fold could not settle is on disk under
.additive/fold/conflicts.md, waiting for the person who can.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
additive@wezzard-skills is listed by wezzard/skills — review the source before installing
npx claudepluginhub wezzard/skills --plugin additive4 skills in this plugin
/auditRUNNER-ONLY — never invoke this on your own initiative. Not to check your own work, not before reporting an increment done, not to be helpful. It runs only when a pipeline invokes it as the merge gate, or when the user names it outright. Checks read-only that the documentation describes the code truly, scoped to what one increment touched, with its exit code as the whole interface./designSettle the design of one increment before you build any of it. Discuss it in prose. Write the permanent documents, ending with the architecture decision in docs/adrs/. The user must accept that decision before implementation starts. Use when you add a feature, change behavior, or rework a part, in a project that carries the additive schema. Trigger on "design this", "let's add", "how should we build", "write an ADR", or before you implement anything non-trivial./