memory-to-skill

memory-to-skill is a skill for Claude Code, Codex from zilliztech/memsearch. It costs 82 tokens per session (1,816 once invoked), scanned A, original, MIT.

A process for turning repeated workflows found in MemSearch memory into reusable skills for an AI assistant.

In plain words
What is it for?
Capturing a workflow, reviewing skill candidates, and—after human approval—installing a distilled skill for the relevant platform.
Why use it?
It preserves useful working methods so they can be reviewed and reused instead of reconstructed from scratch.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions Claude Code; mentions Codex; built for openclaw.

▶ Using Open-Source memsearch, Giving Your AI Agents Persistent, Human-Readable Memory Zilliz · about memory-to-skill · on YouTube →
About the project

MemSearch is a cross-platform semantic memory layer for AI coding agents that stores human-readable Markdown memories and indexes them with Milvus for searchable retrieval. It is used by agent users who want persistent context and by developers building memory features into agents across tools such as Claude Code, Codex, DeepSeek Harness, OpenClaw, and OpenCode. Catalogue add-ons provide the hooks, skills, and plugin workflows that capture, retrieve, and maintain this memory.

zilliztech/memsearch · 2,568 stars · on GitHub · zilliztech.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/zilliztech/memsearch/memory-to-skill
Any agent
npx skills add zilliztech/memsearch --skill memory-to-skill
Clone the repo
git clone --depth 1 https://github.com/zilliztech/memsearch

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for memory-to-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/zilliztech/memsearch/memory-to-skill.svg)](https://agentmods.dev/skills/zilliztech/memsearch/memory-to-skill)
Your own site
<a href="https://agentmods.dev/skills/zilliztech/memsearch/memory-to-skill"><img src="https://agentmods.dev/badge/skills/zilliztech/memsearch/memory-to-skill.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,816 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.01816
Opus 5 $0.00041 $0.00908
Sonnet 5 $0.00016 $0.00363
Haiku 4.5 $0.00008 $0.00182

Measured 6d ago against content hash 62b251b7e5a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

memory-to-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/_shared/skills/memory-to-skill/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You manage MemSearch's procedural memory: skills distilled from the work you repeat — a third layer beside the daily journals (episodic) and PROJECT.md / USER.md (semantic). State once that this is MemSearch skill distillation, not the host agent's built-in skills system.

Stages: 0 memory journals → 1 candidate (.memsearch/skill-candidates/, a git-tracked store that keeps evolving) → 2 installed (an agent skill dir). Candidates are never installed automatically; installing is always a human step. User requests may stop at candidate creation/review, or continue to installation in the same turn after explicit approval; match the requested stage.

The plugins.<platform>.memory_to_skill.* config key prefix and the install-path notes are platform-specific — see your platform reference file:

  • Claude Code → references/claude-code.md
  • Codex → references/codex.md
  • OpenClaw → references/openclaw.md
  • OpenCode → references/opencode.md
  • DeepSeek Harness → references/dsh.md

Intent routing

  • "make/turn this into a skill", "from what we just did" → A. Capture now.
  • "what skills / review candidates / install X" → B. Review & install.
  • "mine my history / find recurring workflows" → C. Distill from history.
  • "enable / configure / how eager" → D. Configure.
  • Unclear or empty → run B's list; if empty, offer A or C.

A. Capture what you just did (0→1→2)

You already have the context, so draft the skill yourself — do not call the background distiller for this. Write a SKILL.md body (markdown, no frontmatter): imperative numbered steps for the recurring task, concrete commands and paths, no secrets, self-contained.

Be exact — do not guess. You have the live session for what you just did, so use the real commands, paths, and output, not approximations. If a detail is uncertain, verify it (re-read the relevant files or the transcript) or keep that step general — a wrong command is worse than a vague one. Then persist it as a candidate:

Read the full file on GitHub · 139 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 139 lines · 82 tokens per session scan A 62b251b7e5a7

Subscribe to this mod's changes

memory-to-skill is a skill published in the GitHub repository zilliztech/memsearch (2,568 stars, last pushed yesterday), licensed MIT. It adds 82 tokens to every session and 1,816 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.