# Memory Discipline (agent skill)

> Memory Discipline is an agent skill (a SKILL.md file) from rohitg00/agentmemory. The session loop that makes agentmemory pay off, recall before starting work, save at decision points, learn from corrections. It works with Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot and OpenCode and has 29,188 GitHub stars across a repository of 6 listed skills.

The session loop that makes agentmemory pay off, recall before starting work, save at decision points, learn from corrections. Use when starting a nontrivial task, after settling a decision or debugging a gotcha, or whenever deciding if something belongs in memory. Memory only pays off when reads happen before the work and writes happen at decision points. This loop is the skill; every tool call in it is mechanical.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/rohitg00/agentmemory |
| Skill path | plugin/skills/memory-discipline/SKILL.md |
| Skill name | memory-discipline |
| GitHub stars | 29,188 |
| Installs on skills.sh | 4 |
| License | Apache-2.0 |
| Skills in repo | 6 |
| Plugin marketplace | agentmemory |
| Official | no |
| Works with | Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode |
| Category | Testing & QA |
| Last commit | Oct 6, 2026 |

## When it triggers

- Use when starting a nontrivial task, after settling a decision or debugging a gotcha, or whenever deciding if something belongs in memory.

## Add this skill

### Claude Code

```sh
/plugin marketplace add rohitg00/agentmemory
/plugin install agentmemory@agentmemory
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/rohitg00/agentmemory.git
cp -r agentmemory/plugin/skills/memory-discipline .agents/skills/memory-discipline   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/rohitg00/agentmemory.git
cp -r agentmemory/plugin/skills/memory-discipline .cursor/skills/memory-discipline   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

skills.sh listing: https://www.skills.sh/rohitg00/agentmemory/memory-discipline

---

Canonical page: https://appsgit.com/skills/rohitg00-memory-discipline
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
