Install
openclaw skills install pulseflowMaintain a Markdown task dashboard with append-only AI work logs, syncing daily AI DONE TODAY and weekly usage panels via heartbeat or on-demand refresh.
openclaw skills install pulseflowBuild and operate a simple task system with one human-facing dashboard file and one append-only AI log flow.
Use one current dashboard file as the source of truth for active work.
AI USAGE THIS WEEKFOCUS, TODAY, UP NEXT, DONEAI DONE TODAYUse these files and keep their roles strict:
todo/NOW.md — current dashboardtodo/history/YYYY-MM.md — monthly archivetodo/system/config.json — installation-specific paths and agent listtodo/system/sync-state.json — last processed offsets/checkpointsreports/<agent>-ai-log-YYYY-MM-DD.jsonl — append-only per-agent daily work logsWhen setting up a new installation:
todo/, todo/history/, and todo/system/todo/NOW.md from the dashboard template in references/now-template.mdtodo/history/<current-month>.md from references/history-template.md if missingtodo/system/config.json from references/config-template.jsontodo/system/sync-state.json from references/sync-state-template.jsonagentsFilePath per agenttodo/NOW.mdAGENTS.md filesnotifications.summaryCrons in config and run scripts/install_summary_crons.jsEach agent must append one JSON object per completed work unit to its own daily JSONL log.
Required fields:
ts — ISO timestamp with timezoneagent — agent nametask — one-line work summarytokens — optional integer token count for that work unit; may be 0 or omittedExample line:
{"ts":"2026-04-05T14:10:00+08:00","agent":"main","task":"完成量化交易系统回测模块初版","tokens":12000}
Rules:
todo/NOW.md directly from agentsOn heartbeat or explicit refresh:
todo/system/config.jsontodo/system/sync-state.jsonAI USAGE THIS WEEKAI DONE TODAY section from the log contents for todaytodo/NOW.mdtodo/system/sync-state.jsonImportant:
Keep the dashboard simple and stable.
Top usage section:
## AI USAGE THIS WEEKDate / Total Tokens / Input / Output / Cache / Hit RateHuman task sections:
## FOCUS## TODAY## UP NEXT## DONEAI section:
## AI DONE TODAY<agent>: <task>At end of day or next-day rollover:
todo/history/YYYY-MM.mdAI Usage Daily Summary block with finalized per-day usage rowsAI Usage Weekly Summary table per visible week blockDONE in todo/NOW.mdAI DONE TODAY for the new day on first syncAI USAGE THIS WEEK for the new current weekFOCUS and unfinished TODAY into the new day's TODAYUP NEXT unchangedFOCUS to an empty placeholderscripts/append_ai_log.js — appends one JSONL AI work record to today's per-agent logscripts/install_agent_log_rules.js — installs or updates managed AI log rule blocks in configured AGENTS.md filesscripts/install_summary_crons.js — optionally installs or updates template-driven notification cron jobs from notifications.summaryCrons in config; these jobs supplement rollover and do not replace itscripts/init_system.js — creates missing dashboard, history, config, state files, today's empty AI logs, and installs managed agent log rules when configured; it does not install cron jobs by defaultscripts/repair_system.js — repairs missing runtime files without overwriting healthy onesscripts/rollover_now.js — daily rollover script; archives yesterday's human done + AI snapshot into a week-grouped month file, updates that week's AI Usage Weekly Summary, clears DONE, resets AI DONE TODAY, carries unfinished tasks forward, and updates rollover-state.jsonscripts/sync_ai_done.js — deterministic sync script for heartbeat or manual refresh; reads config, queries weekly usage, scans today's agent JSONL logs, rebuilds AI USAGE THIS WEEK plus AI DONE TODAY, and updates sync statescripts/validate_system.js — runs a local end-to-end validation covering init, sync, repair, rollover, and rollover idempotencyRun rollover with:
node <skill-dir>/scripts/rollover_now.js
Recommended scheduler:
00:15 Asia/ShanghaiRun with:
node <skill-dir>/scripts/sync_ai_done.js
Optional config override:
AI_WORKLOG_CONFIG=/path/to/config.json node <skill-dir>/scripts/sync_ai_done.js
Validation:
node <skill-dir>/scripts/validate_system.js
Install or refresh agent rules:
AI_WORKLOG_CONFIG=/absolute/path/to/todo/system/config.json node <skill-dir>/scripts/install_agent_log_rules.js
Optionally install or update summary cron jobs after filling notifications.summaryCrons in config:
AI_WORKLOG_CONFIG=/absolute/path/to/todo/system/config.json node <skill-dir>/scripts/install_summary_crons.js
Review the planned cron changes first with:
AI_WORKLOG_CONFIG=/absolute/path/to/todo/system/config.json node <skill-dir>/scripts/install_summary_crons.js --dry-run
Recommended production invocation:
AI_WORKLOG_CONFIG=/absolute/path/to/todo/system/config.json node <skill-dir>/scripts/sync_ai_done.js
Read these files as needed:
references/now-template.md — base dashboard templatereferences/history-template.md — monthly archive templatereferences/config-template.json — install config shape, including optional summary-cron settingsreferences/sync-state-template.json — sync checkpoint shapereferences/agent-log-format.md — log schema and examplesreferences/heartbeat-checklist.md — heartbeat operating checklistreferences/midday-summary-template.md — optional 15:30 summary structurereferences/daily-close-template.md — optional 00:05 previous-day report structure, intended to run before rolloverdocs/portability.md — env overrides, installation assumptions, and optional cron-install notesWhen asked to initialize, produce or update the installation files only. When asked to sync, update only the AI-derived sections and sync state unless the user asks for more. When asked to design or migrate, keep the system minimal and reusable; avoid installation-specific assumptions outside config.json.
The JavaScript runtime is the only supported implementation.