memory-consolidation

memory-consolidation is a skill for Claude Code, Codex from event4u-app/agent-config. It costs 51 tokens per session (5,206 once invoked), scanned A, original, MIT.

A process for turning repeated session signals, such as corrections, preferences, decisions, or recurring bugs, into curated long-term agent memory.

In plain words
What is it for?
Use it to review intake records, consolidate recurring patterns, prune noise, and capture project facts for future sessions.
Why use it?
It helps preserve useful project knowledge between chats without storing every temporary note or one-off review comment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review intake records, consolidate recurring patterns, prune noise, and capture project facts for future sessions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/event4u-app/agent-config/memory-consolidation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add event4u-app/agent-config --skill memory-consolidation
Clone the repo
git clone --depth 1 https://github.com/event4u-app/agent-config

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-consolidation

README.md
[![agentmods](https://agentmods.dev/badge/skills/event4u-app/agent-config/memory-consolidation.svg)](https://agentmods.dev/skills/event4u-app/agent-config/memory-consolidation)
Your own site
<a href="https://agentmods.dev/skills/event4u-app/agent-config/memory-consolidation"><img src="https://agentmods.dev/badge/skills/event4u-app/agent-config/memory-consolidation.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,206 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 236
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.05206
Opus 5 $0.00026 $0.02603
Sonnet 5 $0.00010 $0.01041
Haiku 4.5 $0.00005 $0.00521

Measured 4d ago against content hash 699b0dd291bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

memory-consolidation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/skills/memory-consolidation/SKILL.md · 401 lines

How it starts

The opening of the file, as written. The whole thing — 401 lines — stays where its author put it; the contents beside it link to each section on GitHub.

memory-consolidation

When to use

  • Intake JSONL has accumulated unreviewed signals and /memory:load shows the inline-review block.
  • A pattern recurred across recent sessions (correction, preference, decision, repeat-bug) and is at risk of being forgotten by the next fresh chat.
  • Before closing out a multi-day implementation, capture project-scoped facts so the next agent does not re-discover them.

Do NOT use for one-off code review notes (those belong in PR comments, not memory), or for transient TODOs (use the task list). User-attribute facts like name, language, or IDE preference route to the global user-scoped channel (§ Global user-scoped channel, below) — never into agents/memory/ curated YAML — and land via /agents:user review / /agents:user accept, not /memory:promote.

Cognition cluster

  • Mental model 5 — Signal vs. noise. A consolidation pass that promotes 30 entries from a 50-message session is noise; the Pareto cut is roughly 3–5 promote-worthy signals per cycle. See docs/contracts/mental-models.md § 5.
  • Mental model 12 — Defense in depth. Date-discipline, tag intersection, and per-invocation transcript-access confirmation are three independent guards; any one alone fails open. See § 12.

Procedure

The loop is four sequential phases. Each phase has one exit gate; do not advance until the gate is green.

Phase 1 — ORIENT (review scope and assess adapter)

  1. Confirm scope: which project, which time window, which transcript source. Default window: last 14 days. The agent must read the user's last chat message for an explicit --since override before defaulting.
  2. Inspect the current curated state: list files under agents/memory/ and check the most recent last_validated timestamps. Identify which schemas are stale before mining adds noise. Also resolve detect_managed_agents_folder(projectRoot) once here — CONSOLIDATE step 2 needs the answer to know whether project-scoped facts land in agents/memory/intake/ or route through the global buffer instead (§ Project attribution channel, below).
  3. Review the repo slot of the context-spine for project boundaries (modules, owners, sensitive paths). If empty, note the gap in the consolidation report; do not invent.
  4. Resolve the TranscriptAdapter for the current host (see Adapter contract below). If no adapter matches, stop and route the user to /memory:propose for manual signal entry. Do not synthesize.

Read the full file on GitHub · 401 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 401 lines · 51 tokens per session scan A 699b0dd291bc

Subscribe to this mod's changes

memory-consolidation is a skill published in the GitHub repository event4u-app/agent-config (10 stars, last pushed today), licensed MIT. It adds 51 tokens to every session and 5,206 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

save-progress

Save current project task progress to local task state file for cross-session continuity. Use when the user asks to save progress, uses an equivalent localized trigger phrase, the session is interrupted, or the user wants to resume work later. Writes to .claude/project-task-state.json so next session can load it via…

KimYx0207/Meta_Kim · 65 tokens

init

Install or update OwnMem in the current repository. Use when the user asks to set up OwnMem, add local project memory for coding agents, or refresh an existing OwnMem installation after a version bump.

grpcer/ownmem · 43 tokens

ijfw-handoff

Session handoff generation and loading. Trigger: session end, context full, /handoff.

FerroxLabs/ijfw · 23 tokens

lov-search-chat

A local search tool for recalling relevant parts of earlier AI conversations from an indexed memory store. It returns matching sessions and identifiable excerpts from the original conversations.

lovstudio/skills · 53 tokens

chatcrystal-debug-recall

Recall ChatCrystal memories for debugging tasks involving failing tests, compiler errors, runtime exceptions, dependency issues, environment breakage, or performance regressions. Use when historical root causes, fixes, or pitfalls may accelerate diagnosis before proposing a fix.

ZengLiangYi/ChatCrystal · 54 tokens

memory-tools

Use EverMe memory proactively when the user refers to previous conversations, earlier decisions, "last time", "remember when", existing project conventions, or previously solved errors, and save durable user preferences, habits, and decisions the moment they are stated. Do not repeat a search when a non-empty block…

EverMind-AI/EverMe · 71 tokens