agentleFS
hashSTACS-GlobalhashSTACS-Global/EnClaws/skills/memory-manager/SKILL.md

memory-manager

Skill36 starsChanged 8 months agoApache-2.0View on GitHub

Skill for implementing the 3-step Memory-First Protocol (Research, Response, Learning). Use when starting ANY task to understand past context, and MUST use when completing a task to save new conventions, architectural decisions, or learned user preferences to the memory/ directory.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 3 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

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

    If you find a relevant snippet but need more context, use memory_get to read the specific lines from the source memory file.

    line 19
  2. Distinctive:

    Never ignore established precedents unless explicitly instructed to do so.

    line 24
  3. Very specific:

    If you encounter a new domain or get stuck during execution, pause and use memory_search again to find patterns you might have missed.

    line 25
  4. Distinctive:

    If you learned a new project convention, architectural pattern, or user preference during this task:

    line 31
  5. Very specific:

    Use the read or memory_get tool to check its current contents (if it exists).

    line 33
  6. Very specific:

    Use the write tool to create or update the markdown file with the new learnings.

    line 34
  7. Distinctive:

    When notifying the user that the task is complete, briefly mention that you committed the new rule to memory.

    line 35

“Common” is measured: kept by at least 6 in 10 of the 6 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

The 3-Step Memory-First Protocol

You are equipped with organizational memory and historical context capabilities. To ensure your work aligns with past decisions and continuously improves the team's knowledge base, you MUST strictly follow this 3-step protocol for ALL tasks:

Step 1: Research (调研)

Before writing any code or answering questions about prior work, you MUST run memory_search on MEMORY.md and memory/*.md.

  • Search Example: memory_search query:"how is authentication implemented?"
  • Search Example: memory_search query:"user preferences for code formatting"
  • If you find a relevant snippet but need more context, use memory_get to read the specific lines from the source memory file.

Step 2: Response (响应与执行)

Apply the historical context retrieved in Step 1 directly to your current task.

  • Never ignore established precedents unless explicitly instructed to do so.
  • If you encounter a new domain or get stuck during execution, pause and use memory_search again to find patterns you might have missed. Do not hallucinate.

Step 3: Learning (归纳沉淀)

CRITICAL: At the completion of a task, or when corrected by the user, you MUST save any new knowledge to the long-term memory.

If you learned a new project convention, architectural pattern, or user preference during this task:

  1. Identify the most appropriate .md file in the memory/ directory (e.g., memory/auth-conventions.md, memory/coding-style.md).
  2. Use the read or memory_get tool to check its current contents (if it exists).
  3. Use the write tool to create or update the markdown file with the new learnings. Keep the notes concise, definitive, and structured.
  4. When notifying the user that the task is complete, briefly mention that you committed the new rule to memory.

Note: The memory/ directory acts as your persistent Store Backend across sessions. Anything written here will be automatically indexed into the local vector database and retrieved in future tasks.

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.