memory-extract

Extract and classify memories from session logs into structured JSON output.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/leonardofhy/openclaw-workspace --skill memory-extract
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: memory-extract
Source: https://github.com/leonardofhy/openclaw-workspace/tree/main/skills/memory-extract
Command: npx skills add https://github.com/leonardofhy/openclaw-workspace --skill memory-extract

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Automate extraction and consolidation of memories from session logs and notes, reducing manual curation and helping maintain a clean memory surface.

Core Features & Use Cases

  • Automatic memory extraction: scans agent session logs for decision, correction, and milestone signals, classifies memories into user, feedback, project, research, reference, or people, and outputs candidate memories for review.
  • Memory consolidation and archiving: deduplicates content across topics and daily notes, flags outdated items, archives stale memories to memory-full.md, and tracks budgets for topic files.
  • Daily-note fallback and scheduling: supports fallback to daily notes when session logs are unavailable and suggests cron-like scheduling for regular extractions and consolidations.

Quick Start

Run python3 scripts/extract_memories.py to extract memories from today's session logs, then run python3 scripts/consolidate_memories.py to generate a consolidation report and apply archival rules.

Frequently Asked Questions about memory-extract

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

FAQPage Schema
How do I automate memory extraction from agent session logs?▼

Memory extraction scans agent session logs for decision and milestone signals, classifies them into user, project, or research types, and outputs candidate memories to a structured JSON file for review.

What is the best way to deduplicate and consolidate daily notes?▼

The best way to deduplicate daily notes is running a consolidation script that flags outdated items, archives stale content, and tracks budget limits for topic files.

Can I extract memories when session logs are unavailable?▼

Yes, memory extraction supports a daily-note fallback mechanism that processes daily notes when session logs are unavailable, ensuring continuous memory consolidation.

Does memory consolidation support dry-run and verbose modes?▼

Yes, memory consolidation supports dry-run, force, and verbose modes alongside gates and a lock mechanism, allowing you to preview reports and control archival behavior before modifying memory files.

How do I schedule regular memory extraction and consolidation?▼

You can schedule regular memory extraction and consolidation using cron-like scheduling to automate the scripts, ensuring session logs and topic files are processed consistently.