Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

learn-procedure

БесплатноБез исполняемых скриптовНе проверен

Capture a repeatable task procedure from the just-completed work as a durable, queryable memory node, so the steps are recalled automatically next time…

sliamh11от sliamh11★ 50 звёзд на 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())"

All paths below use $AUTOMEM for this resolved directory.

2. Distill the procedure from the conversation

Identify the repeatable workflow that was just executed. Capture:

  • the trigger: when this procedure applies (the situation that calls for it),
  • the negative scope: closely-related situations it must NOT fire for,
  • the ordered steps, with the concrete commands/tools used.

If the procedure is ambiguous or was not actually completed successfully, ask before writing — a vague or unverified procedure is worse than none.

3. Author the procedure node

Write the node per the convention below. The description is the primary text embedded for retrieval, so it must be rich and discriminative. The body steps feed keyword search and the auto-memory embedding source.

Procedure-node convention — $AUTOMEM/procedures/<slug>.md:

---
id: <ULID>            # REQUIRED — generate via: python3 "$DEUS_HOME/scripts/memory_tree.py"  (mt.make_id())
                      # without an id:, the tree builder silently skips the file
kind: procedure       # routes to atom_kind=procedure; no schema change
type: procedure
title: <imperative title — what the procedure accomplishes>
description: >
  <one imperative sentence: what it does>. Use when <trigger situation>.
  NOT for <negative scope — the close-but-different cases it must not fire for>.
updated: <YYYY-MM-DD>
# Do NOT add ttl_days — its absence keeps the procedure durable (never GC-archived).
---

## Steps

1. <step with the concrete command/tool>
2. ...

Generate the ULID with:

DEUS_HOME=$(deus root) || { echo "deus not on PATH" >&2; exit 1; }
python3 -c "import sys; sys.path.insert(0,'$DEUS_HOME/scripts'); import memory_tree as mt; print(mt.make_id())"

Pick a short hyphenated <slug> from the title.

3.5 — Dual-warden pre-review (required)

Before the approval gate, vet the drafted node with two INDEPENDENT reviewers and surface every verdict at step 4. The lenses are orthogonal: one judges whether the node is needed, the other whether it is well-formed as recalled context. Both are ADVISORY — they inform the human's keep/revise/abandon call and do NOT write the warden verdict store. Dispatch all three reviews CONCURRENTLY (the result-skeptic Agent call and the two codex_warden Bash calls are independent tool calls; order does not matter).

  1. Relevancy — result-skeptic (Opus). Is this worth persisting at all? Checks redundancy with an existing skill/convention, single-incident overreach, and the enforcement-vs-recall layer mismatch (a behavior that should be enforced by a skill or hook does not belong in a recall-gated advisory node). Opus, because the keep/kill call is nuanced judgment. Pass the rendered node AND the task/session context that motivated capturing it: `Agent(subagent_type="result-skeptic", model="
Полный SKILL.md на GitHub

Установить learn-procedure в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл learn-procedure?

Capture a repeatable task procedure from the just-completed work as a durable, queryable memory node, so the steps are recalled automatically next time instead of re-derived. Triggers on "learn this procedure", "remember how to do this", "save this as a procedure", "/learn-procedure".

Как установить скилл learn-procedure?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл learn-procedure запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить learn-procedure с