Install
openclaw skills install @djc00p/chat-learnings-extractorExtract structured learnings (lessons, decisions, patterns, dead ends) from AI conversation exports using a local Ollama model or any OpenAI-compatible API. Pairs with chat-history-importer. Trigger phrases: extract learnings from conversations, analyze chat exports, mine conversation insights, extract lessons from chats, chat learnings extractor.
openclaw skills install @djc00p/chat-learnings-extractorExtract structured learnings (lessons, decisions, patterns, dead ends) from exported AI conversations using either a local Ollama model or any OpenAI-compatible API. This skill is designed to work with exports from OpenAI and Anthropic, and pairs well with the chat-history-importer skill for a complete conversation analysis workflow.
This skill reads private conversation exports and writes model-generated output into your agent's persistent memory. Treat both directions as sensitive.
--dry-run and read the output before letting
it write anything to memory.http://127.0.0.1:11434 on loopback, so export contents never leave your machine.OPENAI_API_KEY is set, conversation
content and the API key are sent to the configured endpoint. Only set
OPENAI_BASE_URL to a trusted HTTPS provider you control.--dir and --since so you import only what you intend.See references/model-modes-and-categories.md for the OpenAI-compatible API setup and the full extraction category list.
Configuration, model modes, and the full output format are documented in references/model-modes-and-categories.md.
python3 scripts/extract.py --dir /path/to/exports --limit 3 --dry-run
python3 scripts/extract.py --file single-conversation.json
python3 scripts/extract.py --dir /path/to/exports --since 2026-04-01
chat-history-importer skill).processed_ids file (skip already-processed chats)memory/semantic/learnings-from-exports.mdThis skill pairs with chat-history-importer:
chat-history-importer to ingest raw conversations into episodic memory (memory/episodic/YYYY-MM-DD.md)memory/semantic/learnings-from-exports.md)This workflow keeps raw conversation logs separate from actionable insights, enabling better knowledge organization.
--dir DIR — Process all JSON files in directory--file FILE — Process single file--limit N — Process only first N conversations (useful for testing or limiting API costs)--since YYYY-MM-DD — Skip conversations before this date--model MODEL — Override default model name--dry-run — Print output without writing to disk or updating dedup statereferences/model-modes-and-categories.md — Configuration, model modes, output formatreferences/prompt-template.md — The extraction prompt sent to the modelscripts/extract.py — Main script (reuses parsers from sibling skill).processed_ids to avoid re-processingOPENCLAW_WORKSPACE env var, falls back to ~/.openclaw/workspace