Install
openclaw skills install nai-weekly-retroWeekly retrospective that analyzes memory logs to identify accomplishments, recurring patterns, friction points, and forward-looking recommendations. More strategic than a daily recap — answers 'what should change next week?' Use when: weekly retro, weekly review, what should change, how was this week, retrospective, week in review.
openclaw skills install nai-weekly-retroGenerate a strategic weekly retrospective from memory log files.
Run the full pipeline:
python3 scripts/gather_week.py --memory-dir PATH | \
python3 scripts/analyze.py | \
python3 scripts/retrospective.py --output vault/weekly-retro/YYYY-MM-DD.md
| Step | Script | Input | Output |
|---|---|---|---|
| 1. Gather | gather_week.py | memory/*.md files | Structured JSON (per-day + aggregated) |
| 2. Analyze | analyze.py | Gathered JSON | Pattern analysis JSON |
| 3. Report | retrospective.py | Analysis JSON | Markdown retrospective |
Read memory files for the past N days and extract structured data.
python3 scripts/gather_week.py --memory-dir ~/.openclaw/workspace/memory --days 7
Options:
--memory-dir PATH — Path to memory directory (default: ~/.openclaw/workspace/memory)--days N — Number of days to look back (default: 7)--end-date YYYY-MM-DD — End date (default: today)--config PATH — Config JSON fileDetect patterns from gathered data. Reads JSON from stdin.
Identifies:
python3 scripts/gather_week.py ... | python3 scripts/analyze.py
Options:
--history-file PATH — Path to retro history for longitudinal comparisonGenerate the markdown retrospective. Reads analysis JSON from stdin.
Sections:
python3 scripts/analyze.py ... | python3 scripts/retrospective.py --output PATH
Options:
--output PATH — Write to file instead of stdout--no-frontmatter — Skip YAML frontmatterTrack retrospective history for longitudinal patterns.
python3 scripts/history.py --record --analysis analysis.json
python3 scripts/history.py --show
python3 scripts/history.py --trends
Options:
--record — Record this week's analysis--analysis PATH — Analysis JSON to record--show — Show past retro summaries--trends — Show longitudinal trends--data-dir PATH — Storage directorySchedule a Sunday evening retrospective:
{
"name": "Weekly Retrospective",
"schedule": {"kind": "cron", "expr": "0 20 * * 0", "tz": "America/New_York"},
"payload": {
"kind": "agentTurn",
"message": "Run the weekly-retro skill. Gather the past 7 days of memory logs, analyze patterns, generate the retrospective, and save to vault/weekly-retro/."
}
}
The retrospective is Obsidian-compatible markdown with YAML frontmatter including date range, week score, and auto-detected tags. Designed for vault storage and long-term pattern review.
Python standard library only. No external packages required.