Install
openclaw skills install session-archiver-proExtract decisions, todos, knowledge, preferences, and risks from AI chat sessions into structured memory. Outputs Markdown, JSON, or Obsidian notes.
openclaw skills install session-archiver-proExtract structured memory from AI chat sessions. Transform raw conversation logs into organized knowledge: decisions, todos, knowledge points, user preferences, and risks.
Input: One or more session logs (plain text / .log / .json / clipboard)
↓
[1] Parse dialogue structure: user messages, assistant replies, tool calls, decision points
[2] Segment by conversation arc: problem definition → exploration → decision → action
[3] Extract 5 structured categories:
📌 Key Decisions — explicit choices/conclusions
✅ Action Items — who needs to do what by when
📚 Knowledge Points — reusable facts or insights
⭐ User Preferences — expressed likes/dislikes, style, standards
⚠️ Risks & Issues — potential problems identified
[4] Deduplicate & merge: consolidate identical or related items across sessions
[5] Generate topic tags: auto-classify each session with hierarchical tags
[6] Build cross-session graph: link related items ("this decision relates to last week's todo")
[7] Export in chosen format: Markdown report / JSON / Obsidian-compatible notes
[8] Optional: format for agent long-term memory injection
[9] Produce executive summary: 5-sentence overview for quick recall
↓
Output: Structured memory report + tag index + cross-session links + summary
"Summarize today's 3 chat sessions about the SaaS pricing model. Extract decisions, action items, and open questions."
"I have 12 sessions from the past week on our product launch. Find all decision points and create a timeline."
"From all my conversations with the code assistant, extract my coding style preferences (linting, testing, naming conventions)."
"Scan these 5 design review sessions and flag any risk signals or tensions I should revisit before finalizing."
"Archive this session about database migration planning. Output in agent-memory-injection format for my AI assistant's long-term memory."
1. Run: python3 scripts/archiver.py --file sample_session.log
2. Review the structured output in stdout (Markdown by default)
3. Use --format json for programmatic consumption
4. Use --format obsidian for note-taking integration
5. Use --dir ./sessions/ for batch processing multiple sessions
# Session Memory Report — SaaS Pricing (3 sessions)
## 📌 Key Decisions (4)
| # | Decision | Session | Impact |
|---|----------|---------|--------|
| 1 | Usage-based pricing model | Session-1 | Revenue model shift |
| 2 | Target audience: SMB (10-50 seats) | Session-1 | Product positioning |
| 3 | Free tier limit: 1K MAU | Session-2 | User acquisition funnel |
| 4 | No annual-only billing | Session-3 | Cash flow consideration |
## ✅ Action Items (6)
- [ ] Validate competitive pricing (John, by Fri)
- [ ] Conduct 5 customer interviews (Team, next week)
- [ ] Design pricing page mockup (Design, Mon)
## 📚 Knowledge Points (8)
- Industry conversion rate: 3-5% free→paid
- AWS pricing uses consumption + reservation hybrid
- Competitors all offer annual discount (15-20%)
## ⭐ User Preferences (3)
- Prefers clean, simple pricing (no feature tiers overload)
- Dislikes hidden fees or "starting at" bait-and-switch
- Wants transparent cost calculation upfront
## ⚠️ Risks (2)
- Free tier compute costs may exceed budget at scale
- Minimum commit could scare SMB segment
{
"sessions": ["session-1", "session-2", "session-3"],
"decisions": [{"text": "Usage-based pricing model","session": "session-1","tags": ["pricing","revenue-model"]}],
"knowledge_points": [{"text": "Industry conversion rate: 3-5% free→paid","source": "session-2"}]
}
python3 scripts/archiver.py --help
--file PATH Single session log file
--dir PATH Directory of session logs
--format FORMAT Output format: markdown (default), json, obsidian, memory-inject
--tags Enable auto-tagging (default: on)
--graph Enable cross-session linking (default: on)
session-archiver-pro, memory, session, archive, extract, knowledge-management, obsidian, chat-summary