File-based planning for complex tasks. Use persistent markdown files as working memory to survive context resets. Creates task_plan.md, findings.md, and progress.md. Use for any task requiring >5 tool calls, research projects, or multi-step implementations.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install planning-files或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install planning-files⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/planning-files/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: planning-with-files model: reasoning version: 3.0.0 description: > File-based planning for complex tasks. Use persistent markdown files as working memory to survive context resets. Creates task_plan.md, findings.md, and progress.md. Use for any task requiring >5 tool calls, research projects, or multi-step implementations. tags: [planning, context, workflow, manus, memory, complex-tasks] ---
Use persistent markdown files as your "working memory on disk." Based on context engineering principles from Manus.
npx clawhub@latest install planning-with-files
Treats the filesystem as persistent memory to overcome context window limitations. Three files track your state:
| File | Purpose | Update Frequency | |------|---------|-----------------| | task_plan.md | Phases, progress, decisions | After each phase | | findings.md | Research, discoveries, decisions | After ANY discovery | | progress.md | Session log, test results, errors | Throughout session |
Use for:
Skip for:
Keywords: complex task, multi-step, research, build project, create application, plan, organize
Context Window = RAM (volatile, limited)
Filesystem = Disk (persistent, unlimited)
→ Anything important gets written to disk.
Before starting ANY complex task, create all three files in your project root:
task_plan.md — Copy from templates/task_plan.mdfindings.md — Copy from templates/findings.mdprogress.md — Copy from templates/progress.mdFollow these rules during execution:
The 2-Action Rule: > After every 2 view/browser/search operations, IMMEDIATELY save findings to text files.
Visual/multimodal content doesn't persist — write it down before it's lost.
Read Before Decide: Before major decisions, read your plan file. This keeps goals in your attention window after many tool calls.
Update After Act: After completing any phase:
in_progress → completeLog ALL Errors: Every error goes in the plan file. This prevents repetition.
The 3-Strike Protocol:
ATTEMPT 1: Diagnose & Fix
→ Read error carefully
→ Identify root cause
→ Apply targeted fix
ATTEMPT 2: Alternative Approach
→ Same error? Try different method
→ Different tool? Different library?
→ NEVER repeat exact same failing action
ATTEMPT 3: Broader Rethink
→ Question assumptions
→ Search for solutions
→ Consider updating the plan
AFTER 3 FAILURES: Escalate to User
→ Explain what you tried
→ Share the specific error
→ Ask for guidance
Critical: if action_failed: next_action != same_action
Use the 5-Question Reboot Test. If you can answer these, your context is solid:
| Question | Answer Source | |----------|---------------| | Where am I? | Current phase in task_plan.md | | Where am I going? | Remaining phases | | What's the goal? | Goal statement in plan | | What have I learned? | findings.md | | What have I done? | progress.md |
| Situation | Action | Reason | |-----------|--------|--------| | Just wrote a file | DON'T read | Content still in context | | Viewed image/PDF | Write findings NOW | Multimodal → text before lost | | Browser returned data | Write to file | Screenshots don't persist | | Starting new phase | Read plan/findings | Re-orient if context stale | | Error occurred | Read relevant file | Need current state to fix | | Resuming after gap | Read all planning files | Recover state |
When starting a new session, check for previous work:
# Check if planning files exist
ls task_plan.md findings.md progress.md 2>/dev/null
# If they exist, read them all before continuing
cat task_plan.md findings.md progress.md
If planning files exist from a previous session:
git diff --stat to see what changedCopy these to start:
Helper scripts for automation:
scripts/init-session.sh — Initialize all planning filesscripts/check-complete.sh — Verify all phases complete| Don't | Do Instead | |-------|------------| | Use TodoWrite for persistence | Create task_plan.md file | | State goals once and forget | Re-read plan before decisions | | Hide errors and retry silently | Log errors to plan file | | Stuff everything in context | Store large content in files | | Start executing immediately | Create plan file FIRST | | Repeat failed actions | Track attempts, mutate approach | | Create files in skill directory | Create files in your project |
安装 Planning With Files 后,可以对 AI 说这些话来触发它
Help me get started with Planning With Files
Explains what Planning With Files does, walks through the setup, and runs a quick demo based on your current project
Use Planning With Files to file-based planning for complex tasks
Invokes Planning With Files with the right parameters and returns the result directly in the conversation
What can I do with Planning With Files in my documents & notes workflow?
Lists the top use cases for Planning With Files, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/planning-files/ 目录(个人级,所有项目可用),或 .claude/skills/planning-files/(项目级)。重启 AI 客户端后,用 /planning-files 主动调用,或让 AI 根据上下文自动发现并使用。
Planning With Files 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Planning With Files 可免费安装使用。请查阅仓库了解许可证信息。
File-based planning for complex tasks. Use persistent markdown files as working memory to survive context resets. Creates task_plan.md, findings.md, and progress.md. Use for any task requiring >5 tool calls, research projects, or multi-step implementations.
Planning With Files 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Planning With Files
Identifies repetitive steps in your workflow and sets up Planning With Files to handle them automatically