Implements Manus-style file-based planning for complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls.
Add this skill
npx mdskills install sickn33/planning-with-filesComprehensive file-based planning framework with clear rules, decision matrices, and error protocols
1---2name: planning-with-files3version: "2.1.2"4description: Implements Manus-style file-based planning for complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when starting complex multi-step tasks, research projects, or any task requiring >5 tool calls.5user-invocable: true6allowed-tools:7 - Read8 - Write9 - Edit10 - Bash11 - Glob12 - Grep13 - WebFetch14 - WebSearch15hooks:16 SessionStart:17 - hooks:18 - type: command19 command: "echo '[planning-with-files] Ready. Auto-activates for complex tasks, or invoke manually with /planning-with-files'"20 PreToolUse:21 - matcher: "Write|Edit|Bash"22 hooks:23 - type: command24 command: "cat task_plan.md 2>/dev/null | head -30 || true"25 PostToolUse:26 - matcher: "Write|Edit"27 hooks:28 - type: command29 command: "echo '[planning-with-files] File updated. If this completes a phase, update task_plan.md status.'"30 Stop:31 - hooks:32 - type: command33 command: "${CLAUDE_PLUGIN_ROOT}/scripts/check-complete.sh"34---3536# Planning with Files3738Work like Manus: Use persistent markdown files as your "working memory on disk."3940## Important: Where Files Go4142When using this skill:4344- **Templates** are stored in the skill directory at `${CLAUDE_PLUGIN_ROOT}/templates/`45- **Your planning files** (`task_plan.md`, `findings.md`, `progress.md`) should be created in **your project directory** — the folder where you're working4647| Location | What Goes There |48|----------|-----------------|49| Skill directory (`${CLAUDE_PLUGIN_ROOT}/`) | Templates, scripts, reference docs |50| Your project directory | `task_plan.md`, `findings.md`, `progress.md` |5152This ensures your planning files live alongside your code, not buried in the skill installation folder.5354## Quick Start5556Before ANY complex task:57581. **Create `task_plan.md`** in your project — Use [templates/task_plan.md](templates/task_plan.md) as reference592. **Create `findings.md`** in your project — Use [templates/findings.md](templates/findings.md) as reference603. **Create `progress.md`** in your project — Use [templates/progress.md](templates/progress.md) as reference614. **Re-read plan before decisions** — Refreshes goals in attention window625. **Update after each phase** — Mark complete, log errors6364> **Note:** All three planning files should be created in your current working directory (your project root), not in the skill's installation folder.6566## The Core Pattern6768```69Context Window = RAM (volatile, limited)70Filesystem = Disk (persistent, unlimited)7172→ Anything important gets written to disk.73```7475## File Purposes7677| File | Purpose | When to Update |78|------|---------|----------------|79| `task_plan.md` | Phases, progress, decisions | After each phase |80| `findings.md` | Research, discoveries | After ANY discovery |81| `progress.md` | Session log, test results | Throughout session |8283## Critical Rules8485### 1. Create Plan First86Never start a complex task without `task_plan.md`. Non-negotiable.8788### 2. The 2-Action Rule89> "After every 2 view/browser/search operations, IMMEDIATELY save key findings to text files."9091This prevents visual/multimodal information from being lost.9293### 3. Read Before Decide94Before major decisions, read the plan file. This keeps goals in your attention window.9596### 4. Update After Act97After completing any phase:98- Mark phase status: `in_progress` → `complete`99- Log any errors encountered100- Note files created/modified101102### 5. Log ALL Errors103Every error goes in the plan file. This builds knowledge and prevents repetition.104105```markdown106## Errors Encountered107| Error | Attempt | Resolution |108|-------|---------|------------|109| FileNotFoundError | 1 | Created default config |110| API timeout | 2 | Added retry logic |111```112113### 6. Never Repeat Failures114```115if action_failed:116 next_action != same_action117```118Track what you tried. Mutate the approach.119120## The 3-Strike Error Protocol121122```123ATTEMPT 1: Diagnose & Fix124 → Read error carefully125 → Identify root cause126 → Apply targeted fix127128ATTEMPT 2: Alternative Approach129 → Same error? Try different method130 → Different tool? Different library?131 → NEVER repeat exact same failing action132133ATTEMPT 3: Broader Rethink134 → Question assumptions135 → Search for solutions136 → Consider updating the plan137138AFTER 3 FAILURES: Escalate to User139 → Explain what you tried140 → Share the specific error141 → Ask for guidance142```143144## Read vs Write Decision Matrix145146| Situation | Action | Reason |147|-----------|--------|--------|148| Just wrote a file | DON'T read | Content still in context |149| Viewed image/PDF | Write findings NOW | Multimodal → text before lost |150| Browser returned data | Write to file | Screenshots don't persist |151| Starting new phase | Read plan/findings | Re-orient if context stale |152| Error occurred | Read relevant file | Need current state to fix |153| Resuming after gap | Read all planning files | Recover state |154155## The 5-Question Reboot Test156157If you can answer these, your context management is solid:158159| Question | Answer Source |160|----------|---------------|161| Where am I? | Current phase in task_plan.md |162| Where am I going? | Remaining phases |163| What's the goal? | Goal statement in plan |164| What have I learned? | findings.md |165| What have I done? | progress.md |166167## When to Use This Pattern168169**Use for:**170- Multi-step tasks (3+ steps)171- Research tasks172- Building/creating projects173- Tasks spanning many tool calls174- Anything requiring organization175176**Skip for:**177- Simple questions178- Single-file edits179- Quick lookups180181## Templates182183Copy these templates to start:184185- [templates/task_plan.md](templates/task_plan.md) — Phase tracking186- [templates/findings.md](templates/findings.md) — Research storage187- [templates/progress.md](templates/progress.md) — Session logging188189## Scripts190191Helper scripts for automation:192193- `scripts/init-session.sh` — Initialize all planning files194- `scripts/check-complete.sh` — Verify all phases complete195196## Advanced Topics197198- **Manus Principles:** See [reference.md](reference.md)199- **Real Examples:** See [examples.md](examples.md)200201## Anti-Patterns202203| Don't | Do Instead |204|-------|------------|205| Use TodoWrite for persistence | Create task_plan.md file |206| State goals once and forget | Re-read plan before decisions |207| Hide errors and retry silently | Log errors to plan file |208| Stuff everything in context | Store large content in files |209| Start executing immediately | Create plan file FIRST |210| Repeat failed actions | Track attempts, mutate approach |211| Create files in skill directory | Create files in your project |212
Full transparency — inspect the skill content before installing.