# AI Memory Routing Install

Use this skill for any request to install, refresh, repair, inspect, or remove...

- Repository: https://github.com/akitaonrails/ai-memory (14817 stars)
- Category: AI and agents
- License: MIT
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add akitaonrails/ai-memory --skill ai-memory-routing-install -g -a claude-code -y`
Codex: `npx skills add akitaonrails/ai-memory --skill ai-memory-routing-install -g -a codex -y`
Cursor: `npx skills add akitaonrails/ai-memory --skill ai-memory-routing-install -g -a cursor -y`
Gemini CLI: `npx skills add akitaonrails/ai-memory --skill ai-memory-routing-install -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add akitaonrails/ai-memory`

## Description

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.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

<!-- ai-memory-managed: routing-skill -->

# 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_routing` returns 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. Pass `compact: true` when 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.

The rest: https://github.com/akitaonrails/ai-memory/blob/HEAD/crates/ai-memory-core/src/routing_skills/ai-memory-routing-install/SKILL.md
