learn-procedure

learn-procedure is a skill for Claude Code, Codex from sliamh11/Deus. It costs 65 tokens per session (2,633 once invoked), scanned B, original, MIT.

A memory tool that saves a repeatable task procedure as a searchable step-by-step record for the coding agent.

In plain words
What is it for?
Use it after completing a multi-step task when you want the agent to remember and repeat the method in the future.
Why use it?
It prevents the agent from having to reconstruct the same workflow in a later session.

Skill for Claude CodeCodex

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/sliamh11/deus/learn-procedure
Any agent
npx skills add sliamh11/Deus --skill learn-procedure
Clone the repo
git clone --depth 1 https://github.com/sliamh11/Deus

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 learn-procedure

README.md
[![agentmods](https://agentmods.dev/badge/skills/sliamh11/deus/learn-procedure.svg)](https://agentmods.dev/skills/sliamh11/deus/learn-procedure)
Your own site
<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>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,633 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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 $0.00065 $0.02633
Opus 5 $0.00032 $0.01316
Sonnet 5 $0.00013 $0.00527
Haiku 4.5 $0.00006 $0.00263

Measured yesterday against content hash 3776730c9de3, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

.claude/skills/learn-procedure/SKILL.md · 196 lines

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's procedures/ 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())"

Read the full file on GitHub · 196 lines

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. yesterday First seen · 196 lines · 65 tokens per session scan B 3776730c9de3

Subscribe to this mod's changes

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.

Related

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.

ukkit/memcord · 28 tokens

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".

unvulcanised-watercress762/mem9 · 63 tokens

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".

unvulcanised-watercress762/mem9 · 63 tokens

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.

TechNickAI/openclaw-config · 55 tokens

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.

TechNickAI/openclaw-config · 54 tokens

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…

recla93/Neuron · 133 tokens