← 返回
未分类 中文

Workflow Crystallizer

Analyze memory logs to detect recurring patterns and suggest automations — cron jobs, skills, or workflow shortcuts. The agent builds its own shortcuts over...
分析记忆日志,检测重复出现的模式,并建议自动化(cron 任务、技能或工作流快捷方式)。代理会逐步构建自己的快捷方式。
newageinvestments25-byte
未分类 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 419
下载
💾 0
安装
1
版本
#latest

概述

Workflow Crystallizer

Mines memory logs (memory/YYYY-MM-DD.md) for recurring patterns — repeated requests,

multi-step workflows, time-correlated tasks — and generates actionable suggestions:

cron jobs, skill drafts, workflow shortcuts, or monitoring proposals.

Unlike a one-shot "analyze my logs" prompt, this skill persists state across runs.

It remembers what it suggested, what was accepted/rejected, and only surfaces new

insights backed by real evidence.

All scripts live in scripts/ relative to this SKILL.md.


Quick Run (Full Pipeline)

cd /Users/openclaw/.openclaw/workspace/skills/workflow-crystallizer
python3 scripts/analyze_patterns.py --full | python3 scripts/generate_suggestions.py | python3 scripts/report.py --state-file state.json

This analyzes all memory files, generates suggestions, and prints a markdown report.

Incremental Run (Cached — Recommended)

cd /Users/openclaw/.openclaw/workspace/skills/workflow-crystallizer
python3 scripts/analyze_patterns.py | python3 scripts/generate_suggestions.py | python3 scripts/report.py --state-file state.json

Only processes new/modified memory files. Uses cached events from prior runs.

Managing Suggestions

Check state: python3 scripts/state.py — shows cached dates, events, suggestions.

To accept/reject/snooze: edit state.json directly. Set status to accepted,

rejected (add rejection_reason), or snoozed. Or use state.py imports.

Reset everything: python3 scripts/state.py --reset


Individual Scripts

Each script accepts --help. Key options:

  • analyze_patterns.py: --memory-dir PATH, --state-file PATH, --full, --min-confidence 0.4
  • generate_suggestions.py: --state-file PATH, --cron-path PATH, --clusters FILE
  • report.py: --state-file PATH, --output PATH, --clusters FILE, --suggestions FILE
  • state.py: (no args = inspect state), --reset (clear everything)

What It Detects

Pattern TypeEvidence NeededSuggestion Output
---------
Recurring request3+ occurrences, 2+ daysWorkflow shortcut or monitor
Multi-step workflow2+ occurrences with step similaritySkill draft
Time-correlated2+ at similar times/daysCron job definition
Already formalizedContains "cron", "automated", etc.Skipped (no suggestion)
Project (not pattern)Same entity, different actionsSkipped

See references/pattern-types.md for detailed detection logic and scoring weights.


How It Avoids Being Annoying

  • Max 3 suggestions per run — quality over quantity
  • Confidence threshold (60%) — no low-quality guesses
  • Deduplication — checks existing crons and skills before suggesting
  • Never repeats — tracks what was already suggested
  • Snooze — deferred suggestions resurface after 30 days
  • Rejected = dormant — only resurfaces at 80%+ confidence with new evidence

Scheduling

Run weekly via cron or heartbeat. Cost: ~5-10K tokens incremental, ~30K first run.

Name: Weekly Workflow Crystallizer
Schedule: 0 20 * * 0 (Sunday 8 PM ET)
Message: Run the workflow-crystallizer skill and present any new suggestions.

Troubleshooting

  • No patterns: Need 3+ days of substantive memory files
  • All filtered: Existing crons/skills already cover detected patterns
  • State corrupt: python3 scripts/state.py --reset
  • Too noisy: Increase min_confidence in state.json config

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-03-31 17:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Homelab Runbook

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

Container Update Advisor

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

Status Page Gen

newageinvestments25-byte
从JSON配置生成深色主题的静态HTML状态页面,汇总自托管服务的健康检查、ping、SSL证书和运行时间
★ 0 📥 418