
planning-with-files
File-based planning plugin that keeps task goals and progress in markdown files outside the context window.
- version
- 1.0.0
- GitHub stars
- 537
What it does
- Adds
/planand/statuscommands plus a planning skill that createstask_plan.md,findings.md, andprogress.mdin the project root - Covers phases, decisions, error logs, research findings, and session logs in three persistent files
- Enforces a read-before-decide pattern, re-reading
task_plan.mdbefore major decisions to counter context drift - Designed for multi-step tasks needing more than five tool calls, such as research and multi-phase projects
File-based planning with persistent markdown files for complex multi-step tasks
Add marketplace
/plugin marketplace add trailofbits/skills-curatedRun it inside Claude Code once, then install the plugin below.
Install
/plugin install planning-with-files@skills-curatedRun it inside Claude Code after adding the marketplace.
Files
Discovered from sourcePlanning with Files
Use persistent markdown files as working memory on disk.
Quick Start
- Create planning files -- use
/planor create manually from templates - Create
task_plan.mdwith goal, phases, and key questions - Create
findings.mdfor research and decisions - Create
progress.mdfor session logging - Re-read the plan before decisions -- refreshes goals in attention
- Update after each phase -- mark status, log errors
When to Use
- Multi-step tasks (3+ phases)
- Research projects requiring many searches
- Building or creating projects with multiple files
- Tasks spanning many tool calls (>10)
- Any work where losing track of goals would be costly
- Tasks that may span multiple sessions
When NOT to Use
- Simple questions or quick lookups
- Single-file edits with obvious scope
- Tasks completable in under 5 tool calls
- Conversational exchanges without implementation
Core Pattern
Context Window = RAM (volatile, limited)
Filesystem = Disk (persistent, unlimited)
Anything important gets written to disk.
After many tool calls, the original goal drifts out of the attention
window. Reading task_plan.md brings it back. This is the single
most important pattern in file-based planning.
File Purposes
| File | Purpose | When to Update |
|---|---|---|
task_plan.md | Phases, progress, decisions | After each phase completes |
findings.md | Research, discoveries, decisions | After ANY discovery |
progress.md | Session log, test results | Throughout the session |
All three files go in the project root, not the plugin directory.
Critical Rules
1. Create Plan First
Never start a complex task without task_plan.md. This is
non-negotiable. The plan is your persistent memory.
2. The 2-Action Rule
After every 2 search, browse, or read operations, immediately save
key findings to findings.md. Multimodal content (images, browser
results, PDF contents) does not persist in context -- capture it as
text before it is lost.
3. Read Before Decide
Before any major decision, re-read task_plan.md. This pushes
goals and context back into the recent attention window, counteracting
the "lost in the middle" effect that occurs after ~50 tool calls.
[Original goal -- far away in context, forgotten]
...many tool calls...
[Recently read task_plan.md -- gets ATTENTION]
→ Now make the decision with goals fresh in context
4. Update After Act
After completing any phase:
- Mark phase status:
in_progress->complete - Log any errors encountered in the Errors table
- Note files created or modified in
progress.md
5. Log ALL Errors
Every error goes in task_plan.md. Include the attempt number and
resolution. This builds knowledge and prevents repeating failures.
## Errors Encountered
| Error | Attempt | Resolution |
|-------|---------|------------|
| FileNotFoundError | 1 | Created default config |
| API timeout | 2 | Added retry logic |
6. Never Repeat Failures
If an action failed, the next action must be different. Track what you tried and mutate the approach.
if action_failed:
next_action != same_action
3-Strike Error Protocol
ATTEMPT 1: Diagnose & Fix
-> Read error carefully
-> Identify root cause
-> Apply targeted fix
ATTEMPT 2: Alternative Approach
-> Same error? Try a different method
-> Different tool? Different library?
-> NEVER repeat the 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 (with attempt log)
-> Share the specific error
-> Ask for guidance
Read vs Write Decision Matrix
| Situation | Action | Reason |
|---|---|---|
| Just wrote a file | Don't read it | Content still in context |
| Viewed image/PDF | Write findings NOW | Multimodal content doesn't persist |
| Browser returned data | Write to file | Screenshots don't persist |
| Starting new phase | Read plan/findings | Re-orient if context is stale |
| Error occurred | Read relevant file | Need current state to fix |
| Resuming after gap | Read all planning files | Recover full state |
5-Question Reboot Test
If you can answer these from your planning files, 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 |
Anti-Patterns
| Don't | Do Instead |
|---|---|
| State goals once and forget | Re-read plan before decisions |
| Hide errors and retry silently | Log every error 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 plugin directory | Create files in project root |
References
- Templates -- starter templates for all three planning files
- Principles -- context engineering principles behind this approach
- Examples -- concrete examples and error recovery patterns
Readme
Planning with Files
File-based planning with persistent markdown files for complex multi-step tasks.
Installation
/plugin install trailofbits/skills-curated/plugins/planning-with-files
Usage
/plan
Creates three planning files in your project root:
task_plan.md-- phases, progress, decisions, error logfindings.md-- research discoveries and technical decisionsprogress.md-- session log and test results
/status
Shows a compact summary of your current task phases and progress.
How It Works
The core idea: your context window is volatile RAM, the filesystem is persistent disk. Writing goals, decisions, and findings to markdown files prevents context drift during long tasks.
The key pattern is read-before-decide: re-reading task_plan.md before major decisions pushes goals back into the attention window, counteracting the "lost in the middle" effect that occurs after many tool calls.
The plugin includes a Stop hook that reports phase completion status when a session ends.
What's Included
| Component | Purpose |
|---|---|
| Skill | Core planning methodology and rules |
/plan command | Create planning files from templates |
/status command | Show phase summary |
| Stop hook | Report completion status on session end |
Credits
Based on OthmanAdi/planning-with-files, which implements context engineering principles from Manus. Restructured as a curated Claude Code plugin with multi-IDE bloat removed, expensive hooks dropped, and templates cleaned up.
Details
- Marketplace
- trailofbits/skills-curated
- Source
- plugins/planning-with-files
- Author
- OthmanAdi
- Category
- Community
- Listed since
- Apr 7, 2026
More from trailofbits/skills-curated
All 29- productivityv1.0.0
- python-code-simplifierv1.0.0
- react-pdfv1.0.0
- scv-scanv1.0.0
- security-awarenessv1.0.0
- skill-extractorv1.0.0
- wooyun-legacyv1.0.0
- x-researchv1.0.0
- ffuf-web-fuzzingv1.0.0
- ghidra-headlessv1.0.0
- humanizerv2.2.0
- last30daysv1.0.0
- openai-cloudflare-deployv1.0.0
- openai-develop-web-gamev1.0.0
- openai-docv1.0.0
- openai-gh-address-commentsv1.0.0
- openai-gh-fix-civ1.0.0
- openai-jupyter-notebookv1.0.0
- openai-netlify-deployv1.0.0
- openai-pdfv1.0.0
- openai-playwrightv1.0.0
- openai-screenshotv1.0.0
- openai-security-best-practicesv1.0.0
- openai-security-ownership-mapv1.0.0
Similar to planning-with-files
More Agent Workflow & Planning
pi-planning-with-filesSkillothmanadi/planning-with-files10.5K installsPersistent file-based planning that keeps task state on disk so multi-step work survives context loss.
create-implementation-planSkillgithub/awesome-copilot12.6K installsStructured plan files for features, refactors, upgrades, architecture, and infrastructure work, saved under /plan/ for autonomous execution.
handbook-structured-plan-modePluginNikiforovAll/claude-code-rules143 starsStructured planning methodology for complex feature implementations through systematic task decomposition
Software PlanningMCP servernighttrek399 starsPlanning and todo tracking for software projects, stored in local session state.
sprint-prioritizerPluginrohitg00/awesome-claude-code-toolkit2.8K starsSprint planning with story prioritization and capacity estimation
planPluginrohitg00/awesome-claude-code-toolkit2.8K starsStructured planning with risk assessment and time estimation