agent-memory-discipline

agent-memory-discipline is a skill for Claude Code, Codex from ranbot-ai/awesome-skills. It costs 36 tokens per session (1,187 once invoked), scanned A, original, no licence file.

A set of rules for deciding when an agent should retrieve information from long-term memory and when it should save decisions, corrections, and failures.

In plain words
What is it for?
Use it to guide memory recall before tasks and memory updates after important decisions or mistakes, regardless of the memory system used.
Why use it?
It helps an agent avoid both forgetting useful past context and storing information at the wrong time.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to guide memory recall before tasks and memory updates after important decisions or mistakes, regardless of the memory system used.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ranbot-ai/awesome-skills/agent-memory-discipline
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ranbot-ai/awesome-skills --skill agent-memory-discipline
Clone the repo
git clone --depth 1 https://github.com/ranbot-ai/awesome-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-memory-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/ranbot-ai/awesome-skills/agent-memory-discipline/github.svg)](https://agentmods.dev/skills/ranbot-ai/awesome-skills/agent-memory-discipline)
Your own site
<a href="https://agentmods.dev/skills/ranbot-ai/awesome-skills/agent-memory-discipline"><img src="https://agentmods.dev/badge/skills/ranbot-ai/awesome-skills/agent-memory-discipline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agent-memory-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/ranbot-ai/awesome-skills/agent-memory-discipline"><img src="https://agentmods.dev/badge/skills/ranbot-ai/awesome-skills/agent-memory-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,187 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.01187
Opus 5.5 $0.00014 $0.00475
Sonnet 5.5 $0.00007 $0.00237
Haiku 4.5 $0.00004 $0.00119

Measured 22d ago against content hash eb346e314ab2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-memory-discipline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agent-memory-discipline/SKILL.md · 95 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 22d ago First seen · 95 lines · 36 tokens per session scan A eb346e314ab2

Subscribe to this mod's changes

agent-memory-discipline is a skill published in the GitHub repository ranbot-ai/awesome-skills (7 stars, last pushed yesterday), with no licence file. It adds 36 tokens to every session and 1,187 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.

Related

Other skills, from other repositories

browserwing-executor

Control browser automation through HTTP API. Supports page navigation, element interaction (click, type, select), data extraction, accessibility snapshot analysis, screenshot, JavaScript execution, and batch operations.

MemTensor/MemOS · 42 tokens

wegent-knowledge

Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge bases, documents, or search for information programmatically.

wecode-ai/Wegent · 51 tokens

dify-workflow

Use when dify AI workflow platform — LLM apps, knowledge bases, agents, workflow orchestration, API deployment. Use when working with dify workflow.

oyi77/1ai-skills · 37 tokens

always-on-agent-inputs

How to design contextual inputs for an always-on AI agent with episodic memory. Covers what data to feed the agent, how to structure observations and triggers, ambient context capture (screen, audio, calendar), context window budgeting, and retrieval strategies that keep the agent grounded in what's actually…

curiositech/windags-skills · 154 tokens

knowledge-org

A guide to organising large bodies of knowledge so an AI system can navigate relationships, summaries, and layers instead of searching only flat text chunks. It covers tree indexes, knowledge graphs, file-like structures, incremental updates, and long-term memory layouts.

bojieli/ai-agent-book · 96 tokens

web-design-engineer

Build or redesign polished browser-rendered visual artifacts with HTML/CSS/JavaScript/React: pages, dashboards, prototypes, slide decks, animations, UI mockups, and data visualizations. Use for visual front-end creation, design-system exploration, design critique, or explicit browser acceptance / QA of a web artifact.…

ConardLi/garden-skills · 96 tokens