← 返回
未分类 中文

Proactive-Do

Proactive todo execution, heartbeat-driven review, and structured follow-up for a markdown todo system. Use when the agent needs to review `todo/todo.md`, pi...
主动执行待办事项,基于心跳机制定期审查,并对Markdown待办系统进行结构化跟进。适用于代理需要审查`todo/todo.md`时使用。
hyharry
未分类 clawhub v0.1.1 1 版本 99807.7 Key: 无需
★ 0
Stars
📥 519
下载
💾 2
安装
1
版本
#latest

概述

Proactive-Do

A lightweight workflow for proactive execution of a human's todo list with recurring reviews, clear state labels, structured documentation, and concise reporting.

Quick start

1) Source of truth

  • Todos live in todo/todo.md, grouped by date headings (e.g., "## YYYY-MM-DD").
  • Items are bullets with a state label: "- [new] ..., - [wip] ..., - [done] ...".
  • Only these three states are valid.
  • Strict preservation rule: never delete existing todo items from todo/todo.md automatically. You may append new items and revise existing items in place (for example, changing only the state label or updating the text of the same line), but you must not remove lines/items unless the owner/requester explicitly asks for deletion.

2) Initialize phase (install-time only; do not run on every review)

  • Run these setup actions when the skill is first installed or first adopted in a workspace, not during each 3h review or 2.5h follow-up.
  • Ensure these paths exist; create them if missing:
  • todo/
  • todo/todo.md
  • agent_work/
  • agent_work/heartbeat_emails/
  • agent_work/proactive-do/
  • If todo/todo.md does not exist, create it with a minimal starter structure:
  • a top-level heading or today's date section ("## YYYY-MM-DD")
  • If agent_work/proactive-do/delivery_prefs.md is referenced later but missing, do not fail; create the parent folder and continue with fallback behavior per notification policy.
  • Initialization must be non-destructive: create missing paths only, do not remove or overwrite existing content.

3) Cadence (recommended)

2) Cadence (recommended)

  • Every 3 hours: scan all [new] items and pick the top 3 to address this pass (leave the rest for later) to reduce load.
  • Every 2.5 hours: reconcile what was worked on; mark [done] if finished, else [wip] with a one-line reason + next action.
  • Use OpenClaw cron to schedule system events that trigger these reviews (see Cron payloads below).

3) Decision policy

  • If a selected [new] item appears doable within ~1 hour: do it now during the 3h review.
  • If it likely needs >1 hour: write a simple, structured plan (steps + rough time estimate) and leave the item [new] until kickoff; when starting work, flip to [wip].
  • If assistance/approval is needed: halt, report to the owner/requester, and wait.
  • Search online when needed.
  • If blocked twice on the same point: stop, record the failure and next step, mark [wip], and report.

4) Selection heuristics (for "top 3")

Default ranking when not specified by the owner/requester:

1) Explicit priority hints in the text (e.g., "priority: high"),

2) Fit for ≤1 hour (quick wins first),

3) Recency/clarity of the item.

When in doubt, take the first three [new] items in file order.

5) Per-task journal (agent_work/)

  • When beginning work on an item: create a folder agent_work/YYYY-MM-DD_HHMM_nickname.
  • Inside, maintain a running log: start time, linked todo text, decisions, commands, files created, errors, attempts, results.
  • For harder tasks include a small plan with time estimate and critical steps.
  • Place any generated files/documents inside this folder.

6) Reporting

  • Every report must name the todo/project it concerns.
  • For ≤1h tasks done now: include Result, Key steps, and any links to outputs.
  • For >1h tasks: include Plan (steps + estimate), Current status ([new|wip]), and where the journal folder lives.

Categorization policy

