Skip to content
Skillpedia
Agents101k · #1272

how-it-works

What it does

This AI agent notes down what you do (reads, edits, commands) and summarizes it at the end of your session. It uses these notes to give you context the next time you work on the same project, so you don't have to explain everything again.

When to use it

  • ✓When you start a new project and want the AI to remember what you did before.
  • ✓When you want the AI to understand your work history without having to repeat everything.
  • ✓To avoid having to explain code or past decisions every time you return to a task.

Skill link

https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/how-it-works/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/thedotmack/claude-mem/blob/main/plugin/skills/how-it-works/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“How does Claude work?”

5 new skills a week. 1 minute to read.

How it works

It records your actions as 'observations'. At the end, it summarizes these observations. The next time you use it, it inserts important notes into your prompts for the AI, so it starts with context.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

How claude-mem works

What it does

Every Read, Edit, and Bash that Claude makes turns into a compressed observation. Observations get summarized at session end. Relevant ones get auto-injected into future prompts so the next session starts with context from the last one — no re-explaining the codebase, no re-discovering decisions.

When it kicks in

Memory injection starts on your second session in a project.

The first session in a fresh project seeds memory; subsequent sessions receive auto-injected context for relevant past work. Run /learn-codebase if you want to front-load the entire repo into memory in a single pass (~5 minutes, optional).

Where data lives

Everything stays in ~/.claude-mem on this machine.

Nothing leaves your machine except calls to whichever AI provider you configured for compression (Claude / OpenRouter / Gemini). Local installs contact cmem.ai once, at signup, to create the sign-in link; nothing else is sent to cmem.ai. The SQLite database, vector index, logs, and settings all live under that directory and are removed cleanly on npx claude-mem uninstall.

FAQ

When does the AI start remembering my work?

From your second work session on the same project. The first time, it 'seeds' the memory. In subsequent sessions, it brings the learned context.

Where are these notes stored?

All information is stored on your computer, in the ~/.claude-mem folder.

Does my data leave my computer?

No. Only the notes are sent to the AI you configured for summarization. Nothing else leaves your computer.

Details

Original description by the author

Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".

repo: thedotmack/claude-mem

Popularity

GitHub stars
101k
Ranking position
#1272
License
Apache-2.0
Updated
10/15/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills