← 返回
开发者工具 中文

planning-with-files

This skill should be used when the user asks to start a complex task, research project, multi-step implementation, or any task expected to require more than...
此技能应在用户请求启动复杂任务、研究项目、多步骤实现或任何预计需要超过...的任务时使用。
yingcd yingcd 来源
开发者工具 clawhub v1.0.0 1 版本 99890 Key: 无需
★ 0
Stars
📥 908
下载
💾 106
安装
1
版本
#latest

概述

Planning with Files

Manus-style persistent markdown planning. Filesystem = long-term memory. Context window = working RAM.

Core Principle

Context Window = RAM (volatile, limited)
Filesystem     = Disk (persistent, unlimited)
→ Anything important MUST be written to disk.

When to Use

  • Multi-step tasks (3+ phases or 5+ tool calls)
  • Research + implementation tasks
  • Tasks that span multiple sessions
  • Any task where goal-drift is a risk

Skip for: single-file edits, quick lookups, simple questions.

Session Start Protocol

ALWAYS do this first — no exceptions:

  1. Run the init script to create the three planning files:

```

exec: bash {baseDir}/scripts/init-session.sh ""

```

  1. Fill in the ## Goal section in task_plan.md with the full task description.
  2. Break the task into 3–7 phases and add them under ## Phases.
  3. Confirm files exist before proceeding.

If exec is not available, create the three files manually using the templates in {baseDir}/templates/.

The Three Files

task_plan.md — Goal tracker (MOST IMPORTANT)

  • Created at session start, never deleted
  • Re-read before every major decision
  • Update when: phase completes, decision made, error encountered

findings.md — Knowledge store

  • Research results, discoveries, technical decisions
  • 2-Action Rule: after every 2 view/search/fetch operations → update findings.md immediately

progress.md — Session log

  • Actions taken, test results, errors encountered
  • Append-only; never rewrite history

Work Loop

BEFORE every major action:
  → Re-read task_plan.md (keeps goal in attention)

EVERY 2 view/search/fetch operations:
  → Save key findings to findings.md NOW

AFTER completing a phase:
  → Update phase status in task_plan.md to "complete"
  → Append phase summary to progress.md

WHEN an error occurs:
  → Log it in task_plan.md under ## Errors table
  → Never repeat the same failing action

BEFORE stopping:
  → Run: exec bash {baseDir}/scripts/check-complete.sh
  → Only stop if all phases show "complete"

File Update Rules

TriggerFile to updateSection
---------------------------------
Start tasktask_plan.mdGoal + Phases
2nd research opfindings.mdKey Findings
Make decisionfindings.mdTechnical Decisions
Phase donetask_plan.mdPhase status → complete
Phase doneprogress.mdPhase summary
Errortask_plan.mdErrors table
Test resultprogress.mdTest Results

Error Recovery Protocol

ATTEMPT 1: Diagnose & Fix
  → Read error carefully → identify root cause → targeted fix

ATTEMPT 2: Alternative Approach
  → Same error? Try different tool/library/method
  → NEVER repeat the exact same failing action

ATTEMPT 3: Broader Rethink
  → Question assumptions → search for solutions → update plan

AFTER 3 FAILURES:
  → Escalate to user: explain what was tried, share the error, ask for guidance

Completion Verification

Before telling the user the task is done:

  1. Run exec bash {baseDir}/scripts/check-complete.sh
  2. If any phase is NOT "complete" → continue working
  3. Only deliver result when all phases are checked off

Session Recovery

If context was cleared (e.g., /clear), resume by:

  1. Reading task_plan.md to restore goal and phase status
  2. Reading progress.md to see what was done
  3. Reading findings.md to restore research context
  4. Continuing from the first incomplete phase

Key Principles

  • Plan is Required: Never start a complex task without task_plan.md
  • Files are Memory: Context is volatile. Filesystem is permanent. Write important things down.
  • Never Repeat Failures: Track what was tried. Mutate the approach.
  • Error Recovery = Agentic Behavior: How you handle failures defines task quality.
  • Re-read Before Deciding: Attention manipulation — keep the goal visible.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 21:58 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,086 📥 814,228
ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,385 📥 320,936
ai-agent

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,232 📥 268,219