AgentSkillsCN

planning-with-files

将工作流程转型为采用 Manus 式的持久化 Markdown 文件,用于规划、进度追踪与知识存储。适用于启动复杂任务、多步骤项目、研究型任务,或当用户提及规划、整理工作、跟踪进度,或是希望获得结构化的输出时使用。

SKILL.md
--- frontmatter
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."

File Location

Create all planning files in a dedicated .planning/ folder at the project root:

code
project-root/.planning/
├── task_plan.md      # Progress tracking
├── notes.md          # Research findings
└── [deliverable].md  # Final output

Quick Start

Before ANY complex task:

  1. Create .planning/ folder in the project root (if not exists)
  2. Create task_plan.md in .planning/
  3. Define phases with checkboxes
  4. Update after each phase - mark [x] and change status
  5. Read before deciding - refresh goals in attention window

The 3-File Pattern

For every non-trivial task, create THREE files in .planning/:

FilePurposeWhen to Update
.planning/task_plan.mdTrack phases and progressAfter each phase
.planning/notes.mdStore findings and researchDuring research
.planning/[deliverable].mdFinal outputAt completion

Core Workflow

code
Loop 1: Create .planning/task_plan.md with goal and phases
Loop 2: Research → save to .planning/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 .planning/task_plan.md  # Refresh goals in attention window

After each phase:

bash
Edit .planning/task_plan.md  # Mark [x], update status

When storing information:

bash
Write .planning/notes.md     # Don't stuff context, store in file

task_plan.md Template

Create .planning/task_plan.md 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

Create .planning/notes.md 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 .planning/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'tDo Instead
Use TodoWrite for persistenceCreate .planning/task_plan.md file
State goals once and forgetRe-read plan before each decision
Hide errors and retryLog errors to plan file
Stuff everything in contextStore large content in .planning/
Start executing immediatelyCreate .planning/ folder FIRST

Advanced Patterns

See reference.md for:

  • Attention manipulation techniques
  • Error recovery patterns
  • Context optimization from Manus

See examples.md for:

  • Real task examples
  • Complex workflow patterns