ai-memory-routing-install
Skill này làm gì
Skill thiết lập các khối hướng dẫn và file skill kết nối công cụ AI của bạn với ai-memory. Dành cho người muốn agent dùng đúng các công cụ bộ nhớ.
Khi nào nên dùng
- ✓Khi bạn muốn cài đặt hướng dẫn định tuyến ai-memory vào thiết lập agent.
- ✓Khi hướng dẫn hoặc skill của ai-memory cần sửa chữa hoặc làm mới.
- ✓Khi bạn muốn gỡ bỏ các hướng dẫn và skill được ai-memory quản lý.
Liên kết skill
https://github.com/akitaonrails/ai-memory/blob/main/crates/ai-memory-core/src/routing_skills/ai-memory-routing-install/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
“Cài đặt hướng dẫn định tuyến ai-memory vào CLAUDE.md của tôi và làm mới các skill.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent lấy khối hướng dẫn chuẩn và các file skill từ công cụ cài đặt ai-memory, rồi đặt chúng giữa các dòng đánh dấu. Nội dung nằm ngoài các dấu này được giữ nguyên.
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 routing install
Use this skill when the user wants ai-memory's agent-facing routing instructions or managed Agent Skills installed, refreshed, repaired, or removed.
Tools in this cluster
memory_install_self_routingreturns the canonical markered instruction block, marker strings, filename hints, notes, and managed skill payloads for agents that cannot let the MCP server write the host filesystem directly. Passcompact: truewhen managed Agent Skills are installed or when refreshing a file that already uses the compact snippet.
Managed instruction marker
The always-loaded instruction block is owned by ai-memory only between these markers.
- Start marker:
<!-- ai-memory:start --> - End marker:
<!-- ai-memory:end -->
Refresh must replace the first complete marker-bounded block whose start and end delimiters appear alone on their own lines, preserving unrelated content before and after it. Ignore inline mentions of marker strings inside prose or code; they are not delimiters. If no complete line-delimited block exists, append the canonical block with one blank line of separation. Never edit unrelated instructions while refreshing ai-memory routing.
Managed skill marker
Every ai-memory-managed SKILL.md file contains this ownership marker.
<!-- ai-memory-managed: routing-skill -->
Installers and uninstallers should overwrite or remove same-name skill files only when that marker is present, unless the user supplied an explicit force option. If a same-name skill lacks the marker, skip it with an actionable message so user-authored skills are preserved.
Global Grok installs also write $GROK_HOME/rules/ai-memory-handoff.md (default ~/.grok/rules/ai-memory-handoff.md) with the ownership marker <!-- ai-memory-managed: grok-handoff-rule -->. Overwrite or uninstall that file only when the marker is present, unless the user supplied --force. Project-scope Grok skill installs leave that user rule alone.
Skill install targets
Managed skills are ordinary Agent Skills. Their relative file path is <skill>/SKILL.md, and the installer prepends the selected skill root.
Project-local targets:
.claude/skills/<skill>/SKILL.mdfor Claude-compatible installs..agents/skills/<skill>/SKILL.mdfor cross-client installs..grok/skills/<skill>/SKILL.mdfor Grok Build CLI installs..github/skills/<skill>/SKILL.mdfor GitHub Copilot CLI installs.
Global targets:
~/.claude/skills/<skill>/SKILL.mdfor Claude-compatible installs.~/.agents/skills/<skill>/SKILL.mdfor cross-client installs.$GROK_HOME/skills/<skill>/SKILL.mdfor Grok Build CLI installs (default:~/.grok/skills/<skill>/SKILL.md).$COPILOT_HOME/skills/<skill>/SKILL.mdfor GitHub Copilot CLI installs (default:~/.copilot/skills/<skill>/SKILL.md).
Use platform-aware path joining. Do not build paths by string concatenation.
Refresh guidance
For an agent-side refresh, call the install-routing tool (pass compact: true if the target file already uses the compact snippet or if managed Agent Skills handle detailed routing). Its returned target_hints are authoritative for skill roots: choose the right instruction filename from agent_filenames, write the markered block with the agent's file-edit tool, and write each managed skill file below the selected hint using its relative_path. When a hint is an array, install the skill under every listed root. Claude Code normally uses CLAUDE.md and .claude/skills; Codex, OpenCode, Cursor, Gemini CLI, and AGENTS-aware clients normally use AGENTS.md and .agents/skills; Antigravity uses AGENTS.md and .agents/skills in a project, with separate App/IDE and CLI roots globally; Grok Build CLI uses AGENTS.md and .grok/skills; GitHub Copilot CLI uses AGENTS.md and .github/skills unless the project says otherwise.
For a CLI refresh, prefer the canonical install command. The snippet and skills must be updated from the same core-owned assets so they do not drift.
Câu hỏi thường gặp
Nó có thay đổi các hướng dẫn khác của tôi không?
Không. Nó chỉ thay khối nằm giữa các dấu ai-memory và để nội dung không liên quan nguyên vẹn.
Các dấu dùng để làm gì?
Chúng chỉ ra phần văn bản nào do ai-memory sở hữu, nên các lần làm mới không chạm vào hướng dẫn khác của bạn.
Nó có thể cập nhật những file nào?
Các file hướng dẫn như CLAUDE.md hoặc AGENTS.md, và các thư mục skill được quản lý.
Chi tiết
Mô tả gốc của tác giả
Use this skill for any request to install, refresh, repair, inspect, or remove ai-memory's agent-facing routing: managed instruction snippets, Agent Skills, CLAUDE.md/AGENTS.md integration, or local/global skill roots. Trigger by semantic intent rather than exact wording.
repo: akitaonrails/ai-memory
Độ phổ biến
- Sao GitHub
- 15k
- Vị trí xếp hạng
- #11042
- 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.