consolidate-memory

consolidate-memory is a skill for Claude Code, Codex from thtskaran/claude-skills. It costs 24 tokens per session (440 once invoked), scanned A, a copy of consolidate-memory, MIT.

A maintenance workflow for reviewing stored memory files about a user or project. It combines duplicates, removes outdated details, corrects time references, and keeps the index useful for future sessions.

In plain words
What is it for?
Use it to periodically clean and organize an agent's memory files after projects, deadlines, or user preferences have changed.
Why use it?
It prevents future work from relying on conflicting, stale, or unnecessarily repeated information. The result is a clearer record of durable facts and preferences.

Skill for Claude CodeCodex

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

Good fit Use it to periodically clean and organize an agent's memory files after projects, deadlines, or user preferences have changed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thtskaran/claude-skills/consolidate-memory
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 thtskaran/claude-skills --skill consolidate-memory
Clone the repo
git clone --depth 1 https://github.com/thtskaran/claude-skills

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 consolidate-memory

README.md
[![agentmods](https://agentmods.dev/badge/skills/thtskaran/claude-skills/consolidate-memory/github.svg)](https://agentmods.dev/skills/thtskaran/claude-skills/consolidate-memory)
Your own site
<a href="https://agentmods.dev/skills/thtskaran/claude-skills/consolidate-memory"><img src="https://agentmods.dev/badge/skills/thtskaran/claude-skills/consolidate-memory/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for consolidate-memory

Your own site · 80×15
<a href="https://agentmods.dev/skills/thtskaran/claude-skills/consolidate-memory"><img src="https://agentmods.dev/badge/skills/thtskaran/claude-skills/consolidate-memory.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 440 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.
Origin 100% copy Near-identical to another mod 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.00024 $0.00440
Opus 5.5 $0.00010 $0.00176
Sonnet 5.5 $0.00005 $0.00088
Haiku 4.5 $0.00002 $0.00044

Measured 1mo ago against content hash 1b192314cd6d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

consolidate-memory 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 1mo 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.

Origin

This is a copy

100% identical to consolidate-memory — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

consolidate-memory/SKILL.md · 35 lines

What it actually says

Memory Consolidation

You're doing a reflective pass over what you've learned about this user and their work. The goal: a future session should be able to orient quickly — who they work with, what they're focused on, how they like things done — without re-asking.

Your system prompt's auto-memory section defines the directory, file format, and memory types. Follow it.

Phase 1 — Take stock

  • List the memory directory and read the index (MEMORY.md)
  • Skim each topic file. Note which ones overlap, which look stale, which are thin.

Phase 2 — Consolidate

Separate the durable from the dated. Preferences, working style, key relationships, and recurring workflows are durable — keep and sharpen them. Specific projects, deadlines, and one-off tasks are dated — if the date has passed or the work is done, retire the file or fold the lasting takeaway (e.g. "user prefers X format for launch docs") into a durable one.

Merge overlaps. If two files describe the same person, project, or preference, combine into one and keep the richer file's path.

Fix time references. Convert "next week", "this quarter", "by Friday" to absolute dates so they stay readable later.

Drop what's easy to re-find. If a memory just restates something you could pull from the user's calendar, docs, or connected tools on demand, cut it. Keep what's hard to re-derive: stated preferences, context behind a decision, who to go to for what.

Phase 3 — Tidy the index

Update MEMORY.md so it stays under 200 lines and ~25KB. One line per entry, under ~150 chars: - [Title](file.md) — one-line hook.

  • Remove pointers to retired memories
  • Shorten any line carrying detail that belongs in the topic file
  • Add anything newly important

Finish with a short summary: how many files you touched and what changed.

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. 1mo ago First seen · 35 lines · 24 tokens per session scan A 1b192314cd6d

Subscribe to this mod's changes

consolidate-memory is a skill published in the GitHub repository thtskaran/claude-skills (22 stars, last pushed 4mo ago), licensed MIT. It adds 24 tokens to every session and 440 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to consolidate-memory, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

project-context-adapter

Refresh local project/ facts and frontend path indexes after project or tooling changes. Excludes Kit version upgrades and reusable skill authoring.

ytvee-dev/webdev-agent-kit · 31 tokens

agent-self-improvement

Opt-in experience capture, project memory, manual GitHub sync and evidence-based proposals. Use for explicit learning requests or configured project-memory recall; never silently collect or sync.

ytvee-dev/webdev-agent-kit · 39 tokens

checkpoint-handoff

Use before any context boundary — a context compaction, the end of a long session, a handoff to another agent or a future session — on multi-session work. Writes the resume state DOWN, outside the conversation: a working doc with what's done, what's in flight, the numbered remaining tasks in order, the standing…

mikestangdevs/craft-skills · 151 tokens

run-memory

Shared step of the marketing playbooks (analyze-performance, run-paid-campaigns, research-competitors, email-lifecycle): reads the last run's record, checks whether its recommendations were done and whether they worked, and saves a short record of this run for the next one. Loaded by those playbooks; not for direct…

gooseworks-ai/goose-skills · 72 tokens

company-brain

Your team's shared, AI-ready knowledge base — people, companies, meetings, SOPs, and decisions structured so an agent can answer on your team's behalf. Team-scope sibling to second-brain — personal notes go there, not here. Modes — capture, compile (wiki pages + INDEX.md), query (trust-weighted, saved to outputs/)…

coreyhaines31/makerskills · 230 tokens

claude-reflect

Self-learning system that captures corrections during sessions and reminds users to run /reflect to update CLAUDE.md. Use when discussing learnings, corrections, or when the user mentions remembering something for future sessions.

BayramAnnakov/claude-reflect · 46 tokens