ai-memory-routing-install
What it does
The skill sets up the instruction blocks and skill files that connect your AI tools to ai-memory. It is for people who want their agents to use the memory tools correctly.
When to use it
- ✓When you want ai-memory routing instructions installed in your agent setup.
- ✓When the ai-memory instructions or skills need repair or a refresh.
- ✓When you want to remove ai-memory's managed instructions or skills.
Skill link
https://github.com/akitaonrails/ai-memory/blob/main/crates/ai-memory-core/src/routing_skills/ai-memory-routing-install/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Install the ai-memory routing instructions into my CLAUDE.md and refresh the skills.”
5 new skills a week. 1 minute to read.
How it works
The agent gets the standard instruction block and skill files from the ai-memory install tool, then places them between marker lines. Content outside those markers is left as it is.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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.
FAQ
Will it change my other instructions?
No. It replaces only the block between the ai-memory markers and leaves unrelated content alone.
What are the markers for?
They show where ai-memory owns the text, so refreshes do not touch your other instructions.
Which files can it update?
Instruction files such as CLAUDE.md or AGENTS.md, and the managed skill folders.
Details
Original description by the author
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
Popularity
- GitHub stars
- 15k
- Ranking position
- #11042
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
ai-memory-durable-pages
15kHelps your agent save, update, or delete permanent project notes in your ai-memory wiki when you ask it to remember something lasting.
ai-memory-handoff
15kHelps your agent pass context to the next session, so you can pick up where you left off, save a wrap-up note, or cancel a mistaken handoff.
ai-memory-learning-maintenance
15kHelps your agent tidy its memory wiki by turning session notes into topic pages, checking for contradictions, and pruning stale entries when asked.
ai-memory-messaging
15kHelps your agent send a self-contained request to another project's inbox, check your project's inbox, or cancel a message you sent.
Similar skills
mcporter
394kHelps your agent list, call, and inspect MCP servers and their tools over HTTP or stdio, and manage their sign-in settings.
fastmcp
260kHelps you build, test, and deploy a Python MCP server that gives AI assistants access to your API, database, or files as tools.
mcp-oauth-remote-gateway
260kWalks you through OAuth sign-in for a remote MCP server when Hermes runs on a server, where the normal browser sign-in cannot reach it.