ai-memory-durable-pages
Skill này làm gì
Skill quản lý các trang bền vững trong wiki bộ nhớ mà agent có thể đọc sau này. Dành cho người muốn giữ một số kiến thức dự án trong thời gian dài.
Khi nào nên dùng
- ✓Khi bạn yêu cầu rõ ràng agent ghi nhớ điều gì đó vĩnh viễn.
- ✓Khi bạn muốn một quy tắc, chú thích hoặc ghi chú dự án được lưu vào wiki bộ nhớ.
- ✓Khi bạn muốn một trang bộ nhớ hiện có được cập nhật hoặc gỡ bỏ.
Liên kết skill
https://github.com/akitaonrails/ai-memory/blob/main/crates/ai-memory-core/src/routing_skills/ai-memory-durable-pages/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
“Hãy ghi nhớ vĩnh viễn rằng cơ sở dữ liệu staging của chúng tôi được reset vào mỗi tối Chủ nhật.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent viết một trang ngắn gọn có tiêu đề, cập nhật các mục đã đặt tên trong một trang hiện có, hoặc xóa trang theo đường dẫn của nó. Hoạt động phiên thường ngày không được lưu theo cách này.
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.
ai-memory durable pages
Use this skill only for deliberate durable wiki mutations. Routine session capture is automatic, and permanent notes require an explicit user request.
Tools in this cluster
memory_write_pagewrites or replaces a durable wiki page for permanent project knowledge.memory_patch_pageatomically changes named Markdown sections in an existing page without re-emitting its frontmatter or unrelated body.memory_delete_pageremoves a durable wiki page by exact path.memory_restore_pagelists a page's checkpoints (norev) or writes an earlier version back (withrev), including a deleted page. It is admin only on a multi-user server and does not reachscope: "profile"pages.
Writing durable memory
Write a page only when the user explicitly asks to remember something permanently, save a note, add an annotation, or record project knowledge. Do not use durable pages for transient progress, normal status updates, or next-session context.
Put the page title as a # H1 on the first line of the body and omit the separate title argument. ai-memory derives the title from that H1. Keep the content concise and fact-like, with enough context that a future agent can apply it without rereading the whole session.
Optional top-level metadata: kind (64 characters), entities (10 names,
64 characters each, normalized and deduplicated), abstract (1,024 characters),
and relations (an object mapping causes, fixes, or contradicts to page
target arrays, 32 targets total, 1,024 characters each). Relation targets use
path, project:path, or workspace/project:path; extensionless page paths
resolve with .md, and scope components must already be trimmed. Limits apply
to raw values before trimming, normalization or deduplication. Arbitrary
frontmatter and author fields are not editable.
Every memory_write_page call replaces the whole page and its metadata;
omitted fields are cleared. Read the current page first when preserving
existing content matters, and pass its returned page_id as
expected_page_id so a concurrent change fails without writing. Use
create_only: true when the page must not already exist; do not combine the
two preconditions.
For a targeted edit, prefer memory_patch_page: read the page, pass its
required page_id as expected_page_id, and submit one bounded batch.
append_to_section and add_section use heading anchors from the read
response; replace_section must also carry that section's returned sha256.
All edits resolve against the same captured body and either commit together or
write nothing. Missing, duplicate, stale, or conflicting anchors fail closed.
Use memory_write_page when replacing the whole document.
When the user explicitly wants a note to be temporary, pass expires_at as an
RFC3339 instant or a bare YYYY-MM-DD (the end of that day in UTC). After the
TTL, normal search, recent, and briefing reads hide the page; the next forget
sweep deletes it. A TTL outranks pinned, so do not combine them unless the user
has deliberately requested that behavior.
Writing a session's pages yourself
When the user asks to consolidate the session you are taking part in, write its pages with your own model instead of the server's: read the session's raw observations first (the retrieval skill covers that read), then write each page with memory_write_page passing the same session_id, which records the session as evidence and settles its queued consolidation job. Match the server's multi-page layout, at most five pages:
sessions/<session_id>.md: the session narrative,tier: "episodic",kind: "fact".concepts/<slug>.md: evergreen concept pages,tier: "semantic",kind: "fact".decisions/<short>.md: ADR-style records of a choice made,tier: "semantic",kind: "decision".gotchas/<slug>.md: failure modes and surprises,tier: "semantic",kind: "gotcha"._rules/<slug>.md: a durable project convention written as a standalone instruction,tier: "semantic",kind: "rule".
Only split out what the session actually established; a short session is one session page. Record what was said and done, and never turn a user's question into a confirmed decision.
Project rules belong in instructions first
If the user asks to create a durable project rule such as always do X or never do Y, update the project's canonical agent instruction file when the repository
Câu hỏi thường gặp
Nó có lưu mọi thứ trong chat của tôi không?
Không. Nó chỉ viết các trang bền vững khi bạn yêu cầu rõ ràng, và bỏ qua tiến độ thoáng qua.
Nó có khôi phục được phiên bản cũ không?
Có. Nó có thể liệt kê các phiên bản trước của một trang và ghi lại một phiên bản, kể cả với trang đã xóa.
Trang có cần tiêu đề riêng không?
Không. Tiêu đề lấy từ heading đầu tiên trong nội dung trang.
Chi tiết
Mô tả gốc của tác giả
Use this skill for any explicit wiki mutation in ai-memory: saving durable or time-bounded project knowledge, recording a rule or annotation, updating a note, or deleting a memory page. Trigger by semantic intent rather than exact wording; routine session capture is not a durable-page request.
repo: akitaonrails/ai-memory
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11037
- Giấy phép
- MIT
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
ai-memory-handoff
15kGiúp agent chuyển ngữ cảnh sang phiên tiếp theo, để bạn tiếp tục từ chỗ đã dừng, lưu ghi chú tổng kết hoặc hủy một bàn giao gửi nhầm.
ai-memory-learning-maintenance
15kGiúp agent dọn wiki bộ nhớ bằng cách biến ghi chú phiên thành các trang chủ đề, kiểm tra mâu thuẫn và cắt tỉa mục lỗi thời khi bạn yêu cầu.
ai-memory-messaging
15kGiúp agent gửi một yêu cầu tự đủ nghĩa đến hộp thư của dự án khác, kiểm tra hộp thư dự án của bạn, hoặc hủy một tin nhắn bạn đã gửi.
ai-memory-retrieval
15kGiúp agent tìm trong wiki bộ nhớ dự án các quyết định, quy tắc và bẫy đã ghi trước đó, và đọc các trang đầy đủ, mà không thay đổi gì.
Skill tương tự
mcporter
394kGiúp agent của bạn liệt kê, gọi và kiểm tra các máy chủ MCP cùng công cụ của chúng qua HTTP hoặc stdio, và quản lý cài đặt đăng nhập.
fastmcp
260kGiúp bạn xây dựng, kiểm thử và triển khai một máy chủ MCP bằng Python, cấp cho trợ lý AI quyền truy cập API, cơ sở dữ liệu hoặc file của bạn dưới dạng công cụ.
mcp-oauth-remote-gateway
260kHướng dẫn bạn đăng nhập OAuth cho máy chủ MCP từ xa khi Hermes chạy trên máy chủ, nơi đăng nhập bằng trình duyệt thông thường không thể truy cập được.