yingcd

planning-with-files

AI 智能体v1.0.0
作者:yingcd更新于 2026-05-11planning-with-files-from-github@clawhub_yingcd/planning-with-files-from-github
任务自动化多 Agent 协作工作流编排

据 AlphaMoat 统计,截至 2026-09,planning-with-files 累计下载 1,589 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 4,709 位,在「AI 智能体」分类(969 个)中排名第 915 位。

累计安装
106
累计下载
1,589
星标
-
全站排名
#4,709
全站前 93% · 「AI 智能体」前 95%
平台累计安装累计下载星标评论
ClawHub ↗371,317--
SkillHub ↗1061,589-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文建议将任务目标、阶段、研究发现和进度写入文件,以便跨阶段或跨会话恢复。其初始化脚本会处理任务描述文本;随附卡片指出,不安全的模板替换可能把特制任务文本变成本地命令执行。因此应先审阅脚本,只在可信工作区使用,并避免把不可信输入传入尚未安全处理的初始化流程。

资料发布于 2026-10-29

可以用来做什么

  • 为多阶段工作建立计划、发现和进度记录
  • 在每个阶段完成后更新任务状态
  • 审查初始化脚本对任务文本的处理方式

什么时候用

  • 任务跨越多个阶段或会话时
  • 需要持久化进度并降低目标漂移时
  • 可以先审阅脚本并仅在可信工作区运行时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

先检查初始化脚本如何处理任务描述,再规划这个项目
为任务建立阶段清单和进度记录,但不要执行不可信文本
指出哪些发现需要持久保存,哪些敏感信息不应写入计划文件

月度数据趋势

累计下载1,589
4651,0691,6722026-03 · 累计下载 5482026-05 · 累计下载 8802026-06 · 累计下载 9972026-07 · 累计下载 1,2042026-08 · 累计下载 1,3272026-09 · 累计下载 1,58926-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-091,589—-
2026-081,327+10.2%-
2026-071,204+20.8%-
2026-06997+13.3%-
2026-05880—-
2026-03548—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

4.3 KB · ClawHub v1.0.0
---
name: planning-with-files
description: "This skill should be used when the user asks to start a complex task, research project, multi-step implementation, or any task expected to require more than 5 tool calls. Triggers: 'plan this', 'start planning', 'help me build', 'research and implement', 'complex task', '/plan'."
metadata: { "openclaw": { "emoji": "📋", "version": "1.0.0", "author": "shannon/openclaw-port" } }
---

# Planning with Files

Manus-style persistent markdown planning. Filesystem = long-term memory. Context window = working RAM.
展开全部(共 130 行)
## Core Principle

```
Context Window = RAM (volatile, limited)
Filesystem     = Disk (persistent, unlimited)
→ Anything important MUST be written to disk.
```

## When to Use

- Multi-step tasks (3+ phases or 5+ tool calls)
- Research + implementation tasks
- Tasks that span multiple sessions
- Any task where goal-drift is a risk

Skip for: single-file edits, quick lookups, simple questions.

## Session Start Protocol

**ALWAYS do this first — no exceptions:**

1. Run the init script to create the three planning files:
   ```
   exec: bash {baseDir}/scripts/init-session.sh "<task description>"
   ```
2. Fill in the `## Goal` section in `task_plan.md` with the full task description.
3. Break the task into 3–7 phases and add them under `## Phases`.
4. Confirm files exist before proceeding.

If exec is not available, create the three files manually using the templates in `{baseDir}/templates/`.

## The Three Files

### task_plan.md — Goal tracker (MOST IMPORTANT)
- Created at session start, never deleted
- Re-read before every major decision
- Update when: phase completes, decision made, error encountered

### findings.md — Knowledge store
- Research results, discoveries, technical decisions
- **2-Action Rule**: after every 2 view/search/fetch operations → update findings.md immediately

### progress.md — Session log
- Actions taken, test results, errors encountered
- Append-only; never rewrite history

## Work Loop

```
BEFORE every major action:
  → Re-read task_plan.md (keeps goal in attention)

EVERY 2 view/search/fetch operations:
  → Save key findings to findings.md NOW

AFTER completing a phase:
  → Update phase status in task_plan.md to "complete"
  → Append phase summary to progress.md

WHEN an error occurs:
  → Log it in task_plan.md under ## Errors table
  → Never repeat the same failing action

BEFORE stopping:
  → Run: exec bash {baseDir}/scripts/check-complete.sh
  → Only stop if all phases show "complete"
```

## File Update Rules

| Trigger | File to update | Section |
|---------|---------------|---------|
| Start task | task_plan.md | Goal + Phases |
| 2nd research op | findings.md | Key Findings |
| Make decision | findings.md | Technical Decisions |
| Phase done | task_plan.md | Phase status → complete |
| Phase done | progress.md | Phase summary |
| Error | task_plan.md | Errors table |
| Test result | progress.md | Test Results |

## Error Recovery Protocol

```
ATTEMPT 1: Diagnose & Fix
  → Read error carefully → identify root cause → targeted fix

ATTEMPT 2: Alternative Approach
  → Same error? Try different tool/library/method
  → NEVER repeat the exact same failing action

ATTEMPT 3: Broader Rethink
  → Question assumptions → search for solutions → update plan

AFTER 3 FAILURES:
  → Escalate to user: explain what was tried, share the error, ask for guidance
```

## Completion Verification

Before telling the user the task is done:
1. Run `exec bash {baseDir}/scripts/check-complete.sh`
2. If any phase is NOT "complete" → continue working
3. Only deliver result when all phases are checked off

## Session Recovery

If context was cleared (e.g., `/clear`), resume by:
1. Reading `task_plan.md` to restore goal and phase status
2. Reading `progress.md` to see what was done
3. Reading `findings.md` to restore research context
4. Continuing from the first incomplete phase

## Key Principles

- **Plan is Required**: Never start a complex task without `task_plan.md`
- **Files are Memory**: Context is volatile. Filesystem is permanent. Write important things down.
- **Never Repeat Failures**: Track what was tried. Mutate the approach.
- **Error Recovery = Agentic Behavior**: How you handle failures defines task quality.
- **Re-read Before Deciding**: Attention manipulation — keep the goal visible.

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。