agent-memory-discipline
Was er macht
Dieser 'Skill' bringt einem KI-Agenten bei, wie er sein Memory sinnvoll nutzt. Er legt Regeln fest, wann der Agent alte Informationen nachschlagen sollte, bevor er handelt, und wann er neue Informationen oder Korrekturen nach einer Aktion speichern sollte.
Wann du ihn nutzt
- ✓Wenn der Assistent deine Vorlieben oder frühere Entscheidungen vergisst.
- ✓Wenn du willst, dass die KI sich wichtige Dinge für zukünftige Projekte merkt.
- ✓Wenn der Assistent Fehler oder Fragen wiederholt, die schon geklärt wurden.
Link zum Skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-memory-discipline/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Merk dir, dass wir uns für Projekt Y für die Bibliothek X entschieden haben.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Bevor die KI etwas Wichtiges tut, durchsucht sie ihr Memory nach relevanten Informationen. Nachdem sie eine Entscheidung getroffen, einen Fehler korrigiert oder etwas Neues entdeckt hat, schreibt sie es ins Memory, damit sie es später nutzen kann.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Agent Memory Discipline
Overview
Connecting a memory tool does not make an agent use it: tools register, the session runs, and nothing gets recalled or saved. This skill supplies the missing part, standing rules for when to read memory and when to write it.
The problem it solves is specific. An agent with memory available still repeats settled questions, reverts corrected habits, and loses decisions between sessions, because nothing tells it when recall and save are due. The rules below make both moments explicit.
When to Use This Skill
- Use when a memory tool or MCP memory server is connected but the agent is not using it consistently.
- Use when the user complains that the assistant loses preferences, conventions or past decisions between sessions.
- Use when setting up persistent memory for a project and the agent needs standing rules for reading and writing it.
- Use when the user says "remember this", "what did we decide", "recall", or "save this for next time".
How It Works
Before You Start: Any Memory Backend
The agent needs a memory tool it can call. Any backend works, and the rules are identical for each:
- Files. A
memory/folder of Markdown notes, one fact per file. No dependencies, fully greppable, versionable in git. - A local MCP memory server. Keeps everything on the local machine; several open-source options exist.
- A hosted memory service over MCP. Adds portability across tools and machines at the cost of the data living elsewhere.
Authentication is whatever the chosen backend requires: none for a local folder, the server's own configuration for a local MCP server, an API key or OAuth sign-in for a hosted service. This skill never handles credentials itself and never writes them into memory.
Step 1: Recall Before Acting
Read memory before doing any of these, not after:
- starting work on a project touched before
- choosing a library, pattern, or tool
- writing tests, commits, or documentation, where conventions apply
- answering "how do we usually do X here"
- anything the user phrases as "again", "like last time", or "as we agreed"
Skip recall for one-off factual questions, arithmetic, or anything fully specified in the current message. Recall costs a tool call and context; spending it on a self-contained question is waste.
Search with the words the user actually used, plus the project or repository name. If the first search returns nothing useful, try one broader query, then stop and proceed without memory rather than looping.
Step 2: Save After Deciding
Write to memory when one of these has just happened:
- a decision was made and will still matter next week ("we use pnpm", "the billing module stays untouched")
- the user corrected the agent, which is the strongest signal there is
- an approach failed, and why it failed
- a preference was stated that applies beyond this task
- a fact about the environment was discovered the hard way (a port, a flag, a service that must be running)
Do not save: the contents of files that can be read again, restatements of the current task, transient state, anything the user marked as temporary, and anything containing secrets, tokens, or personal data.
One memory, one fact. A paragraph containing four decisions cannot be superseded cleanly when one of them changes.
Step 3: Write It So It Survives
A memory that is useless in three weeks was written wrong. Give each entry, in the text if the backend has no fields for it:
- what was decided or observed, in one sentence
- why, briefly, because the reason outlives the decision
- when it became true, and when it stopped being true if it has
- where it came from: a file, a commit, a conversation, a test run
Prefer the user's own words over a paraphrase. Paraphrase drifts.
Step 4: Close the Past Instead of Overwriting It
When something changes, the old memory is not wrong. It is closed.
If the project moved from Redux to Zustand, "we use Redux" was true from January to June. Deleting it destroys the explanation for every component written in that window. Mark it superseded, keep its validity window, and write the new one alongside.
This is the single most destructive habit in agent memory, and it stays invisible until someone asks a question about old code.
Step 5: Keep Contradictions Visible
…
Häufige Fragen
Was passiert, wenn die KI alte, widersprüchliche Informationen findet?
Die KI zeigt dir beide Informationen mit ihren Datumsangaben und fragt dich, welche richtig oder aktueller ist.
Speichert die KI alles, was ich sage?
Nein. Die KI speichert nur wichtige Entscheidungen, Korrekturen, die du gemacht hast, oder aufgetretene Fehler. Sie speichert keine temporären Informationen und keine sensiblen Daten wie Passwörter.
Wie speichert die KI Informationen?
Die KI hält fest, was entschieden oder gelernt wurde, warum es wichtig war, wann es passiert ist und woher die Information stammt. Ändert sich etwas, wird die alte Information nicht gelöscht, sondern als 'superseded' (ersetzt) markiert, damit sie für die Zukunft nachvollziehbar bleibt.
Details
Originalbeschreibung des Autors
Rules for when an agent should recall from long-term memory before acting and when it should save decisions, corrections and failures afterwards. Works with any memory backend.
Beliebtheit
- GitHub-Sterne
- 48k
- Platz im Ranking
- #3661
- Lizenz
- MIT
- Aktualisiert
- 15.10.2026
Kommentare
- …
Weitere Skills aus diesem Repository
00-andruia-consultant
48kHilft deinem Agenten, KI-Projekte zu starten oder zu verbessern. Er analysiert Code, schlägt Tools vor und erstellt Aktionspläne auf Spanisch.
007
48kLässt deinen Agenten Sicherheitsaudits und Bedrohungsmodellierung durchführen. Nützlich, um Projekte vor Angriffen und Schwachstellen zu schützen.
10-andruia-skill-smith
48kHilft deinem Agenten, KI-Tools zu erstellen oder zu verbessern. Er legt fest, wie Tools funktionieren, schreibt die Dokumentation und prüft die Struktur.
20-andruia-niche-intelligence
48kLässt deinen Agenten eine Branchenzusammenfassung erstellen. Nützlich, um Kontext, Regeln, Nutzungsmuster und Risiken anhand verlässlicher Quellen zu verstehen.
Ähnliche Skills
add-model-provider
394kLässt deinen Agenten einen neuen KI-Modellanbieter mit sicheren Befehlen an OpenClaw anbinden, API-Schlüssel nicht im Klartext speichern und einen Live-Test starten.
acp-router
394kHilft deinem Agenten, eine Aufgabe über OpenClaw an einen Coding-Assistenten wie Claude Code oder Cursor zu senden, damit die Arbeit in diesem Tool läuft.
browser-automation
394kBringt deinem Agenten bei, Webseiten Schritt für Schritt zu steuern, einschließlich Anmeldungen, Tabs und Wiederherstellung, wenn eine Seite nicht mehr reagiert.