Planning with Files
Manus-style persistent planning that keeps task_plan.md, findings.md and progress.md on disk so multi-step work survives compaction and /clear.
What it does
Treats the context window as volatile RAM and the filesystem as durable disk. Before any complex task, the agent must create and continuously maintain three markdown files in your project root:
task_plan.md— phases, status, key decisionsfindings.md— research and discoveriesprogress.md— session log and test results
It ships hooks for UserPromptSubmit, PreToolUse, PostToolUse, Stop and PreCompact that re-inject the current plan, nudge you to log progress after writes, and run session-catchup.py to recover state after /clear. It also encodes a 3-strike error protocol, the 2-action rule (save findings after every two view/search operations), a read-vs-write decision matrix, a 5-question reboot test, and an anti-pattern table.
Who it's for
- Developers running long refactors or migrations spanning dozens of tool calls
- Anyone who has lost the thread after context compaction or
/clear - Researchers who want discoveries and error history captured systematically
- Teams switching between Cursor and Claude Code on the same plan files
Examples
- Large refactor: ask to migrate a repo to TypeScript — the agent writes a 5–7 phase
task_plan.md, flips each phase tocomplete, and accumulates build failures in an error table. - Technology research: comparing libraries, it flushes a summary to
findings.mdevery two searches so the comparison table survives compaction. - Session recovery: next morning, run the catchup script plus
git diff --stat, refresh the planning files, then resume at the exact unfinished phase.
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .cursor/skills/planning-with-files folder from the GitHub repo OthmanAdi/planning-with-files into my ~/.claude/skills/othmanadi-planning-with-files-4/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/OthmanAdi/planning-with-files.git /tmp/pwf && mkdir -p ~/.claude/skills && cp -r /tmp/pwf/.cursor/skills/planning-with-files ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/OthmanAdi/planning-with-files.git /tmp/pwf - Create the skills folder:
mkdir -p ~/.claude/skills(use~/.cursor/skillsfor Cursor) - Copy the skill:
cp -r /tmp/pwf/.cursor/skills/planning-with-files ~/.claude/skills/ - Make the helper scripts executable:
chmod +x ~/.claude/skills/planning-with-files/scripts/*.sh - Skim the hook commands and the files under
scripts/once — they run automatically on prompts and tool calls. - Restart Claude Code, open a project, and ask it to "plan this out step by step" to confirm
task_plan.mdis created in your project root. - If you installed to a non-standard path, set the
PWF_SCRIPT_DIRenvironment variable to the skill'sscriptsdirectory.