home / skills / yyh211 / claude-meta-skill / planning-with-files

planning-with-files skill

/planning-with-files

This skill helps you plan complex tasks using a three-file markdown pattern to organize goals, research, and deliverables.

npx playbooks add skill yyh211/claude-meta-skill --skill planning-with-files

Review the files below or copy the command above to add this skill to your agents.

Files (3)
SKILL.md
3.8 KB
---
name: planning-with-files
description: Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage. Use when starting complex tasks, multi-step projects, research tasks, or when the user mentions planning, organizing work, tracking progress, or wants structured output.
---

# Planning with Files

Work like Manus: Use persistent markdown files as your "working memory on disk."

## Quick Start

Before ANY complex task:

1. **Create `task_plan.md`** in the working directory
2. **Define phases** with checkboxes
3. **Update after each phase** - mark [x] and change status
4. **Read before deciding** - refresh goals in attention window

## The 3-File Pattern

For every non-trivial task, create THREE files:

| File | Purpose | When to Update |
|------|---------|----------------|
| `task_plan.md` | Track phases and progress | After each phase |
| `notes.md` | Store findings and research | During research |
| `[deliverable].md` | Final output | At completion |

## Core Workflow

```
Loop 1: Create task_plan.md with goal and phases
Loop 2: Research → save to notes.md → update task_plan.md
Loop 3: Read notes.md → create deliverable → update task_plan.md
Loop 4: Deliver final output
```

### The Loop in Detail

**Before each major action:**
```bash
Read task_plan.md  # Refresh goals in attention window
```

**After each phase:**
```bash
Edit task_plan.md  # Mark [x], update status
```

**When storing information:**
```bash
Write notes.md     # Don't stuff context, store in file
```

## task_plan.md Template

Create this file FIRST for any complex task:

```markdown
# Task Plan: [Brief Description]

## Goal
[One sentence describing the end state]

## Phases
- [ ] Phase 1: Plan and setup
- [ ] Phase 2: Research/gather information
- [ ] Phase 3: Execute/build
- [ ] Phase 4: Review and deliver

## Key Questions
1. [Question to answer]
2. [Question to answer]

## Decisions Made
- [Decision]: [Rationale]

## Errors Encountered
- [Error]: [Resolution]

## Status
**Currently in Phase X** - [What I'm doing now]
```

## notes.md Template

For research and findings:

```markdown
# Notes: [Topic]

## Sources

### Source 1: [Name]
- URL: [link]
- Key points:
  - [Finding]
  - [Finding]

## Synthesized Findings

### [Category]
- [Finding]
- [Finding]
```

## Critical Rules

### 1. ALWAYS Create Plan First
Never start a complex task without `task_plan.md`. This is non-negotiable.

### 2. Read Before Decide
Before any major decision, read the plan file. This keeps goals in your attention window.

### 3. Update After Act
After completing any phase, immediately update the plan file:
- Mark completed phases with [x]
- Update the Status section
- Log any errors encountered

### 4. Store, Don't Stuff
Large outputs go to files, not context. Keep only paths in working memory.

### 5. Log All Errors
Every error goes in the "Errors Encountered" section. This builds knowledge for future tasks.

## When to Use This Pattern

**Use 3-file pattern for:**
- Multi-step tasks (3+ steps)
- Research tasks
- Building/creating something
- Tasks spanning multiple tool calls
- Anything requiring organization

**Skip for:**
- Simple questions
- Single-file edits
- Quick lookups

## Anti-Patterns to Avoid

| Don't | Do Instead |
|-------|------------|
| Use TodoWrite for persistence | Create `task_plan.md` file |
| State goals once and forget | Re-read plan before each decision |
| Hide errors and retry | Log errors to plan file |
| Stuff everything in context | Store large content in files |
| Start executing immediately | Create plan file FIRST |

## Advanced Patterns

See [reference.md](reference.md) for:
- Attention manipulation techniques
- Error recovery patterns
- Context optimization from Manus

See [examples.md](examples.md) for:
- Real task examples
- Complex workflow patterns

Overview

This skill transforms planning and execution into a file-based workflow using persistent Markdown files. It formalizes a three-file pattern—task_plan.md, notes.md, and a deliverable file—to track phases, record research, and produce final outputs. The approach reduces context loss, improves traceability, and makes progress explicit for multi-step work.

How this skill works

Before any complex task you create task_plan.md with goal, phases, questions, and a status line. During work, you save research and findings to notes.md and keep the deliverable in a separate markdown file. After each phase you update task_plan.md (mark checkboxes, record errors, update status) so the plan remains the authoritative source of truth.

When to use it

  • Starting multi-step projects with 3+ phases
  • Conducting research or synthesis that spans sessions
  • Coordinating work that requires progress tracking and handoffs
  • Tasks that need reproducible decision logs and error history
  • When you want durable working memory stored on disk rather than ephemeral context

Best practices

  • Create task_plan.md first and read it before every major decision
  • Write findings to notes.md; avoid stuffing long content into live context
  • Mark completed phases with [x], update Status, and log any errors immediately
  • Keep the deliverable in a dedicated file and update it iteratively
  • Use clear, one-sentence Goal and concise Key Questions to keep focus

Example use cases

  • Research paper planning: outline phases, save sources in notes.md, draft sections in deliverable.md
  • Feature development: define milestones in task_plan.md, log design notes and tests in notes.md, keep the release spec as deliverable.md
  • Complex troubleshooting: track steps and errors in task_plan.md, store logs and findings in notes.md, produce a remediation guide file
  • Multi-session analysis: preserve progress between sessions by reading task_plan.md before resuming work
  • Cross-team handoff: provide a single plan file that documents decisions, status, and outstanding questions

FAQ

What files do I always create for non-trivial tasks?

Create three files: task_plan.md (plan and progress), notes.md (research and findings), and a deliverable markdown file for the final output.

When should I update task_plan.md?

Update it after every phase, when you make decisions, and whenever you encounter or resolve errors.

Can I skip this pattern for quick tasks?

Yes. Skip the three-file pattern for simple questions, single-file edits, or quick lookups that don't require persistent planning.