When the owner/requester says "add a todo":

  • Assign exactly one primary category from: quick search | setup | prototype | try out | learn | write.
  • Add one generation tag: code | no-code.
  • Append to todo/todo.md (today's section) using:
  • "- [new] — <short description> [category: <category>; gen: <code|no-code>]"</li><li>Update prioritization: quick search/setup tend to be picked more often; prototype/try out medium; learn/write lower for push.</li><li>Persist this behavior in the local workspace policy/memory files when that is appropriate for the environment.</li></ul><h2>Notification delivery (heartbeat)</h2><ul><li>Prefer email over chat for heartbeat notifications.</li><li>Send email via gog CLI (Gmail / Google Workspace CLI) when it is available.</li><li>Resolve sender, recipient, and fallback behavior from a local preference file when present:</li><li><code>agent_work/proactive-do/delivery_prefs.md</code></li><li>If no preference file exists, ask once for delivery settings or use the current chat as a temporary fallback.</li><li>Start email (at 3h review start):</li><li>Subject: "[assistant] start doing on 3 todos + <abbr>" (abbr = short names of the 3 todos)</li><li>Body: full text of the 3 selected todos; concise (≈2-minute read)</li><li>Follow-up email (at 2.5h reconciliation):</li><li>Subject: "[assistant] finish 3 todos + <abbr>" (same abbr)</li><li>Body: brief summary of what was done, results, failures, and done/not-done per task (≈2-minute read)</li><li>Archive a copy of each email under <code>agent_work/heartbeat_emails/</code>.</li><li>Keep local preferences out of the published skill package unless they are intentionally shared.</li></ul><h2>3h Review — Execution flow</h2><p>1) Parse todo/todo.md for the latest date section and list all items marked [new].</p><p>2) Rank candidates using the selection heuristics and pick the top 3 for this pass.</p><p>3) For each of the top 3:</p><ul><li>Estimate difficulty/time. If ≤1h:</li><li>Flip to [wip], create agent_work folder, execute.</li><li>On success, flip to [done] and report.</li><li>If blocked twice, keep [wip], record why + next action, and report.</li><li>If >1h:</li><li>Draft a short plan (steps + estimate), store it in agent_work folder template (can be pre-created without kickoff), and report.</li></ul><p>4) Summarize what was done/planned, referencing the todo lines.</p><p>5) Notification: send the Start email using gog CLI per the template above.</p><h2>2.5h Follow-up — Reconciliation flow</h2><p>1) Review items touched in the last 2.5h (from your journal and recent edits).</p><p>2) If finished: mark [done] and report the completion.</p><p>3) If not yet finished: ensure [wip] with a one-line reason and next action; update the journal accordingly; report.</p><p>4) Notification: send the Finish email using gog CLI per the template above.</p><h2>Cron payloads (copy/paste)</h2><ul><li>3h review payload text:</li></ul><p> "Heartbeat: review todo/todo.md for [new] items. Pick the top 3 to act on this pass. For each selected [new]: if ≤1h, do it now and report; if >1h, draft a simple plan with estimate and report. Maintain agent_work/ journals and include the todo/project name in every report. Deliver the start report by email per the proactive-do skill notification policy."</p><ul><li>2.5h follow-up payload text:</li></ul><p> "Follow-up heartbeat: review all work performed in the past 2.5h. For each task, if completed mark [done]; else mark [wip] with a one-line reason and next action. Report the changes and reference the related todo/project. Deliver the finish report by email per the proactive-do skill notification policy."</p><h2>File conventions</h2><ul><li>Todo file: todo/todo.md (single source of truth; preserve all existing items, do not delete automatically)</li><li>States: [new], [wip], [done] (no other labels)</li><li>Date sections: markdown H2 "## YYYY-MM-DD"</li><li>Agent journals: agent_work/YYYY-MM-DD_HHMM_nickname/</li><li>journal.md — running log (start time, intent, steps, errors, outputs)</li><li>plan.md — for >1h tasks (steps + estimate + critical steps)</li><li>outputs/ — any artifacts created</li></ul><h2>Heuristics for "≤1 hour"</h2><ul><li>Low external dependencies; small scope; familiar stack; no required approvals.</li><li>Examples: formatting/rewording docs, light scripting/automation, small data tidying, basic research + short writeup.</li><li>If uncertain, default to plan-first and request clarification.</li></ul><h2>Safety / escalation</h2><ul><li>Halt and report for any action requiring explicit approval or external messaging on behalf of the owner/requester.</li><li>Never loop indefinitely. Two failed attempts on the same blocker → stop, label [wip], report.</li><li>Always include the todo/project name and journal path in reports.</li></ul><h2>Templates and helpers</h2><ul><li>See references/templates.md for copy/paste templates:</li><li>agent_work journal.md</li><li>agent_work plan.md</li><li>Report blocks for "done" and "plan" updates</li></ul><h2>Notes</h2><ul><li>Keep SKILL.md lean; store verbose templates in references/.</li><li>Prefer fewer larger edits to files (respect rate limits and avoid tight loops when writing externally).</li></ul></div> </div> </div> <div id="tab-versions" class="detail-content"> <div class="detail-section"> <h2>版本历史</h2> <p style="margin-bottom:12px;font-size:14px;color:#94a3b8;">共 1 个版本</p> <ul class="version-list"> <li> <div> <span class="version-tag">v0.1.1</span> <span style="font-size:11px;color:#5b6abf;margin-left:8px;background:#eef0ff;padding:1px 8px;border-radius:10px;">当前</span> </div> <div style="font-size:12px;color:#94a3b8;"> 2026-03-30 15:20 安全 安全 </div> </li> </ul> </div> </div> <div id="tab-security" class="detail-content"> <div class="detail-section"> <h2>安全检测</h2> <div class="sec-grid"> <div class="sec-card"> <h4>腾讯云安全 (Keen)</h4> <div class="sec-status sec-safe"> 安全,无风险 </div> <a href="https://tix.qq.com/search/skill?keyword=14357d8145309b7c264644ca7b8e973d" target="_blank">查看报告</a> </div> <div class="sec-card"> <h4>腾讯云安全 (Sanbu)</h4> <div class="sec-status sec-safe"> 安全,无风险 </div> <a href="https://static.cloudsec.tencent.com/html-report-v2/2026/05/25/415999_6c802f0f1ff614277f46f2afabf85a54.html?q-sign-algorithm=sha1&q-ak=AKID8JMG1bzBC1dz96qNhssfFftujT1NCoFi&q-sign-time=1781224809%3B1812760809&q-key-time=1781224809%3B1812760809&q-header-list=host&q-url-param-list=&q-signature=32d58d9e57ea0dd68f17e5c7a45b538e46016023" target="_blank">查看报告</a> </div> </div> </div> </div> <!-- Recommended Skills --> <div style="margin-top:24px;"> <h2 style="font-size:18px;font-weight:600;margin-bottom:16px;">🔗 相关推荐</h2> <div class="rec-grid"> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;"></span> <h3><a href="/s/learned-from-ai">Learned from AI</a></h3> <div class="rec-owner">hyharry</div> <div class="rec-desc">将AI对话或草稿转化为结构化、可靠且持久的学习笔记,包括定义、核心要点、示例、推导、问答与速查表。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 0</span> <span style="color:#5b6abf;">📥 309</span> </div> </div> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;"></span> <h3><a href="/s/simple-code">Simple Code</a></h3> <div class="rec-owner">hyharry</div> <div class="rec-desc">以三种可靠模式(启动、继续、审查)规划和构建小型、可读的编码项目。先思考,制定简短计划,然后委托实现。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 1</span> <span style="color:#5b6abf;">📥 603</span> </div> </div> <div class="rec-card"> <span class="badge-cat" style="margin-bottom:8px;display:inline-block;"></span> <h3><a href="/s/easy-ci-cd">Easy CI/CD</a></h3> <div class="rec-owner">hyharry</div> <div class="rec-desc">为小型项目构建轻量级、最小化的CI/CD脚手架。当被要求添加或简化GitHub Actions、创建快速CI流水线或添加最小化配置时使用。</div> <div class="rec-stats"> <span style="color:#f39c12;">★ 0</span> <span style="color:#5b6abf;">📥 496</span> </div> </div> </div> </div> </div> <script> document.addEventListener('DOMContentLoaded',function(){ document.querySelectorAll('.detail-tab').forEach(function(btn){ btn.addEventListener('click',function(e){ var tab = this.getAttribute('data-tab'); document.querySelectorAll('.detail-tab').forEach(function(b){b.classList.remove('active')}); document.querySelectorAll('.detail-content').forEach(function(c){c.classList.remove('active')}); this.classList.add('active'); var el = document.getElementById('tab-'+tab); if(el) el.classList.add('active'); }); }); }); </script> <div class="footer"> <p>Skill工具集 © 2026</p> </div></body> </html>