Tooluck logoTooluck
SKILL.md

agent-memory-discipline

Agent skill fromdavepoon/buildwithclaude

Teaches when to recall from long-term memory before acting and when to save durable decisions, corrections and failures afterwards. Use when a memory tool or MCP memory server is connected but the agent is not using it consistently, when the user complains that the assistant forgets preferences, conventions or past decisions between sessions, or when setting up persistent memory for a project. Works with any memory backend: a folder of Markdown files, a local MCP server, or a managed service.

How to install agent-memory-discipline

install agent-memory-discipline
# install the buildwithclaude pack with the skills CLI
npx skills add davepoon/buildwithclaude

# or add only this skill to Claude Code: copy the folder

plugins/all-skills/skills/agent-memory-discipline/

# into

~/.claude/skills/agent-memory-discipline/ (all projects)

.claude/skills/agent-memory-discipline/ (one project)

plugins/all-skills/skills/agent-memory-discipline/SKILL.md

MITFull file
1# Agent memory discipline
2
3Connecting a memory tool does not make an agent use it. Tools register, the session runs, and nothing gets recalled or saved. This skill supplies the missing part: standing rules for when to read memory and when to write it.
4
5It is backend-agnostic. Everything below works the same whether memory is a folder of Markdown files, a local MCP server, or a hosted service.
6
7## Recall before acting
8
9Read memory **before** doing any of these, not after:
10
11- starting work on a project you have touched before
12- choosing a library, pattern, or tool
13- writing tests, commits, or documentation, where conventions apply
14- answering "how do we usually do X here"
15- anything the user phrases as "again", "like last time", or "as we agreed"
16
17Do **not** recall for one-off factual questions, arithmetic, or anything fully specified in the current message. Recall costs a tool call and context; spending it on a self-contained question is waste.
18
19Search with the words the user actually used, plus the project or repository name. If the first search returns nothing useful, try one broader query, then stop and proceed without memory rather than looping.
20
21## Save after deciding
22
23Write to memory when one of these has just happened:
24
25- a **decision** was made and will still matter next week ("we use pnpm", "the billing module stays untouched")
26- the user **corrected** you, which is the strongest signal there is
27- an approach **failed**, and why it failed
28…

Excerpt shown under the repository's MIT license.

More skills in buildwithclaude

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates