ai-memory-routing-install
できること
このスキルは、AIツールをai-memoryにつなぐ指示ブロックとスキルファイルを設定します。エージェントがメモツールを正しく使えるようにしたい人向けです。
使う場面
- ✓ai-memoryのルーティング指示をエージェントの設定にインストールしたいとき。
- ✓ai-memoryの指示またはスキルの修復や更新が必要なとき。
- ✓ai-memoryが管理する指示やスキルを削除したいとき。
スキルのリンク
https://github.com/akitaonrails/ai-memory/blob/main/crates/ai-memory-core/src/routing_skills/ai-memory-routing-install/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ai-memoryのルーティング指示をCLAUDE.mdにインストールし、スキルを更新してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、ai-memoryのインストールツールから標準の指示ブロックとスキルファイルを取得し、マーカー行の間に配置します。マーカーの外側の内容は変更されません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
ほかの指示は変更されますか?
いいえ。ai-memoryのマーカーの間のブロックだけを入れ替え、関係のない内容には触れません。
マーカーは何のためにありますか?
ai-memoryが管理する文章の位置を示すため、更新してもほかの指示には影響しません。
どのファイルを更新できますか?
CLAUDE.mdやAGENTS.mdなどの指示ファイルと、管理対象のスキルフォルダです。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 15k
- ランキング
- #11042
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
ai-memory-durable-pages
15kエージェントが、長く残すべきことを覚えるよう求められたとき、ai-memoryのwikiに永続的なプロジェクトメモを保存、更新、削除できるよう支援します。
ai-memory-handoff
15kエージェントが次のセッションへ文脈を引き継ぎ、前回の続きから作業できるよう支援します。まとめのメモの保存や、誤った引き継ぎの取り消しも行えます。
ai-memory-learning-maintenance
15kエージェントがメモwikiを整理し、セッションのメモをトピックのページにまとめ、矛盾を確認し、頼まれたときは古い項目を整理できるよう支援します。
ai-memory-messaging
15kエージェントが、ほかのプロジェクトの受信箱へ単独で完結した依頼を送ったり、自分のプロジェクトの受信箱を確認したり、送ったメッセージを取り消したりできるよう支援します。
似ているスキル
mcporter
394kHTTPまたはstdioでMCPサーバーとそのツールを一覧表示、呼び出し、確認し、サインイン設定を管理するようエージェントを支援します。
fastmcp
260kPythonで、AIアシスタントがAPI、データベース、ファイルをツールとして利用できるMCPサーバーを作成、テスト、デプロイするのを支援します。
mcp-oauth-remote-gateway
260kHermesがサーバー上で動いている場合に、リモートのMCPサーバーのOAuthサインインを手動で完了させ、トークンを保存します。