Planning With Files

davila7/claude-code-templates/cli-tool/components/skills/workflow-automation/planning-with-files

作者 davila7507d5d0eabf0962bd69f351bca133b2e45e2afb0無授權條款32K 個星標收錄於 2026年10月9日更新於 2026年10月9日儲存庫今天更新

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.

AI 產生的概覽

引導代理使用持久化 Markdown 檔案進行規劃、進度追蹤與儲存研究發現。

功能
此技能定義了一種三檔案模式:代理建立用於記錄目標與階段的 task_plan.md、用於記錄研究發現的 notes.md,以及用於最終輸出的交付項目 Markdown 檔案。它提供了計畫檔案與筆記檔案的範本,規定了在決策前讀取計畫、在每個階段後更新計畫的循環流程,以及記錄錯誤、將大量內容存入檔案而非上下文等規則。它會產出用於追蹤任務進度的結構化 Markdown 工作檔案。
適用情境
適用於複雜、多步驟的任務、研究任務,或需要組織管理的跨多次工具呼叫的專案。也適用於使用者提到規劃、組織工作、追蹤進度或希望獲得結構化輸出的情境。簡單問題、單一檔案編輯與快速查詢則被明確排除。
執行需求
不需要指令碼或特殊工具,僅為指令型技能。代理需要對工作目錄的讀寫權限,以建立與更新 Markdown 檔案。

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:

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

Core Workflow

Loop 1: Create task_plan.md with goal and phasesLoop 2: Research → save to notes.md → update task_plan.mdLoop 3: Read notes.md → create deliverable → update task_plan.mdLoop 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 Questions1. [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'tDo Instead
Use TodoWrite for persistenceCreate 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 files
Start executing immediatelyCreate plan file FIRST

Advanced Patterns

See reference.md [blocked] for:

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

See examples.md [blocked] for:

  • Real task examples
  • Complex workflow patterns

來源與署名

來源:davila7/claude-code-templates位於cli-tool/components/skills/workflow-automation/planning-with-files提交507d5d0

授權條款: 無授權條款

內容歸原作者所有。SourceWeft 從公開儲存庫中收錄這些內容。

檢舉或申請下架