| name | deslop-history |
| description | Clean final user-visible artifacts produced from accepted decisions, reviewed direction, or issue/PR discussion by removing non-essential historical context, discussion provenance, superseded alternatives, and process framing while preserving current decisions, contracts, constraints, operational rationale, and required compatibility notes. |
Deslop History
Edit a final artifact draft so it reads as direct, user-facing material for its intended reader.
Use this as a last pass after the governing decision or direction has converged. Do not use it to decide policy, revise architecture, or adjudicate open design questions.
Use when
Use this skill when:
- a final user-visible artifact needs cleanup before sharing, committing, or handing off
- a source-of-truth doc, decision note, ADR-like note, implementation plan, summary, or skill was derived from issue or PR discussion
- accepted decisions are mixed with provenance, superseded alternatives, prior-draft commentary, or agent-facing explanation
- the artifact should present the current decision, boundary, contract, or instruction set rather than how it was reached
Do not use
Do not use this skill for:
- historical records, changelogs, postmortems, or audit artifacts where history is required content
- unresolved design discussions
- legal, regulatory, or compliance material where provenance must be preserved
- broad prose polishing when the main problem is inflated, generic, or AI-sounding writing without discussion residue
Do not remove:
- compatibility, migration, or deprecation notes that affect current behaviour
- rationale needed to understand decision boundaries or prevent misimplementation
Inputs
Gather or infer these before editing:
artifact โ the text or file to clean
intended_reader โ who must use the final output
artifact_type โ doc, plan, summary, skill, source-of-truth note, ADR-like note, or other form
required_history โ any historical context the artifact type explicitly requires
current_authority โ the accepted decision, issue, PR, spec, or source that governs the current state
Ask only when removing history could destroy required provenance or a needed operational caveat.
Procedure
- Identify the intended reader and artifact type.
- Determine whether the artifact type requires historical context.
- Classify each paragraph, bullet, table row, or section.
- Delete residue unless the artifact type explicitly requires it.
- Rewrite retained content so it reads as direct final-form guidance.
- Check that the cleaned artifact still preserves the current decision, contract, responsibility split, assumptions, constraints, and operational rationale.
Classification
Use these categories.
current-state-essential โ current decisions, interfaces, contracts, responsibility splits, active constraints, active assumptions, and operational open issues
operational-rationale โ rationale still needed to prevent misimplementation or misuse
historical-meta-residue โ discussion provenance, superseded alternatives, prior drafts, process notes, defensive explanations, agent-facing framing, and negative definitions that mainly answer an earlier misunderstanding instead of stating the current role directly
nonessential-context โ background that may be interesting but does not change the reader's action
When content could fit more than one category, classify by this precedence and assign the first match: current-state-essential > operational-rationale > historical-meta-residue > nonessential-context. A sentence that both states a current decision and narrates how it was reached is current-state-essential: keep the decision, drop the narration.
Keep current-state-essential.
Keep operational-rationale, but compress it and write it in present-state terms.
Remove historical-meta-residue and nonessential-context unless the artifact type requires them.
Do not output the classification unless the user explicitly asks for a review trace.
Removal Heuristics
Recognize historical-meta-residue by phrasing that narrates the discussion instead of stating the current role, such as: "This was discussed in ...", "After issue discussion ...", "This supersedes ...", "We considered ...", "In review ...", "This note exists because ...", "For now" used as discussion timing rather than a real boundary, migration or backward-compatibility framing with no current operational effect, "This is not X" that mainly reacts to earlier discussion rather than preventing a likely current misuse, or internal protocol detail that exists only to coordinate drafting or review. Treat close variants ("the earlier direction", "the first pass", "the initial draft") the same way.
Retain phrasing that matches one of these patterns lexically but is current-state-essential or operational-rationale under the classification precedence above โ most often: active constraints, current interfaces and contracts, compatibility requirements affecting actual behaviour, open issue links defining unresolved boundaries, rationale that prevents a likely wrong implementation, and dates/versions/commit references where freshness or compatibility matters.
Rewrite Rules
- Prefer present-tense, authoritative descriptions.
- Replace provenance with direct current-state wording.
- Replace "This supersedes X" with "Use Y" unless readers must actively avoid X.
- Remove defensive framing about why the artifact exists.
- Keep caveats that affect execution, but make them operational.
- Rewrite negative definitions into positive current-state statements when possible.
- Keep negative framing only when it prevents a likely misuse by the intended reader.
- Separate process from structure: remove agent-facing process commentary and describe the actual responsibility boundary, interface, or user model, not the planning discussion that produced it.
- Replace internal coordination protocols with reader-facing abstractions unless the reader must execute the protocol.
- Preserve links only when they define current authority, unresolved boundaries, or required follow-up.
- Do not introduce new decisions, broaden scope, or erase active constraints.
Minimal examples:
Before: After issue discussion, we decided the skill should preserve compatibility notes when needed.
After: Preserve compatibility notes when they affect current behaviour.
Before: This supersedes the earlier direction to include the full discussion.
After: Include only current decisions and operational constraints.
Before: This is not intended to replace the existing evaluation framework.
After: This complements the existing evaluation framework by handling final prose cleanup.
Before: The 12-tier scoring protocol and 9 failure-mode taxonomy are used to synchronise agent review.
After: The review uses a structured evaluation framework to identify common failure modes.
Given (do not remove): This design supersedes the June proposal per ADR-014; migrate before v3.2 using the compatibility shim described in ADR-014 ยง4.
Unchanged โ this is a governance/decision record; the superseded-alternative reference and the compatibility requirement are both required content, not residue.
Given: The plan proposes either a queue-based or a polling-based retry mechanism; the team has not yet chosen between them.
Not owned by this skill โ the design question is still open. Use `metaplan` or the project's decision process first; `deslop-history` applies only after the choice converges.
Output
If the user asks to edit a file, apply the cleaned artifact directly. If the user asks for review or cleanup text only, return the cleaned artifact without an audit log.
When the user asks for review before editing, provide:
- the inferred reader and artifact type
- any history that must be retained
- the cleaned artifact
When editing repository files:
- modify only the target artifact or directly required index entries
- keep the diff focused on residue removal and final-form wording
- do not add historical commentary about the cleanup itself
Quality Check
Before finishing, verify:
- the target reader can see the current decision, contract, or instruction set without reading issue history
- no discussion provenance, superseded alternatives, prior-draft commentary, or internal coordination-protocol detail remains unless the artifact type requires it, and any retained historical text still changes the reader's action
- deleting removed text cannot cause likely misimplementation
- open issue references remain only when operationally useful
- classification precedence was applied consistently: no
current-state-essential or operational-rationale content was misclassified and removed as residue
Relationship to Other Skills
- Use
sot-integrity when the artifact's authority or factual grounding must be audited.
- Use
metaplan when a plan or spec still needs execution-readiness review.
- Use
handoff-prompt when the output is a transfer prompt for another agent.
- Use
deslop-prose when the main problem is inflated, generic, or over-polished prose rather than issue-history residue.