agentleFS
orchnesaiorchnesai/orchnes-360/skills/memory/SKILL.md

memory

Skill3 starsChanged 9 days agoMITView on GitHub

Persistent, token-cheap memory across sessions, agents and models — what was decided, what is done, where work stopped, what the next step is, and stable facts about the project and the user. Agents resume from the last open point instead of restarting or re-asking. Use at the start and end of every multi-session task, when the user says "remember", "continue", "where were we", "we already decided this", "don't start over", or when a session may be interrupted.

123 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • roronoazoroshao369Skill

    memory-compression

    Also in 5 projects that use this

  • Maliot100XSkill

    send-user-message

    Send a proactive message to a paired user via their channel (Discord, Telegram, or WhatsApp). Use when the agent needs to notify, alert, or send an unsolicited message to a user — especially during heartbeat invocations, scheduled tasks, or when the agent wants to reach out without a prior user message in the current conversation. Triggers: 'send message to user', 'notify user', 'alert user', 'message the user on discord/telegram/whatsapp', or any need to proactively communicate with a paired sender.

    Also in 4 projects that use this

  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • +5 more from naman10parikh
  • +1 more from jh941213

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • 0

    Common

    Most of the 105 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Create only the files you need.

    line 21
  2. Very specific:

    Read the index file and .memory/state.md.

    line 24
  3. Distinctive:

    If memory conflicts with what you observe (code, files, outputs), observation wins.

    line 26
  4. Very specific:

    Update state.md after each meaningful step: task finished, decision made, blocker hit, before any long or risky operation.

    line 29
  5. Very specific:

    Keep the index file small.

    line 51
  6. Very specific:

    Only the coordinating agent (or the user) edits decisions.md.

    line 56
  7. Distinctive:

    Ask before storing anything personal they didn't clearly intend to be remembered.

    line 60

“Common” is measured: kept by at least 6 in 10 of the 105 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Memory

Memory exists so no agent ever starts from zero, re-asks a settled question, or redoes finished work.

1. Layout (plain Markdown files, any tool can read them)

AGENTS.md / CLAUDE.md      # always-loaded index: ≤ 80 lines, stable facts + pointers (tool reads it automatically)
.memory/
├── state.md               # where we are: goal, done, in progress, NEXT step, blockers   ← most important
├── decisions.md           # settled decisions with date and reason (append, supersede — never silently edit)
├── facts.md               # verified project facts: commands, architecture, environments, conventions
└── user.md                # user preferences: language, level, tone, constraints (only what they shared)

Templates: references/templates.md. Tool-specific locations (Claude Code, Codex, others): references/integrations.md. Create only the files you need; small projects may need just state.md.

2. Session start (always, before other work)

  1. Read the index file and .memory/state.md. Read other memory files only when relevant to the task.
  2. State in one line where things stand and what you'll do next — then do it. Don't ask the user to re-explain.
  3. If memory conflicts with what you observe (code, files, outputs), observation wins; fix the memory.

3. Checkpoint (during work — don't wait for the end)

Update state.md after each meaningful step: task finished, decision made, blocker hit, before any long or risky operation. Sessions can die at any moment; the last checkpoint is all the next agent gets.

4. What to save

Save only what is durable, verified and not cheaply re-derivable:

  • Decisions and their reasons ("chose Postgres over MongoDB: relational orders, team knows SQL").
  • Progress: done / in progress / next / blocked-on.
  • Facts discovered with effort: the working build command, a non-obvious gotcha, an environment quirk.
  • User preferences they expressed ("answers in Turkish", "Rust-first", "no long summaries").

5. What never to save

  • Secrets: passwords, tokens, keys, connection strings with credentials. Store where a secret lives, never its value.
  • Raw logs, full outputs, large code excerpts — summarize to the essential line with a file path.
  • Things obvious from the code or the conversation that will be re-read anyway.
  • Guesses. Unverified items are marked (unverified) or left out.
  • Sensitive personal data (health, finances, identity) unless the user explicitly asks to store it.

6. Writing rules

  • Update, don't append duplicates. One fact, one place. Rewrite stale lines.
  • Date entries that can go stale (2026-11-21). Prune what's obsolete when you touch a file.
  • Short lines, scannable. Memory is read every session — every line costs tokens forever.
  • Decisions are never silently changed. A new decision supersedes an old one with a reference: D7 supersedes D3.
  • Keep the index file small; move detail into .memory/ and point to it.

7. Multiple agents

  • One shared state.md; each entry tagged with the agent/role ([worker], [supervisor], [research]).
  • Claim a task before working on it (in progress — [agent] since <time>) to avoid duplicate work.
  • Only the coordinating agent (or the user) edits decisions.md; others propose.

8. User control

The user can read, edit or delete any memory file. When they say "forget X", remove it everywhere and confirm. Ask before storing anything personal they didn't clearly intend to be remembered.

Self-check at session end

  • Would a fresh agent know exactly what to do next from state.md alone?
  • Is anything secret, stale or duplicated in memory? Remove it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.