memory
できること
このスキルは、アシスタントが時間をかけて記憶していることを検索、保存、整理できるようにします。人やプロジェクトに関する事実など、役立つ文脈を保ってほしい人向けです。
使う場面
- ✓誰かが何者か、または何に取り組んでいるかを尋ねるとき。
- ✓後で使える役立つ事実を、アシスタントが学んだとき。
- ✓保存されたメモに古い内容や誤った内容があり、整理が必要なとき。
スキルのリンク
https://github.com/yc-software/qm/blob/main/skills-seed/memory/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“先月、Berlinプロジェクトについて決めたことを、あなたの記憶から検索してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
アシスタントは、記憶ツールを使って、アクセスできるノートブック全体で検索または書き込みを行います。メモは、平文のファイルではなく記憶システムに保存されます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
memory — search, write, and curate what you remember
Everything here goes through the typed memory tool. Memory is NOT a file: writing
memory/MEMORY.md with files action write or shell commands lands on your computer's disk and is
silently lost — the tool is the one real path.
Every turn already auto-recalls a bounded selection from your notebooks into "## What you remember" and auto-extracts facts after you reply. This skill is for what the automatic path misses:
- Search (
action: "search") — what you remember is bigger than what auto-recall injects. Search spans every notebook this conversation may read (personal, channel, org); when more than one is in reach, each hit is tagged with the notebook it came from. Matching is substring-based (all terms must match), so prefer distinctive terms (a name, a project) over sentences. An empty result means those terms found no match, not that nothing is recorded. Try fewer terms or alternate wording before concluding a fact is absent. - Read another notebook (
action: "read", scope: "channel:…") — use the exact scope ID from a search result to load that authorized notebook.searchacceptsscopetoo, to narrow a query. Omit it to search all authorized notebooks or read the current notebook. Access comes from this turn's sharing policy; naming a scope never grants access. Other notebooks are read-only. - Write now (
action: "add",facts: [{text}, …]) — when the user corrects you or tells you something they'll expect you to know later, persist it immediately instead of hoping post-turn extraction catches it. Write self-contained facts (who/what, with enough context to be useful cold). Duplicates are dropped;addedin the reply is the count actually new. - Curate (
action: "edit"withfacts: [{id, text}, …],action: "delete"withids) — search or read to get each fact's#id, then fix facts that changed and delete stale, duplicate, or wrong ones. A call naming any id that isn't in this conversation's notebook changes nothing and lists the bad ids. Curation is for quality — merging duplicates, deleting disproven facts — not for deleting things the user asked you to remember.
The notebook you write is this conversation's own (your personal one in a DM, the channel's in a channel). Other authorized notebooks can be searched/read, not rewritten here.
The org-admin write path uses the self-API instead, called with
$AGENT_API_URL and $AGENT_API_TOKEN (both already in your environment on every turn —
if they are unset, this instance has no self-API; say so rather than pretending).
Org-wide notebook (admins)
When the chatting user is an org admin, the self-API additionally accepts the org-wide notebook as a target:
curl -sS --fail-with-body -X POST "$AGENT_API_URL/v1/memory/facts" \
-H "x-agent-capability: $AGENT_API_TOKEN" \
-H "content-type: application/json" \
-d '{"scope":"org","facts":["..."]}'
(?scope=org on GET /v1/memory/self; "scope":"org" in the body of PATCH /v1/memory/facts
with {"facts":[{"id","text"}]} or DELETE /v1/memory/facts with {"ids":[…]} to curate.)
Those writes land in the notebook every conversation in the org recalls, so confirm the
wording with the admin before writing and keep personal facts out of it. A 403 org memory writes require an org admin means the user isn't one — say so rather than
retrying (GET $AGENT_API_URL/v1/admin/whoami answers it definitively).
Failure modes
- "memory isn't available in this conversation" — this conversation's memory policy forbids it; don't retry, just say memory is off here.
- On a read-only wake (a heartbeat glance), memory can be searched and read but not written — save the fact on a normal turn instead.
401 unauthorizedfrom the self-API — your token expired mid-turn; this resolves on the next turn.502with anapplication/problem+jsonbody from/v1/memory/factsor/v1/memory/search— a memory provider failed.added(orresults) is what still worked, and each entry inproblemsnames the provider, what happened and afix. Don't send the same facts again; tell the user which provider failed and its fix.
よくある質問
検索結果が空になるのはなぜですか?
空の結果は、その語が一致しなかったことを意味するだけです。アシスタントは別の語や少ない語で試してから、事実がないと判断できます。
他の人のノートブックを読めますか?
読めるのは、この会話と共有されたノートブックだけです。アクセスは、現在のチャットの共有ルールから決まります。
ディスクにメモファイルを保存すればよいのでは?
いいえ。ディスクに書かれたメモファイルは失われるため、アシスタントは代わりに記憶ツールを使います。
詳細
作者による元の説明
Deliberately search, add to, or curate your long-term memory with the `memory` tool — beyond the automatic recall/capture every turn already does. Use when asked who someone is or what they're working on, when you learn a durable fact worth keeping now, or when your notebook holds stale or wrong entries you should clean up.
repo: yc-software/qm
人気
- GitHubのスター
- 16k
- ランキング
- #10898
- ライセンス
- MIT
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
deploy-qm
16kQMパッケージをFly.io、AWS、Renderのいずれかにデプロイし、完全なデプロイ手順に従って、管理者、コネクタ、必要に応じてSlackを設定します。
onboarding
16k仕事の進め方を伝え、接続したいツールを設定し、話し方を選び、最初の手助けを整えるまでを、ひとつの短い会話で新しいユーザーに案内します。
admin
16k認証された組織の管理者が、チャットから組織全体の設定などを確認または変更できるようにします。各変更は実行前に確認されます。
browse
16kシェルから本物のステルスブラウザを操作し、サインインやフォーム入力などのWeb上の作業を行います。サインインは人ごとに保持されます。読み取りではなく操作のためのものです。
似ているスキル
add-model-provider
394k安全なセットアップコマンドで新しいAIモデルプロバイダーをOpenClawに接続し、APIキーを平文で残さず、ライブテストを行うようエージェントを支援します。
acp-router
394kClaude CodeやCursorなどのコーディングアシスタントに、OpenClaw経由でタスクを渡し、その作業がそのツール内で行われるようエージェントを支援します。
browser-automation
394kログイン、タブ、応答しなくなったページからの復旧を含め、Webページを段階的に操作するようエージェントに教えます。