ai-memory-retrieval
Skill này làm gì
Skill tra cứu những gì dự án đã ghi trong wiki bộ nhớ. Dành cho người muốn agent kiểm tra các quyết định trước đây trước khi thiết kế hoặc chỉnh sửa.
Khi nào nên dùng
- ✓Khi bạn hỏi trước đây dự án đã quyết định gì về một chủ đề.
- ✓Khi bạn muốn tóm tắt hoạt động gần đây hoặc một bản tình hình từ bộ nhớ.
- ✓Khi bạn cần đọc một trang bộ nhớ đầy đủ trước khi thiết kế, gỡ lỗi hoặc chỉnh sửa.
Liên kết skill
https://github.com/akitaonrails/ai-memory/blob/main/crates/ai-memory-core/src/routing_skills/ai-memory-retrieval/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
“Chúng ta đã quyết định gì về cách tiếp cận migration cơ sở dữ liệu? Hãy kiểm tra bộ nhớ dự án trước khi bạn đề xuất gì.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent tìm trong wiki của dự án, liệt kê các trang được cập nhật gần đây, và đọc đầy đủ các trang khi cần. Các lần tra cứu này chỉ đọc và không thay đổi bộ nhớ nào.
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 retrieval
Use this skill for read-only ai-memory lookups, catch-up, and evaluating remembered project knowledge before you design, debug, or edit.
Tools in this cluster
memory_querysearches the current project's wiki for prior decisions, gotchas, procedures, rules, and session notes.memory_recentlists the most recently updated pages when the user wants a light activity check.memory_read_pagefetches a full page body after a search hit or direct path lookup. Aglobal_scope_hitsresult carries itsworkspace,project, andscope; passscope: "global"to read that reserved scope directly. The body is capped bymax_chars(default 12000, max 64000); the response'struncated/total_charsfields report whether it was cut and its full size. Raisemax_charsonly when you need the whole page. Passinclude_related: true(optionalrelated_depth, default 1, hard cap 3) to also walk the link graph outward and return arelatedarray of reachable pages, each with its hopdepthand edgedirection(link/backlink); default off omits it.memory_read_session_observationsreads one session's raw hook observations (prompts, tool calls, stops) in capture order, paged and body-capped, when the user asks what actually happened in a session or wants to check a compiled page against its evidence. It also continues a session that was cut off without ending: pass thesession_ida session-start notice,recent_sessionsornewer_unended_sessionnames (a harness's native id, such as an OpenCodeses_…id, works too) withorder: "desc", and its newest prompts and tool results are where the work stopped.memory_statusreports whether ai-memory is healthy and how large the knowledge base is.memory_briefingreturns a structured read-only snapshot for agent consumption, including a boundedpinnedlist of the project's pinned standing-context pages (present only when the project has pins) andrecent_sessions, the sessions with the newest captured work. An entry there withended: falseandhanded_off: falsethat is notcurrentwas cut off or is still running; read it before an older handoff or page when the user asks to continue.memory_explorereturns a prose digest when the user asks for an open-ended catch-up.
Project scope
Choose scope from the MCP client's identity support:
- Session-aware MCP clients that forward the real lifecycle-hook session id on every request should use automatic current-project routing. Omit
workspace,project, andcwdfor the current repository; pass explicit scope only when the user names a different project. - Static MCP clients (including clients with lifecycle hooks but no bridge connecting that hook session id to MCP requests) must pass
workspaceandprojecttogether on every project-scoped call, including requests about this project, here, or our work. Read the exact names from the nearest.ai-memory.tomlwhen it declares both. Without a marker override, derive the project from normalizedupstream, thenorigin, using the full repository path without its host (github.com/acme/api→acme-api); use the folder basename only when no valid remote exists. Never rely on the server's last active project.
This rule applies only to project-scoped calls. For cross-project retrieval, global=true must omit workspace, project, and scopes. For a standing preference written with scope: "global", omit workspace and project.
Choose the smallest useful lookup
- Use the search tool when the user asks whether something was discussed, before proposing architecture, or before non-trivial coding in a subsystem with possible prior decisions.
- Before non-trivial coding, debugging, deployment, release, auth, scope, migration, PR review, or data-preservation work, search memory for the subsystem and task type first. If the first search is thin, broaden or query more specific subsystem/error terms before designing a fix.
- Use the recent-pages tool for a quick what changed lately view.
- Use the status tool only for health and size questions.
- Use the structured briefing when code needs counts, windows, pending-handoff counts, current rules, or recent pages as JSON-like data.
- Use the prose exploration tool for broad catch-up questions like what is important right now or I have been away.
- Use the session observations tool when the question is about what
Câu hỏi thường gặp
Tìm kiếm có thay đổi bộ nhớ của tôi không?
Không. Việc truy xuất chỉ đọc.
Nó có đọc hoạt động phiên thô không?
Có. Nó có thể đọc các prompt và lần gọi công cụ đã ghi của một phiên khi bạn muốn kiểm tra điều gì đã xảy ra.
Nó có tìm trong các phạm vi khác không?
Có. Kết quả từ phạm vi khác hiển thị workspace, dự án và phạm vi, để bạn biết mỗi kết quả đến từ đâu.
Chi tiết
Mô tả gốc của tác giả
Use this skill for any request whose goal is read-only retrieval from ai-memory: project history, prior context, decisions, rules, gotchas, recent activity, full wiki pages, or status/briefing. Trigger by semantic intent rather than exact wording, including when ai-memory is not named.
repo: akitaonrails/ai-memory
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11041
- 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-durable-pages
15kGiúp agent lưu, cập nhật hoặc xóa các ghi chú dự án lâu dài trong wiki ai-memory khi bạn yêu cầu nó ghi nhớ điều gì đó bền vững.
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.
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.