ai-memory-durable-pages
できること
このスキルは、エージェントが後で読めるメモwikiの永続ページを管理します。プロジェクトの重要な知識を長期間保持したい人向けです。
使う場面
- ✓永続的に覚えておくようエージェントに明示的に頼むとき。
- ✓ルール、注釈、またはプロジェクトのメモをメモwikiに保存したいとき。
- ✓既存のメモページを更新または削除したいとき。
スキルのリンク
https://github.com/akitaonrails/ai-memory/blob/main/crates/ai-memory-core/src/routing_skills/ai-memory-durable-pages/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ステージング用データベースは毎週日曜の夜にリセットされることを、永続的に覚えておいてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
エージェントは、タイトルを含む簡潔なページを書いたり、既存ページの名前付きセクションを修正したり、パスを指定してページを削除したりします。通常のセッションの作業は、この方法では保存されません。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
ai-memory durable pages
Use this skill only for deliberate durable wiki mutations. Routine session capture is automatic, and permanent notes require an explicit user request.
Tools in this cluster
memory_write_pagewrites or replaces a durable wiki page for permanent project knowledge.memory_patch_pageatomically changes named Markdown sections in an existing page without re-emitting its frontmatter or unrelated body.memory_delete_pageremoves a durable wiki page by exact path.memory_restore_pagelists a page's checkpoints (norev) or writes an earlier version back (withrev), including a deleted page. It is admin only on a multi-user server and does not reachscope: "profile"pages.
Writing durable memory
Write a page only when the user explicitly asks to remember something permanently, save a note, add an annotation, or record project knowledge. Do not use durable pages for transient progress, normal status updates, or next-session context.
Put the page title as a # H1 on the first line of the body and omit the separate title argument. ai-memory derives the title from that H1. Keep the content concise and fact-like, with enough context that a future agent can apply it without rereading the whole session.
Optional top-level metadata: kind (64 characters), entities (10 names,
64 characters each, normalized and deduplicated), abstract (1,024 characters),
and relations (an object mapping causes, fixes, or contradicts to page
target arrays, 32 targets total, 1,024 characters each). Relation targets use
path, project:path, or workspace/project:path; extensionless page paths
resolve with .md, and scope components must already be trimmed. Limits apply
to raw values before trimming, normalization or deduplication. Arbitrary
frontmatter and author fields are not editable.
Every memory_write_page call replaces the whole page and its metadata;
omitted fields are cleared. Read the current page first when preserving
existing content matters, and pass its returned page_id as
expected_page_id so a concurrent change fails without writing. Use
create_only: true when the page must not already exist; do not combine the
two preconditions.
For a targeted edit, prefer memory_patch_page: read the page, pass its
required page_id as expected_page_id, and submit one bounded batch.
append_to_section and add_section use heading anchors from the read
response; replace_section must also carry that section's returned sha256.
All edits resolve against the same captured body and either commit together or
write nothing. Missing, duplicate, stale, or conflicting anchors fail closed.
Use memory_write_page when replacing the whole document.
When the user explicitly wants a note to be temporary, pass expires_at as an
RFC3339 instant or a bare YYYY-MM-DD (the end of that day in UTC). After the
TTL, normal search, recent, and briefing reads hide the page; the next forget
sweep deletes it. A TTL outranks pinned, so do not combine them unless the user
has deliberately requested that behavior.
Writing a session's pages yourself
When the user asks to consolidate the session you are taking part in, write its pages with your own model instead of the server's: read the session's raw observations first (the retrieval skill covers that read), then write each page with memory_write_page passing the same session_id, which records the session as evidence and settles its queued consolidation job. Match the server's multi-page layout, at most five pages:
sessions/<session_id>.md: the session narrative,tier: "episodic",kind: "fact".concepts/<slug>.md: evergreen concept pages,tier: "semantic",kind: "fact".decisions/<short>.md: ADR-style records of a choice made,tier: "semantic",kind: "decision".gotchas/<slug>.md: failure modes and surprises,tier: "semantic",kind: "gotcha"._rules/<slug>.md: a durable project convention written as a standalone instruction,tier: "semantic",kind: "rule".
Only split out what the session actually established; a short session is one session page. Record what was said and done, and never turn a user's question into a confirmed decision.
Project rules belong in instructions first
If the user asks to create a durable project rule such as always do X or never do Y, update the project's canonical agent instruction file when the repository
よくある質問
チャットの内容をすべて保存しますか?
いいえ。永続ページは、あなたが明示的に頼んだ場合にのみ書き、一時的な進捗は省きます。
以前のバージョンに戻せますか?
はい。ページの過去のバージョンを一覧表示し、そのひとつを書き戻せます。削除されたページも対象になります。
ページには別のタイトルが必要ですか?
いいえ。タイトルは本文の最初の見出しから取られます。
詳細
作者による元の説明
Use this skill for any explicit wiki mutation in ai-memory: saving durable or time-bounded project knowledge, recording a rule or annotation, updating a note, or deleting a memory page. Trigger by semantic intent rather than exact wording; routine session capture is not a durable-page request.
repo: akitaonrails/ai-memory
人気
- GitHubのスター
- 15k
- ランキング
- #11037
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
ai-memory-handoff
15kエージェントが次のセッションへ文脈を引き継ぎ、前回の続きから作業できるよう支援します。まとめのメモの保存や、誤った引き継ぎの取り消しも行えます。
ai-memory-learning-maintenance
15kエージェントがメモwikiを整理し、セッションのメモをトピックのページにまとめ、矛盾を確認し、頼まれたときは古い項目を整理できるよう支援します。
ai-memory-messaging
15kエージェントが、ほかのプロジェクトの受信箱へ単独で完結した依頼を送ったり、自分のプロジェクトの受信箱を確認したり、送ったメッセージを取り消したりできるよう支援します。
ai-memory-retrieval
15kエージェントが、プロジェクトのメモwikiから過去の判断、ルール、注意点を検索し、ページ全体を読めるよう支援します。何も変更しません。
似ているスキル
mcporter
394kHTTPまたはstdioでMCPサーバーとそのツールを一覧表示、呼び出し、確認し、サインイン設定を管理するようエージェントを支援します。
fastmcp
260kPythonで、AIアシスタントがAPI、データベース、ファイルをツールとして利用できるMCPサーバーを作成、テスト、デプロイするのを支援します。
mcp-oauth-remote-gateway
260kHermesがサーバー上で動いている場合に、リモートのMCPサーバーのOAuthサインインを手動で完了させ、トークンを保存します。