Planning with Files — Manus-Style Persistent Planning Skill
Claude Code skill implementing persistent markdown planning with 96.7% benchmark pass rate. Uses a 3-file pattern (task_plan.md, findings.md, progress.md) to survive context resets.
What it is
Planning with Files is a Claude Code skill that implements persistent markdown-based planning using a 3-file pattern: task_plan.md for the overall plan, findings.md for research and discoveries, and progress.md for tracking completion status. This pattern ensures that planning context survives context window resets, which is critical for long-running tasks that exceed the context limit.
This skill is designed for Claude Code users working on complex, multi-step tasks where losing planning context mid-execution would waste significant time and tokens.
How it saves time or tokens
When Claude Code hits a context window limit during a complex task, it loses all in-memory planning context. Without persistent planning files, the agent must re-analyze the codebase and re-derive the plan from scratch. This skill writes the plan, findings, and progress to disk so that after a context reset, the agent reads these files and resumes exactly where it left off. This eliminates the token cost of re-planning and the time lost to repeated analysis.
How to use
- Install the planning skill:
npx skills add OthmanAdi/planning-with-files --skill planning-with-files -g
Or manually copy the SKILL.md to .claude/skills/planning-with-files.md.
- When starting a complex task, ask Claude Code to create a plan:
Create a plan for refactoring the authentication module.
Use the planning-with-files skill to persist the plan.
- The skill creates three files in your project:
task_plan.md — Step-by-step execution plan
findings.md — Research notes and discoveries
progress.md — Completion tracking with checkboxes
Example
A typical progress.md file during execution:
# Progress: Auth Module Refactoring
Status: In Progress (Step 3 of 7)
- [x] Step 1: Audit current auth flow
- [x] Step 2: Design JWT token structure
- [ ] Step 3: Implement token generation (CURRENT)
- [ ] Step 4: Update middleware
- [ ] Step 5: Migrate session data
- [ ] Step 6: Update API endpoints
- [ ] Step 7: Write integration tests
Last Updated: 2026-04-15T14:30:00Z
Context: Working on src/auth/token.ts
After a context reset, Claude Code reads progress.md and immediately knows to continue from Step 3.
Related on TokRepo
- Coding tools — Browse AI-assisted development tools
- Automation tools — Explore workflow automation tools
Common pitfalls
- Not cleaning up planning files after task completion. The three files remain in your project directory. Delete them or add them to .gitignore to keep your repository clean.
- Using the skill for trivial tasks that fit within a single context window. The overhead of creating and maintaining planning files is not worth it for simple, quick tasks.
- Not reviewing the task_plan.md before execution. The AI-generated plan may include unnecessary steps or miss important considerations. Review and edit the plan before letting the agent execute.
Frequently Asked Questions
task_plan.md contains the step-by-step execution plan. findings.md stores research notes, code analysis results, and discoveries made during execution. progress.md tracks which steps are completed with checkboxes and records the current execution context.
CLAUDE.md stores project-level preferences and conventions that persist across all sessions. Planning files are task-specific and temporary. They track the plan and progress for a single complex task and should be deleted after the task is complete.
Yes. Context compaction reduces the context window but does not delete files on disk. After compaction, the agent re-reads the planning files to restore its understanding of the current task state.
The file pattern (task_plan.md, findings.md, progress.md) is tool-agnostic. Any AI coding tool that reads files can benefit from persistent planning files. The skill installation is Claude Code specific, but the concept transfers to any agent.
Planning files are typically 1-5KB each. They contain structured markdown, not full code. Even for complex tasks with many steps, the files remain small enough to read quickly after a context reset.
Citations (3)
- Planning with Files GitHub— Planning with Files skill for Claude Code
- Claude Code Documentation— Claude Code skills system
- Anthropic Documentation— Context window management in AI agents
Related on TokRepo
Source & Thanks
Created by Ahmad Othman Ammar Adi. Licensed under MIT.
planning-with-files — ⭐ 18,000+
Thank you for bringing structured planning persistence to AI coding workflows.
Discussion
Related Assets
Claude-Flow — Multi-Agent Orchestration for Claude Code
Layers swarm and hive-mind multi-agent orchestration on top of Claude Code with 64 specialized agents, SQLite memory, and parallel execution.
ccusage — Real-Time Token Cost Tracker for Claude Code
CLI that reads ~/.claude logs and breaks down Claude Code token spend by day, session, and project — pluggable into your statusline.
SuperClaude — Workflow Framework for Claude Code
Adds 16+ slash commands, 9 cognitive personas, and a smart flag system to Claude Code in one pipx install.