procedural-memory

Extract recurring multi-step procedures from episodic traces into a procedural DAG.

Updated Apr 20, 2026
One-click install
npx skills add https://github.com/thistleknot/skills --skill procedural-memory
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: procedural-memory
Source: https://github.com/thistleknot/skills/tree/main/procedural-memory
Command: npx skills add https://github.com/thistleknot/skills --skill procedural-memory

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Procedural-memory automatically turns raw episodic traces into reusable, verifiable procedures so an agent can recall and execute multi-step workflows without manual curation.

Core Features & Use Cases

  • Procedure extraction from episodic traces: mines recurring ordered action patterns from continuity logs, transcripts, or execution traces.
  • LLM-based knowledge verification: filters frequent patterns into high-quality procedural candidates using an explicit scoring rubric.
  • Procedural DAG construction with dual-indexing: builds START→steps→GOAL graphs and generates both goal-level and step-level embedding indexes for retrieval.
  • Incremental EMA updates: updates index vectors and transition statistics as new experiences arrive while reducing catastrophic forgetting.
  • Hybrid retrieval via neural + symbolic queries: supports semantic discovery (by goal/step similarity) and structured DAG queries (prerequisites, next steps, alternative paths).

Quick Start

Use procedural-memory to extract and index recurring workflows from your session execution traces, then query the resulting procedural DAG for the steps required to reach a goal.

Frequently Asked Questions about procedural-memory

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract reusable procedures from execution traces to automate recurring workflows?

To extract reusable procedures from execution traces, you need to mine frequent ordered action patterns using sequential pattern mining and verify them with an LLM scoring rubric before committing them to a procedural DAG. This turns raw episodic data into structured workflows.

What is sequential pattern mining for procedural memory and how does it work?

Sequential pattern mining for procedural memory identifies recurring ordered action sequences within episodic traces. It uses algorithms like PrefixSpan to discover frequent patterns, which are then scored by an LLM to filter for high-quality procedural candidates before DAG construction.

How do I query a procedural DAG to find prerequisite steps and alternative paths to a goal?

You query a procedural DAG using hybrid retrieval that combines neural discovery via goal-level and step-level embedding indexes with symbolic DAG traversal. This supports requesting specific prerequisites, next steps, or alternative paths to reach a desired goal.

Can I incrementally update procedural memory from new logs without catastrophic forgetting?

You can incrementally update procedural memory from new logs without catastrophic forgetting by using incremental EMA updates. This method continuously adjusts index vectors and probabilistic DAG edge statistics as new experiences arrive, preserving previously learned workflows.

Does knowledge verification filter out incorrect workflows before adding them to the procedural DAG?

Knowledge verification filters out incorrect workflows before DAG insertion by applying an explicit LLM-based scoring rubric to mined sequential patterns. This ensures only high-quality, verified procedural candidates are committed to the graph.

What is the best way to learn multi-step procedures from agentic logs and continuity logs?

The best way to learn multi-step procedures from agentic logs is to apply sequential pattern mining to extract recurring workflows, verify them with LLM scoring, and index them in a dual-index procedural DAG for later neural and symbolic retrieval.