memory
ما الذي تفعله
تتيح للمساعد أن يبحث ما يتذكره على المدى الطويل ويحفظه وينظّفه، مثل الحقائق عن الأشخاص والمشاريع. وهي لمن يريد أن يحتفظ مساعده بسياق مفيد.
متى تستخدمها
- ✓عندما تسأل المساعد عمن هو شخص ما أو ماذا يعمل عليه.
- ✓عندما يتعلم المساعد حقيقة مفيدة يجب حفظها لاحقاً.
- ✓عندما تحتوي الملاحظات المحفوظة على مدخلات قديمة أو خاطئة تحتاج إلى تنظيف.
رابط المهارة
https://github.com/yc-software/qm/blob/main/skills-seed/memory/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“ابحث في ذاكرتك عما قررناه بشأن مشروع برلين الشهر الماضي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يستخدم المساعد أداة الذاكرة للبحث أو الكتابة عبر الدفاتر التي قد يصل إليها. تُحفظ الملاحظات في نظام الذاكرة، لا في ملف عادي.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
memory — search, write, and curate what you remember
Everything here goes through the typed memory tool. Memory is NOT a file: writing
memory/MEMORY.md with files action write or shell commands lands on your computer's disk and is
silently lost — the tool is the one real path.
Every turn already auto-recalls a bounded selection from your notebooks into "## What you remember" and auto-extracts facts after you reply. This skill is for what the automatic path misses:
- Search (
action: "search") — what you remember is bigger than what auto-recall injects. Search spans every notebook this conversation may read (personal, channel, org); when more than one is in reach, each hit is tagged with the notebook it came from. Matching is substring-based (all terms must match), so prefer distinctive terms (a name, a project) over sentences. An empty result means those terms found no match, not that nothing is recorded. Try fewer terms or alternate wording before concluding a fact is absent. - Read another notebook (
action: "read", scope: "channel:…") — use the exact scope ID from a search result to load that authorized notebook.searchacceptsscopetoo, to narrow a query. Omit it to search all authorized notebooks or read the current notebook. Access comes from this turn's sharing policy; naming a scope never grants access. Other notebooks are read-only. - Write now (
action: "add",facts: [{text}, …]) — when the user corrects you or tells you something they'll expect you to know later, persist it immediately instead of hoping post-turn extraction catches it. Write self-contained facts (who/what, with enough context to be useful cold). Duplicates are dropped;addedin the reply is the count actually new. - Curate (
action: "edit"withfacts: [{id, text}, …],action: "delete"withids) — search or read to get each fact's#id, then fix facts that changed and delete stale, duplicate, or wrong ones. A call naming any id that isn't in this conversation's notebook changes nothing and lists the bad ids. Curation is for quality — merging duplicates, deleting disproven facts — not for deleting things the user asked you to remember.
The notebook you write is this conversation's own (your personal one in a DM, the channel's in a channel). Other authorized notebooks can be searched/read, not rewritten here.
The org-admin write path uses the self-API instead, called with
$AGENT_API_URL and $AGENT_API_TOKEN (both already in your environment on every turn —
if they are unset, this instance has no self-API; say so rather than pretending).
Org-wide notebook (admins)
When the chatting user is an org admin, the self-API additionally accepts the org-wide notebook as a target:
curl -sS --fail-with-body -X POST "$AGENT_API_URL/v1/memory/facts" \
-H "x-agent-capability: $AGENT_API_TOKEN" \
-H "content-type: application/json" \
-d '{"scope":"org","facts":["..."]}'
(?scope=org on GET /v1/memory/self; "scope":"org" in the body of PATCH /v1/memory/facts
with {"facts":[{"id","text"}]} or DELETE /v1/memory/facts with {"ids":[…]} to curate.)
Those writes land in the notebook every conversation in the org recalls, so confirm the
wording with the admin before writing and keep personal facts out of it. A 403 org memory writes require an org admin means the user isn't one — say so rather than
retrying (GET $AGENT_API_URL/v1/admin/whoami answers it definitively).
Failure modes
- "memory isn't available in this conversation" — this conversation's memory policy forbids it; don't retry, just say memory is off here.
- On a read-only wake (a heartbeat glance), memory can be searched and read but not written — save the fact on a normal turn instead.
401 unauthorizedfrom the self-API — your token expired mid-turn; this resolves on the next turn.502with anapplication/problem+jsonbody from/v1/memory/factsor/v1/memory/search— a memory provider failed.added(orresults) is what still worked, and each entry inproblemsnames the provider, what happened and afix. Don't send the same facts again; tell the user which provider failed and its fix.
الأسئلة الشائعة
لماذا قد يعود البحث فارغاً؟
النتيجة الفارغة تعني فقط أن هذه الكلمات لم تتطابق. يستطيع المساعد تجربة كلمات مختلفة أو أقل قبل أن يحكم بأن الحقيقة مفقودة.
هل يستطيع قراءة دفاتر الآخرين؟
فقط الدفاتر المشاركة مع هذه المحادثة يمكن قراءتها. وتأتي الصلاحية من قواعد المشاركة في المحادثة الحالية.
هل يعمل حفظ ملف ذاكرة على القرص؟
لا. يضيع ملف الذاكرة المكتوب على القرص، لذلك يستخدم المساعد أداة الذاكرة بدلاً منه.
التفاصيل
الوصف الأصلي من المؤلف
Deliberately search, add to, or curate your long-term memory with the `memory` tool — beyond the automatic recall/capture every turn already does. Use when asked who someone is or what they're working on, when you learn a durable fact worth keeping now, or when your notebook holds stale or wrong entries you should clean up.
repo: yc-software/qm
الشعبية
- نجوم GitHub
- 16k
- الترتيب
- #10898
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
deploy-qm
16kينشر حزمة QM على Fly.io أو AWS أو Render، ثم يجهّز مديراً وموصلات، واختيارياً Slack، وفق قائمة نشر كاملة.
onboarding
16kيرشد المستخدم الجديد خلال ربط حساباته ومشاركة طريقة عمله واختيار صوت وإعداد أول مساعدة، في محادثة قصيرة واحدة.
admin
16kيتيح لمدير مؤسسة موثّق أن يفحص الإعدادات على مستوى المؤسسة والنطاقات الأخرى أو يغيّرها من المحادثة، مع تأكيد كل تغيير قبل تنفيذه.
browse
16kيشغّل متصفحاً حقيقياً متخفياً من سطر الأوامر لتنفيذ إجراءات على المواقع، مثل تسجيل الدخول وملء النماذج، مع حفظ تسجيلات الدخول لكل شخص. مخصص للإجراءات لا للقراءة.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.