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.
npx agentmods add skills/sliamh11/deus/learn-procedurenpx skills add sliamh11/Deus --skill learn-proceduregit clone --depth 1 https://github.com/sliamh11/DeusWrote 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.
[](https://agentmods.dev/skills/sliamh11/deus/learn-procedure)<a href="https://agentmods.dev/skills/sliamh11/deus/learn-procedure"><img src="https://agentmods.dev/badge/skills/sliamh11/deus/learn-procedure.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00065 | $0.02633 |
| Opus 5 | $0.00032 | $0.01316 |
| Sonnet 5 | $0.00013 | $0.00527 |
| Haiku 4.5 | $0.00006 | $0.00263 |
Grade B, and why
learn-procedure scanned grade B with 1 finding 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 yesterday.
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.
Instruction-override phrasingmediumPrompt injection
Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.
that could later be obeyed as instructions ("ignore previous instructions", "now run X"). If a Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.
How it starts
The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/learn-procedure
Capture a repeatable task-execution procedure from the work just completed in this conversation and persist it as a memory node the assistant recalls automatically in future sessions. The pain this solves: multi-step task workflows (e.g. "rename a folder of images to each user's email using the roster .xlsx") get re-derived from scratch every session because nothing durable remembers the steps.
A procedure is stored as a normal memory-tree node with kind: procedure. It surfaces
through the existing UserPromptSubmit recall hook — no new retrieval path — when a
future prompt's intent matches the procedure's description.
Relationship to /learn-this and /preserve (read this — single source of truth)
/learn-this→ teaches the USER a topic and records what they LEARNED ($VAULT/Learning/)./preserve→ silently saves preferences/decisions/facts about the user ($VAULT/CLAUDE.md)./learn-procedure→ saves a HOW-TO the ASSISTANT should re-run: an executable, step-based task workflow (the auto-memory dir'sprocedures/subdir — see step 1).
Never duplicate the same content across these. A procedure is steps-to-execute, not a fact
about the user and not a lesson for the user. If a procedure relates to a learning record,
link with a see_also edge — do not copy.
When to use
Invoke after finishing a multi-step task that is likely to recur, where re-deriving the
steps next time would be wasteful. Do NOT capture one-off requests, trivial single commands,
or facts/preferences (those go to /preserve).
Steps
1. Resolve the auto-memory directory
A procedure is stored in the auto-memory directory — the same dir memory_indexer
promotes atoms into and that memory_query reads node content back from (LIA-341). Resolve it
with the shared resolver (never hardcode a path):
DEUS_HOME=$(deus root) || { echo "deus not on PATH" >&2; exit 1; }
python3 -c "import sys; sys.path.insert(0,'$DEUS_HOME/scripts'); from auto_memory_dir import resolve_auto_memory_dir; print(resolve_auto_memory_dir())"
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.
- yesterday First seen · 196 lines · 65 tokens per session scan B 3776730c9de3
learn-procedure is a skill published in the GitHub repository sliamh11/Deus (51 stars, last pushed yesterday), licensed MIT. It adds 65 tokens to every session and 2,633 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (instruction-override phrasing). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
memcord
Privacy-first, self-hosted chat memory for OpenClaw — save and recall conversation history across sessions without any cloud dependency.
mem9
Persistent cloud memory for OpenClaw agents. Use when users say: "install mem9" "setup memory" "add memory plugin" "openclaw memory" "mem9 onboarding" "memory not working" "import memories" "upload sessions".
mem9
Persistent cloud memory for OpenClaw agents. Use when users say: "install mem9" "setup memory" "add memory plugin" "openclaw memory" "mem9 onboarding" "memory not working" "import memories" "upload sessions".
cortex
Personal knowledge compiler and memory system. Ingests raw sources (documents, notes, transcripts, captures) into a structured, interlinked knowledge base. Maintains living entity pages, learning analysis, and the MEMORY.md routing table. Replaces the librarian skill.
librarian
DEPRECATED — Use the cortex skill instead. Cortex v2 absorbs all librarian functionality (memory maintenance, knowledge organization, learning analysis) into a unified knowledge compiler. This skill is kept for backwards compatibility but all triggers now route to Cortex.
neuron-curated-memory
Use Neuron (the semantic-memory MCP server) the RIGHT way so its graph stays clean and useful. Before answering, load prior context; after answering, save a CURATED turn — 3-5 concept keywords (nouns/entities/tech, never verbs or filler), typed links with a short rationale, and never a self-link. This raises graph…