← 返回
未分类 中文

Weekly Retro

Weekly retrospective that analyzes memory logs to identify accomplishments, recurring patterns, friction points, and forward-looking recommendations. More st...
每周回顾:分析记忆日志,识别成就、重复模式、摩擦点,并提出前瞻性建议。还有更多…
newageinvestments25-byte
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 358
下载
💾 0
安装
1
版本
#latest

概述

Weekly Retro

Generate a strategic weekly retrospective from memory log files.

Quick Start

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

Pipeline

StepScriptInputOutput
-----------------------------
1. Gathergather_week.pymemory/*.md filesStructured JSON (per-day + aggregated)
2. Analyzeanalyze.pyGathered JSONPattern analysis JSON
3. Reportretrospective.pyAnalysis JSONMarkdown retrospective

Scripts

gather_week.py

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 file

analyze.py

Detect patterns from gathered data. Reads JSON from stdin.

Identifies:

  • Accomplishments (shipped, published, fixed, built)
  • Recurring themes (topics appearing 3+ days)
  • Repeated failures and friction points
  • Time sinks (disproportionate attention)
  • Unfinished threads (started but not completed)
  • Work schedule patterns (time-of-day distribution)
python3 scripts/gather_week.py ... | python3 scripts/analyze.py

Options:

  • --history-file PATH — Path to retro history for longitudinal comparison

retrospective.py

Generate the markdown retrospective. Reads analysis JSON from stdin.

Sections:

  • Week at a Glance (3-sentence summary)
  • Wins (with evidence)
  • Patterns (recurring topics, toolchain, work schedule, attention distribution)
  • Friction Points (with recurrence flags)
  • Unfinished Business (carry-forward items)
  • Recommendations (2-3 actionable changes for next week)
  • Week Score (1-10 with justification)
python3 scripts/analyze.py ... | python3 scripts/retrospective.py --output PATH

Options:

  • --output PATH — Write to file instead of stdout
  • --no-frontmatter — Skip YAML frontmatter

history.py

Track 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 directory

Cron Integration

Schedule 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/."
  }
}

Output

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.

Dependencies

Python standard library only. No external packages required.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-31 18:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Homelab Runbook

newageinvestments25-byte
扫描并记录本机所有运行中的服务 — Docker 容器、系统服务(launchd/systemd)以及开放的监听端口,生成可读的文档。
★ 0 📥 435

Container Update Advisor

newageinvestments25-byte
检查正在运行的 Docker 容器,查找更新的镜像版本,生成优先级更新报告。获取发行说明,标记破坏性变更与安全更新。
★ 0 📥 432

Workflow Crystallizer

newageinvestments25-byte
分析记忆日志,检测重复出现的模式,并建议自动化(cron 任务、技能或工作流快捷方式)。代理会逐步构建自己的快捷方式。
★ 0 📥 437