From Ultragoal
Lints and compacts project memory files by finding contradictions, merging duplicates, and refreshing the index. Run every ~10 sessions to keep memory sharp.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ultragoal:compactThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Run a lint-and-compact pass over `.ultragoal/memory/` (MEMORY.md, facts.md, patterns.md, failures.md).
Run a lint-and-compact pass over .ultragoal/memory/ (MEMORY.md, facts.md, patterns.md, failures.md).
The cardinal rule: only the compiled layer (above the ---) is ever rewritten. Evidence logs below the line are append-only history — never edit, reorder, or delete their lines. Compaction that touches evidence is corruption, not cleanup.
Read every file end to end, then report findings in three tiers before changing anything:
[VERIFIED] claims whose evidence is old and whose subject area has changed since (check git log on the relevant paths); [INFERRED] entries no session has touched since they were written; entries the repo or git history now records on its own.[no data yet] slots in MEMORY.md that sessions keep needing; areas with lots of evidence but no compiled rule yet.[VERIFIED] claim has a one-command check, run it. Passes → refresh its date. Fails → rewrite the claim, append the contradicting run to the evidence log.[INFERRED], not deleted. Never silently promote [INFERRED] or [READ] to [VERIFIED] — that laundering is exactly how a memory starts citing itself.## Archived subsection at the bottom of the compiled layer with a one-line reason; their evidence stays in the log untouched.Reset the cadence counter: write 0 to .ultragoal/memory/.sessions.
Report: Errors/Warnings/Info found, what was merged, generalized, re-verified, downgraded, archived, and the new index size. Memory should come out smaller and sharper, not summarized into mush — when in doubt between compressing an entry and keeping the specifics that would change what a future session does, keep the specifics.
npx claudepluginhub morphaxl/ultragoal --plugin ultragoalAudits and selectively forgets stored Claude Code memories. Use when memory is large/uncurated, project state has shifted, or retrieval quality degraded.
Reviews, consolidates, and prunes Claude Code project memory files. Supports dry-run and atomic apply modes for safe batch maintenance.
Consolidates Claude Code's auto-memory across sessions using a four-phase cycle (Orient, Gather Signal, Consolidate, Prune Index) with seven operators. Activates via session hooks or manual `/dream` command.