planning-with-files
by @yingcd
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...
clawhub install planning-with-files-from-githubπ About This Skill
name: planning-with-files description: "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 5 tool calls. Triggers: 'plan this', 'start planning', 'help me build', 'research and implement', 'complex task', '/plan'." metadata: { "openclaw": { "emoji": "π", "version": "1.0.0", "author": "shannon/openclaw-port" } }
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
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 ""
2. Fill in the ## Goal section in task_plan.md with the full task description.
3. Break the task into 3β7 phases and add them under ## Phases.
4. 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)
findings.md β Knowledge store
progress.md β Session log
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
| Trigger | File to update | Section | |---------|---------------|---------| | Start task | task_plan.md | Goal + Phases | | 2nd research op | findings.md | Key Findings | | Make decision | findings.md | Technical Decisions | | Phase done | task_plan.md | Phase status β complete | | Phase done | progress.md | Phase summary | | Error | task_plan.md | Errors table | | Test result | progress.md | Test Results |
Error Recovery Protocol
ATTEMPT 1: Diagnose & Fix
β Read error carefully β identify root cause β targeted fixATTEMPT 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
task_plan.md