OthmanAdi/planning-with-files: Trending on GitHub
The Rise of Planning with Files: A Game-Changing Skill for AI Agents
In the ever-evolving landscape of artificial intelligence, a new skill has emerged that's revolutionizing the way AI agents work. Developed by Ahmad Othman Ammar Adi, the "planning-with-files" skill is based on the core workflow pattern of Manus, the AI agent company Meta acquired for $2 billion in December 2025. This skill has the potential to transform the way AI agents approach complex tasks, making them more efficient, organized, and effective.
The Problem: Volatile Memory and Goal Drift
Most AI agents, including Claude Code, suffer from two major issues: volatile memory and goal drift. Volatile memory refers to the tendency of AI agents to forget important information as soon as the context is reset. Goal drift, on the other hand, occurs when the original goals of a task are forgotten after multiple tool calls. These issues lead to hidden errors, context stuffing, and a lack of accountability.
The Solution: The 3-File Pattern
To address these issues, the planning-with-files skill implements a simple yet effective pattern: the 3-file pattern. For every complex task, create three files:
- task_plan.md: This file tracks the phases and progress of the task.
- notes.md: This file stores research and findings related to the task.
- [deliverable].md: This file contains the final output of the task.
The Loop: How it Works
The planning-with-files skill follows a straightforward loop:
- Create a task plan in task_plan.md with the goal and phases.
- Research and gather information, saving it in notes.md.
- Update the task plan in task_plan.md based on the research.
- Create the final output in [deliverable].md.
Key Insight: Re-reading the Plan
The key to this pattern is re-reading the task plan before making major decisions. This ensures that the original goals and context are kept in the attention window, preventing goal drift and hidden errors.
Installation and Usage
To install the planning-with-files skill, follow these steps:
- Clone the repository or download the planning-with-files folder.
- Place the folder in your Claude Code skills directory.
- Verify the installation by starting a complex task and mentioning "planning", "organize", or "track progress".
Once installed, the skill will automatically create a task plan, update progress with checkboxes, and store findings in notes.md. It will also log errors for future reference and re-read the plan before major decisions.
Example
Suppose you want to research the benefits of TypeScript and write a summary. The planning-with-files skill will create a task plan with the goal and phases, update the plan based on research, and create the final output in a markdown file.
The Manus Principles
The planning-with-files skill implements the key context engineering principles pioneered by Manus:
- Filesystem as memory: Store information in files, not context.
- Attention manipulation: Re-read the plan before decisions.
- Error persistence: Log failures in the plan file.
- Goal tracking: Use checkboxes to show progress.
- Append-only context: Never modify history.
File Structure
The planning-with-files repository is organized into the following files:
- SKILL.md: Core instructions (what Claude reads).
- reference.md: Manus principles deep dive.
- examples.md: Real usage examples.
- README.md: This file.
When to Use
Use the planning-with-files skill for:
- Multi-step tasks (3+ steps).
- Research tasks.
- Building/creating projects.
- Tasks spanning many tool calls.
- Anything requiring organization.
Skip for
- Simple questions.
- Single-file edits.
- Quick lookups.
Acknowledgments
The planning-with-files skill is built on the pioneering work of Manus AI and the Agent Skills framework provided by Anthropic. Contributions are welcome, and the skill is released under the MIT License.
Conclusion
The planning-with-files skill is a game-changer for AI agents, providing a simple yet effective way to approach complex tasks. By implementing the 3-file pattern and re-reading the plan before decisions, AI agents can prevent goal drift and hidden errors, making them more efficient, organized, and effective.




