Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

agent-memory-discipline

Skill by sickn33

Agent Memory Discipline gives AI agents standing rules for when to recall long-term memory before acting and when to save decisions, corrections and failures. It works with any memory backend, including plain Markdown files and MCP memory servers.

  • Score 92
  • 51k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install agent-memory-discipline

Built from the published package, never by AI.

git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/agent-memory-discipline ~/.claude/skills/agent-memory-discipline

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install agent-memory-discipline in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Agent Memory Discipline is a skill made of standing rules that tell an agent when to read from long-term memory and when to write to it. It targets agents that have a memory tool connected but do not use it consistently, repeat settled questions, or lose decisions between sessions. The rules cover recalling before project work, saving after decisions, corrections and failures, and keeping one fact per entry.

Each saved entry records what was decided, why, when it became true, and where it came from. When a fact changes, the old entry is closed with an end date instead of deleted, and conflicting recalled entries are shown to the user rather than merged. The skill works with a folder of Markdown files, a local MCP memory server, or a hosted memory service. It suits projects that need an assistant to keep conventions and decisions across sessions. The source lists Claude, Cursor and Gemini as supported tools.

Written from the project's SKILL.md and checked against it.

What it can do

  • Recall before actingReads memory before project work, tool choices, tests, commits and documentation.
  • Save after decisionsWrites one fact after a decision, correction, failure or stated preference.
  • Structured entriesRecords what was decided, why, when it applied, and where it came from.
  • Closing old entriesMarks outdated entries with an end date and a pointer to their replacement.
  • Contradiction handlingShows conflicting entries with their dates and asks the user which one holds.
  • Evidence versus policyKeeps single observations separate from rules until a human confirms them.

What you need

  • A memory tool or MCP memory server the agent can call

Try asking

  • Stop using npm here, we're on pnpm. Please remember that.
  • What did we decide about the state management library?
  • Recall our test conventions before you write these tests.

Good to know

  • Installs no memory backend. Without a memory tool, the agent can only report that memory is unavailable.
  • Does not resolve contradictions by itself. It surfaces them for the user to decide.
  • A hosted memory backend stores entries outside the local machine.
  • How well entries are found again depends on the backend's own search.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/agent-memory-discipline/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md12 KB
  • references/entry-format.md2 KB

Alternatives to agent-memory-discipline

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

agent-memory-discipline: common questions

Does this skill install a memory backend?

No. The source says it installs no memory backend and requires no account, and it works with any backend the agent can call.

When should the agent skip recall?

The source says to skip recall for one-off factual questions, arithmetic, or anything fully specified in the current message.

What should never be saved to memory?

Secrets, tokens, passwords, personal data, file contents that can be read again, restatements of the current task, and transient state.

How do I install agent-memory-discipline?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is agent-memory-discipline free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is agent-memory-discipline safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to agent-memory-discipline?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

agent-memory-discipline Install

Add to stack

Loading.