consolidate
Skill1 starsChanged 6 days agoMITView on GitHub
Use when a repo's living docs have drifted from reality — when the user says "consolidate the docs", "compress BUGS.md", "the docs are stale", "tombstone this file", "bring the docs to current truth", or when a POTION DOC STALENESS notice appears at session start. Operates only on files listed in .potion/docs.json.
11 other projects use a version of this.
Adopted by
Most recently taken up by
- Postmodum37/laimatheir own version, first seen Nov 29, 2026
- BetoFrega/skillstheir own version, first seen Nov 29, 2026
- mkrz/skillstheir own version, first seen Nov 15, 2026
- vinaySankar2004/vuhritheir own version, first seen Nov 3, 2026
- jantichy/claudetheir own version, first seen Oct 27, 2026
- es6kr/skillstheir own version, first seen Oct 13, 2026
Other versions11 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 11
- jantichy/claude★ 54same name
- boaz-hwang/distill★ 14same name
- boaz-hwang/skilloom★ 14same name
- ilanbm/kpopper★ 12same name
- vinaySankar2004/vuhri★ 3same name
- es6kr/skills★ 2same name
- mkrz/skills★ 2same name
- spscream/ai-floppy★ 2same name
- BetoFrega/skills★ 1same name
- dominionism/Playbook★ 0same name
1 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Ground truth first: Read the target doc IN FULL, then verify its claims against live sources before moving a word: git log, the other …
- Distinctive: line 67
Before exiting, re-read against this list.
- Distinctive: line 68
every consolidated file's header carries a resolvable history hash.
- Distinctive: line 70
no open item exists in two files (pointers don't count).
- Distinctive: line 72
all commits landed; working tree clean of consolidation changes.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Potion Consolidate
Inherit ${CLAUDE_PLUGIN_ROOT}/core/CORE.md.
Docs rot in a known way: closed work stays verbose, open lists fragment
across files, and "current" instructions quietly become the wrong way to do
things. This lane compresses history, corrects drift, and keeps one doctrine:
history lives in git hashes, open work lives in exactly one file, and
nothing is deleted before it is rescued. The manifest
(.potion/docs.json) is the contract — each entry's role says what the
file is FOR, and the rewrite must land the file inside that role.
Scope: an argument names one manifest file; no argument means every entry
the staleness rules flag (over stale_days since last_consolidated, or
over cap_lines). A file not in the manifest is out of scope — offer to add
it (human confirms role/caps) rather than consolidating it ad hoc.
Steps
- Ground truth first. Read the target doc IN FULL, then verify its
claims against live sources before moving a word: git log, the other
manifest docs, and executable evidence — run
learnings.jsonlcmd/expectratchets it cites, grep migrations/functions for "done" claims, check referenced files still exist. Done when: every open, blocked, or "still broken" claim in the doc is classified as verified- done, verified-open, unverifiable-human, or wrong. - Classify every item. Verified-done → compress to an archive one-liner.
Still open → keep, and point it at the entry's
open_listdoc — open work lives in exactly ONE file; duplicates elsewhere become pointers. Superseded or wrong → correct it, or tombstone the whole file when nothing living remains. Durable lesson → promote to the repo's pitfalls/decisions ledger (orlearnings.jsonlvia /potion:learn). Unverifiable-human items STAY OPEN and are flagged — inventing status for console/credential work is this lane's cardinal sin (same truth-side human gate as Lint). Done when: no item lacks a disposition. - Rescue before deleting. Anything recorded nowhere else — a gate, a credential fact, a warning — moves INTO a living doc first, in the same commit series, before the old text is cut. Done when: a reader of only the living docs loses nothing a reader of the old doc had.
- Rewrite to the manifest role. One role per doc, cross-linked, no
duplicated open items. A fully superseded doc becomes a ~15-line
tombstone mapping its sections to their living homes. Every rewritten
file's header names the git hash that holds the verbose version (the
commit being replaced — resolve it BEFORE committing). Respect standing
caps (STATE.md's 60-line stop-drift cap;
cap_lineshere). Done when: the file reads as current truth and its history pointer resolves. - Bookkeeping. Set the entry's
last_consolidatedto today in.potion/docs.json(include this in the file's commit). Done when: a re-run of the staleness rules no longer flags the file. - Commit per file, honoring the mode. Manual (default): commit
docs(<area>): consolidate <file> …and push per the repo's norm. Automated/scheduled mode (when the invoker says so): commit topotion/consolidate-<date>and report — never push a rewrite to the default branch unattended. Done when: every touched file is committed and nothing consolidation-related is left dirty. - Exit report. One table: file · before/after lines · items rescued (named) · history hash. Plus a one-line list of human-owned items left open. Done when: the report is on screen.
Emission contract
Before exiting, re-read against this list; fix in place, at most once:
- every consolidated file's header carries a resolvable history hash;
.potion/docs.jsondates bumped for exactly the files touched;- no open item exists in two files (pointers don't count);
- rescued items named in the report, each with its new home;
- all commits landed; working tree clean of consolidation changes.
Red flags
| Thought | Reality |
| "It's probably done by now" | Verify or leave it open and flagged. A wrong "done" erases real work. |
| "This detail is old, delete it" | Old ≠ recorded elsewhere. Rescue first, cut second. |
| "I'll merge these two docs while I'm here" | Roles come from the manifest and the human. Propose, don't restructure. |
| "The history hash can be added later" | A rewrite without its pointer orphans the archive. Resolve it now. |
| "This file isn't in the manifest but clearly needs it" | Offer to add it — human confirms role and caps. Never consolidate off-manifest. |
| "Shorter is better everywhere" | A living runbook needs correctness, not compression. Fix the stale step, keep the recipe. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

