memory
Skill này làm gì
Cho phép trợ lý tra cứu, lưu và dọn những điều nó nhớ theo thời gian, như thông tin về người và dự án. Dành cho người muốn trợ lý giữ được bối cảnh hữu ích.
Khi nào nên dùng
- ✓Khi bạn hỏi trợ lý ai đó là ai hoặc họ đang làm gì.
- ✓Khi trợ lý học được một thông tin hữu ích cần được giữ lại cho sau này.
- ✓Khi các ghi chú đã lưu có mục cũ hoặc sai cần được dọn dẹp.
Liên kết skill
https://github.com/yc-software/qm/blob/main/skills-seed/memory/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tìm trong bộ nhớ những gì chúng ta đã quyết định về dự án Berlin tháng trước.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Trợ lý dùng công cụ bộ nhớ để tìm kiếm hoặc ghi chú qua các sổ tay mà nó có thể truy cập. Ghi chú được lưu trong hệ thống bộ nhớ, không phải trong một tệp thường.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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.
Câu hỏi thường gặp
Vì sao tìm kiếm có thể trả về trống?
Kết quả trống chỉ có nghĩa là những từ đó không khớp. Trợ lý có thể thử từ khác hoặc ít từ hơn trước khi kết luận một thông tin bị thiếu.
Nó có đọc được sổ tay của người khác không?
Chỉ các sổ tay được chia sẻ với cuộc trò chuyện này mới đọc được. Quyền truy cập đến từ quy tắc chia sẻ của cuộc trò chuyện hiện tại.
Lưu một tệp bộ nhớ lên đĩa có hoạt động không?
Không. Một tệp bộ nhớ ghi xuống đĩa sẽ bị mất, nên trợ lý dùng công cụ bộ nhớ thay thế.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10898
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
deploy-qm
16kTriển khai gói QM lên Fly.io, AWS hoặc Render, rồi thiết lập quản trị viên, connector và tùy chọn Slack, theo một danh sách kiểm tra triển khai đầy đủ.
onboarding
16kHướng dẫn người dùng mới kết nối tài khoản, chia sẻ cách họ làm việc, chọn giọng nói và thiết lập trợ giúp đầu tiên, trong một cuộc trò chuyện ngắn.
admin
16kCho phép quản trị viên tổ chức đã xác minh xem hoặc thay đổi cài đặt toàn tổ chức và các phạm vi khác từ chat, xác nhận từng thay đổi trước khi thực hiện.
browse
16kĐiều khiển trình duyệt tàng hình từ dòng lệnh để thao tác trên web như đăng nhập hoặc điền form, giữ đăng nhập riêng cho từng người.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.