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
累計下載
1589
星標
-
全站排名
#4,709
全站前 93% · 「AI 智慧體」前 95%
平台累計安裝累計下載星標評論
ClawHub ↗371317--
SkillHub ↗1061589-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文建議將任務目標、階段、研究發現和進度寫入檔案,以便跨階段或跨會話恢復。其初始化指令碼會處理任務描述文字;隨附卡片指出,不安全的模板替換可能把特製任務文字變成本地命令執行。因此應先審閱指令碼,只在可信工作區使用,並避免把不可信輸入傳入尚未安全處理的初始化流程。

資料釋出於 2026-10-29

可以用來做什麼

  • 為多階段工作建立計劃、發現和進度記錄
  • 在每個階段完成後更新任務狀態
  • 審查初始化指令碼對任務文字的處理方式

什麼時候用

  • 任務跨越多個階段或會話時
  • 需要持久化進度並降低目標漂移時
  • 可以先審閱指令碼並僅在可信工作區執行時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

先檢查初始化指令碼如何處理任務描述,再規劃這個專案
為任務建立階段清單和進度記錄,但不要執行不可信文字
指出哪些發現需要持久儲存,哪些敏感資訊不應寫入計劃檔案

月度資料趨勢

累計下載1589
465106916722026-03 · 累計下載 5482026-05 · 累計下載 8802026-06 · 累計下載 9972026-07 · 累計下載 12042026-08 · 累計下載 13272026-09 · 累計下載 158926-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091589—-
2026-081327+10.2%-
2026-071204+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),按月更新。口徑說明見資料方法。