consolidatelisted
Install: claude install-skill devgirishattri/agent-plugins
# Consolidate
`consolidate` is the memory module's core value: it turns an inbox of low-friction
captures plus whatever came up this session into reviewed, deterministic
plain-markdown diffs against the memory store, and applies them **only** through
`memory-write.sh apply` after the user has approved every single diff. The one
judgment call that matters most — propose an **UPDATE** to an existing file
rather than a new one whenever a plausible match exists — is yours to make; no
script makes it for you. Everything else (locking, CAS, reviewer refusal,
candidate consumption) is the writer's job, not this skill's: this skill never
writes a store file directly. It stages content at a scratch location and
drives `memory-write.sh`.
Resolve `PLUGIN_ROOT` from this selected skill's installed absolute source path: it is the directory two levels above this `SKILL.md`. Substitute that absolute path literally in every helper invocation below; never infer it from the project working directory or hardcode a marketplace cache version.
Read this whole document before starting. Do not skip steps or reorder them —
in particular, never apply anything before the user has seen and approved the
complete diff set (step 7), and never propose a fix for anything outside
`.agents/memory/` (docs, TODO/ISSUES trackers, and context snapshots are other
surfaces' jobs — see "Non-goals" at the end).
## 0. Invocation discipline (read this first)
Every call into a plugin helper script below is **exactly