How It Works skill for Claude

Explain how claude-mem captures observations, when memory injection kicks in, and where data lives.

When Claude uses it

Use when the user asks "how does claude-mem work?" or "what is this thing doing?".

How It Works SKILL.md

The full skill file from thedotmack/claude-mem (Apache-2.0).

How claude-mem works

What it does

While you work, an observer (a second agent) watches what your agent reads, edits and runs, and writes short notes about what mattered. Those notes are called observations. When a session ends, the observer writes a summary. When the next session starts, your agent gets a compact index of the observations that matter for this project and fetches full details only when it needs them.

So the next session starts where the last one left off: 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 seeds memory as you work. To front-load a whole repo in one pass instead, run /learn-codebase (~5 minutes on a typical repo, optional).

Where data lives

Your memory lives in ~/.claude-mem on this machine: the SQLite database, vector index, logs and settings. npx claude-mem uninstall removes it.

What leaves the machine:

  • What the observer reads goes to the model you chose to run it: your Claude plan unless you picked another provider (Codex, OpenRouter, Gemini, or the claude-mem observer on CMEM Pro).
  • During install, cmem.ai gets only your email and optional note if you share them when the installer asks (it's optional and asked once), and a numbers-only usage summary (observation counts and token totals; no prompts, paths, or project names) when setup creates a sign-in link. Nothing else goes to cmem.ai unless you sign in and turn on something that uses it (cloud sync, CMEM Pro's hosted observer, a provider that runs through your cmem.ai account) or choose to upload your prompts during browser setup.
  • Anonymous usage analytics (telemetry) are on by default. Turn them off with npx claude-mem telemetry disable, or set DO_NOT_TRACK=1.

How to install How It Works

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit thedotmack/claude-mem/plugin/skills/how-it-works#main ~/.claude/skills/how-it-works

Codex

npx degit thedotmack/claude-mem/plugin/skills/how-it-works#main ~/.codex/skills/how-it-works

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the How It Works skill do?

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?".

+How do I install How It Works in Claude Code?

Copy the skill folder into ~/.claude/skills/how-it-works, for example with "npx degit thedotmack/claude-mem/plugin/skills/how-it-works#main ~/.claude/skills/how-it-works". Claude Code loads it automatically and uses it when a task matches.

+Does How It Works work with ChatGPT or Codex?

Yes. How It Works uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/how-it-works. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is How It Works free?

How It Works is published on GitHub by thedotmack under the Apache-2.0 license, which allows free use.

Related ai agents & skills skills

  1. Grill Me

    A relentless interview to sharpen a plan or design.

    mattpocock/skills★ 327k
  2. Skill Creator

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    anthropics/skills★ 197k
  3. Caveman

    Terse caveman voice: answer first, fluff gone, every technical fact kept.

    JuliusBrussee/caveman★ 121k
  4. Mem Search

    This skill should be used when the user asks to "search memory", "what do you remember about X", "check claude-mem", "mem search", "find…

    thedotmack/claude-mem★ 118k
  5. Owner Goals

    Map what the owner wants from the prompts they typed themselves (prompts an agent wrote are left out), then sort it into focus areas, asks…

    thedotmack/claude-mem★ 118k
  6. Domain Name Brainstormer

    Generates creative domain name ideas for your project and checks availability across multiple TLDs (.com, .io, .dev, .ai, etc.).

    ComposioHQ/awesome-claude-skills★ 80k
  7. Mcp Builder

    Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through…

    ComposioHQ/awesome-claude-skills★ 80k
  8. Get Available Resources

    Detects host inventory and effective CPU, memory, disk, scheduler, container, and accelerator limits when a user asks for resource-aware…

    K-Dense-AI/scientific-agent-skills★ 58k
  9. Pi Agent

    Builds with and operates Pi, the minimal terminal coding harness.

    K-Dense-AI/scientific-agent-skills★ 58k

See all ai agents & skills skills →

More skills from thedotmack

  1. Knowledge Agent

    Build and query AI-powered knowledge bases from claude-mem observations.

    thedotmack/claude-mem★ 118k
  2. Learn Codebase

    Prime a codebase by reading every source file in full. Use when starting work on a new or unfamiliar project, or when the user asks to…

    thedotmack/claude-mem★ 118k
  3. Make Plan

    Create a detailed, phased implementation plan with documentation discovery.

    thedotmack/claude-mem★ 118k

All skills by thedotmack →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.