मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट48k · #3661

agent-memory-discipline

यह क्या करती है

यह 'skill' AI एजेंट को सिखाता है कि memory का समझदारी से इस्तेमाल कैसे करे। इसमें नियम होते हैं कि कब पुरानी जानकारी खोजनी है और कब नई जानकारी या सुधार सेव करना है।

कब इस्तेमाल करें

  • ✓जब assistant आपकी पसंद या पिछले फैसले भूल जाता है।
  • ✓जब आप चाहते हैं कि AI किसी जरूरी बात को आगे के प्रोजेक्ट्स के लिए याद रखे।
  • ✓जब assistant वही गलतियाँ या वही सवाल दोबारा करता है जो पहले सुलझ चुके हैं।

Skill का लिंक

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-memory-discipline/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/agent-memory-discipline/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“याद रखो कि हमने प्रोजेक्ट Y के लिए लाइब्रेरी X इस्तेमाल करने का फैसला किया है।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

कोई जरूरी काम करने से पहले AI अपनी memory में संबंधित जानकारी खोजता है। कोई फैसला लेने, गलती सुधारने या कुछ नया पता चलने के बाद AI उसे memory में लिख देता है ताकि बाद में काम आए।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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

…

अक्सर पूछे जाने वाले सवाल

अगर AI को पुरानी, आपस में टकराने वाली जानकारी मिले तो क्या होगा?

AI दोनों पुरानी जानकारियाँ उनकी तारीख के साथ दिखाएगा और आपसे पूछेगा कि कौन सी सही है या ज्यादा नई है।

क्या AI मेरी हर बात सेव करता है?

नहीं। AI सिर्फ जरूरी फैसले, आपके किए सुधार या हुई गलतियाँ सेव करता है। वह अस्थायी जानकारी या पासवर्ड जैसा संवेदनशील डेटा सेव नहीं करता।

AI जानकारी कैसे सेव करता है?

AI लिखता है कि क्या तय हुआ या क्या सीखा गया, वह क्यों जरूरी था, कब हुआ और जानकारी कहाँ से आई। अगर कुछ बदलता है तो पुरानी जानकारी मिटाई नहीं जाती, बल्कि उसे आगे के संदर्भ के लिए 'superseded' मार्क कर दिया जाता है।

जानकारी

लेखक का मूल विवरण

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.

repo: sickn33/agentic-awesome-skills

लोकप्रियता

GitHub स्टार
48k
रैंकिंग में स्थान
#3661
लाइसेंस
MIT
अपडेट की गई
15/10/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

00-andruia-consultant

48k

आपके एजेंट को AI प्रोजेक्ट शुरू करने या उन्हें बेहतर बनाने में मदद करता है। यह code का विश्लेषण करता है, tools सुझाता है और स्पेनिश भाषा में action plan बनाता है।

AI और एजेंटएजेंट

007

48k

आपका एजेंट security audit और threat modeling करता है। यह प्रोजेक्ट को हमलों और कमजोरियों से बचाने में काम आता है।

कोडिंगसिक्योरिटी

10-andruia-skill-smith

48k

आपके एजेंट को AI tools बनाने या उन्हें बेहतर करने में मदद करता है। यह तय करता है कि tools कैसे काम करेंगे, documentation लिखता है और structure की जांच करता है।

AI और एजेंटएजेंट

20-andruia-niche-intelligence

48k

आपका एजेंट किसी खास industry का summary बनाता है। भरोसेमंद स्रोतों की मदद से यह प्रोजेक्ट का संदर्भ, नियम, इस्तेमाल के तरीके और जोखिम समझने में मदद करता है।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills