What problem does it solve? Project knowledge bases (.assistant/ docs, auto-memory files, READMEs) drift out of sync with the actual codebase: stale facts linger, amendment-on-amendment patches pile up, and resolved questions stay open. This Skill reconciles the memory bank with what actually changed in the repo since the last defrag. ## Core Features & Use Cases - Baseline-aware diffing: Finds the last defrag commit via a Memory-Defrag: trailer, processes only commits since then, and no-ops quietly when nothing changed. - Patch folding and staleness correction: Collapses amendment chains into clean current-state docs, closes resolved questions, fixes dangling references, and captures new durable facts — verified against live code. - Unattended scheduled runs: Opens a pull request (never pushes to main) and posts a Mattermost webhook notification so a human reviews the knowledge-base diff. - Use Case: A team runs this nightly in CI; after a week of feature commits, it folds five amendment blocks in the decisions doc, closes two answered open questions, corrects a renamed config path, and opens a PR for review. ## Quick Start Ask the assistant to defragment the project memory bank and actualize the .assistant knowledge base against recent commits.