@simonyea/holysheep-cli 2.1.49 → 2.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aionui-resources/assistant/academic-paper/academic-paper.md +25 -0
- package/dist/aionui-resources/assistant/academic-paper/academic-paper.ru-RU.md +25 -0
- package/dist/aionui-resources/assistant/academic-paper/academic-paper.zh-CN.md +25 -0
- package/dist/aionui-resources/assistant/beautiful-mermaid/beautiful-mermaid.md +31 -0
- package/dist/aionui-resources/assistant/beautiful-mermaid/beautiful-mermaid.ru-RU.md +31 -0
- package/dist/aionui-resources/assistant/beautiful-mermaid/beautiful-mermaid.zh-CN.md +31 -0
- package/dist/aionui-resources/assistant/cowork/cowork-skills.md +814 -0
- package/dist/aionui-resources/assistant/cowork/cowork-skills.ru-RU.md +814 -0
- package/dist/aionui-resources/assistant/cowork/cowork-skills.zh-CN.md +803 -0
- package/dist/aionui-resources/assistant/cowork/cowork.md +56 -0
- package/dist/aionui-resources/assistant/cowork/cowork.ru-RU.md +56 -0
- package/dist/aionui-resources/assistant/cowork/cowork.zh-CN.md +409 -0
- package/dist/aionui-resources/assistant/dashboard-creator/dashboard-creator.md +25 -0
- package/dist/aionui-resources/assistant/dashboard-creator/dashboard-creator.ru-RU.md +25 -0
- package/dist/aionui-resources/assistant/dashboard-creator/dashboard-creator.zh-CN.md +25 -0
- package/dist/aionui-resources/assistant/excel-creator/excel-creator.md +33 -0
- package/dist/aionui-resources/assistant/excel-creator/excel-creator.ru-RU.md +33 -0
- package/dist/aionui-resources/assistant/excel-creator/excel-creator.zh-CN.md +33 -0
- package/dist/aionui-resources/assistant/financial-model-creator/financial-model-creator.md +25 -0
- package/dist/aionui-resources/assistant/financial-model-creator/financial-model-creator.ru-RU.md +25 -0
- package/dist/aionui-resources/assistant/financial-model-creator/financial-model-creator.zh-CN.md +25 -0
- package/dist/aionui-resources/assistant/game-3d/game-3d.md +255 -0
- package/dist/aionui-resources/assistant/game-3d/game-3d.ru-RU.md +255 -0
- package/dist/aionui-resources/assistant/game-3d/game-3d.zh-CN.md +255 -0
- package/dist/aionui-resources/assistant/human-3-coach/human-3-coach.md +276 -0
- package/dist/aionui-resources/assistant/human-3-coach/human-3-coach.ru-RU.md +276 -0
- package/dist/aionui-resources/assistant/human-3-coach/human-3-coach.zh-CN.md +276 -0
- package/dist/aionui-resources/assistant/moltbook/moltbook-skills.md +88 -0
- package/dist/aionui-resources/assistant/moltbook/moltbook-skills.ru-RU.md +88 -0
- package/dist/aionui-resources/assistant/moltbook/moltbook-skills.zh-CN.md +88 -0
- package/dist/aionui-resources/assistant/moltbook/moltbook.md +216 -0
- package/dist/aionui-resources/assistant/moltbook/moltbook.ru-RU.md +216 -0
- package/dist/aionui-resources/assistant/moltbook/moltbook.zh-CN.md +216 -0
- package/dist/aionui-resources/assistant/morph-ppt/morph-ppt.md +25 -0
- package/dist/aionui-resources/assistant/morph-ppt/morph-ppt.ru-RU.md +25 -0
- package/dist/aionui-resources/assistant/morph-ppt/morph-ppt.zh-CN.md +25 -0
- package/dist/aionui-resources/assistant/morph-ppt-3d/morph-ppt-3d.md +54 -0
- package/dist/aionui-resources/assistant/morph-ppt-3d/morph-ppt-3d.zh-CN.md +54 -0
- package/dist/aionui-resources/assistant/openclaw-setup/openclaw-setup.md +334 -0
- package/dist/aionui-resources/assistant/openclaw-setup/openclaw-setup.ru-RU.md +334 -0
- package/dist/aionui-resources/assistant/openclaw-setup/openclaw-setup.zh-CN.md +347 -0
- package/dist/aionui-resources/assistant/pitch-deck-creator/pitch-deck-creator.md +23 -0
- package/dist/aionui-resources/assistant/pitch-deck-creator/pitch-deck-creator.ru-RU.md +23 -0
- package/dist/aionui-resources/assistant/pitch-deck-creator/pitch-deck-creator.zh-CN.md +23 -0
- package/dist/aionui-resources/assistant/planning-with-files/planning-with-files.md +395 -0
- package/dist/aionui-resources/assistant/planning-with-files/planning-with-files.ru-RU.md +395 -0
- package/dist/aionui-resources/assistant/planning-with-files/planning-with-files.zh-CN.md +395 -0
- package/dist/aionui-resources/assistant/planning-with-files/templates/findings.md +106 -0
- package/dist/aionui-resources/assistant/planning-with-files/templates/progress.md +126 -0
- package/dist/aionui-resources/assistant/planning-with-files/templates/task_plan.md +156 -0
- package/dist/aionui-resources/assistant/ppt-creator/ppt-creator.md +33 -0
- package/dist/aionui-resources/assistant/ppt-creator/ppt-creator.ru-RU.md +33 -0
- package/dist/aionui-resources/assistant/ppt-creator/ppt-creator.zh-CN.md +33 -0
- package/dist/aionui-resources/assistant/social-job-publisher/social-job-publisher-skills.md +137 -0
- package/dist/aionui-resources/assistant/social-job-publisher/social-job-publisher-skills.ru-RU.md +137 -0
- package/dist/aionui-resources/assistant/social-job-publisher/social-job-publisher-skills.zh-CN.md +137 -0
- package/dist/aionui-resources/assistant/social-job-publisher/social-job-publisher.md +127 -0
- package/dist/aionui-resources/assistant/social-job-publisher/social-job-publisher.ru-RU.md +127 -0
- package/dist/aionui-resources/assistant/social-job-publisher/social-job-publisher.zh-CN.md +131 -0
- package/dist/aionui-resources/assistant/star-office-helper/star-office-helper.md +50 -0
- package/dist/aionui-resources/assistant/star-office-helper/star-office-helper.ru-RU.md +50 -0
- package/dist/aionui-resources/assistant/star-office-helper/star-office-helper.zh-CN.md +50 -0
- package/dist/aionui-resources/assistant/story-roleplay/story-roleplay.md +239 -0
- package/dist/aionui-resources/assistant/story-roleplay/story-roleplay.ru-RU.md +239 -0
- package/dist/aionui-resources/assistant/story-roleplay/story-roleplay.zh-CN.md +239 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/README.md +60 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/charts.csv +26 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/colors.csv +97 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/landing.csv +31 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/products.csv +97 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/prompts.csv +24 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/styles.csv +59 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/typography.csv +58 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/scripts/core.py +239 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/scripts/search.py +61 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/ui-ux-pro-max.md +244 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/ui-ux-pro-max.ru-RU.md +244 -0
- package/dist/aionui-resources/assistant/ui-ux-pro-max/ui-ux-pro-max.zh-CN.md +244 -0
- package/dist/aionui-resources/assistant/word-creator/word-creator.md +32 -0
- package/dist/aionui-resources/assistant/word-creator/word-creator.ru-RU.md +32 -0
- package/dist/aionui-resources/assistant/word-creator/word-creator.zh-CN.md +32 -0
- package/dist/configure-worker.js +3 -2
- package/dist/index.js +119 -84
- package/package.json +3 -2
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
# Planning with Files - Manus 风格文件规划
|
|
2
|
+
|
|
3
|
+
像 Manus(Meta 以 20 亿美元收购的 AI Agent)一样工作:使用持久化的 Markdown 文件作为"磁盘上的工作记忆"。
|
|
4
|
+
|
|
5
|
+
## 核心原则
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
上下文窗口 = RAM(易失、有限)
|
|
9
|
+
文件系统 = 磁盘(持久化、无限)
|
|
10
|
+
|
|
11
|
+
→ 所有重要信息都写入磁盘。
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## 3 文件模式
|
|
15
|
+
|
|
16
|
+
对于每个复杂任务,在项目目录中创建三个文件:
|
|
17
|
+
|
|
18
|
+
```
|
|
19
|
+
task_plan.md → 跟踪阶段和进度
|
|
20
|
+
findings.md → 存储研究和发现
|
|
21
|
+
progress.md → 会话日志和测试结果
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**模板文件位置:** `assistant/planning-with-files/templates/`
|
|
25
|
+
|
|
26
|
+
## 何时使用此模式
|
|
27
|
+
|
|
28
|
+
**适用于:**
|
|
29
|
+
|
|
30
|
+
- 多步骤任务(3+ 步骤)
|
|
31
|
+
- 研究型任务
|
|
32
|
+
- 构建/创建项目
|
|
33
|
+
- 需要多次工具调用的任务
|
|
34
|
+
- 任何需要组织的任务
|
|
35
|
+
|
|
36
|
+
**不适用于:**
|
|
37
|
+
|
|
38
|
+
- 简单问题
|
|
39
|
+
- 单文件编辑
|
|
40
|
+
- 快速查询
|
|
41
|
+
|
|
42
|
+
## 关键时机规则
|
|
43
|
+
|
|
44
|
+
这些规则模拟 hooks 以确保正确的工作流程:
|
|
45
|
+
|
|
46
|
+
### 📌 任务开始时(SessionStart)
|
|
47
|
+
|
|
48
|
+
**必须**在任何其他工作之前首先创建所有三个文件:
|
|
49
|
+
|
|
50
|
+
1. 使用模板创建 `task_plan.md`
|
|
51
|
+
2. 使用模板创建 `findings.md`
|
|
52
|
+
3. 使用模板创建 `progress.md`
|
|
53
|
+
4. 填写 task_plan.md 中的目标部分
|
|
54
|
+
|
|
55
|
+
**原因:** 没有规划文件,在 50+ 次工具调用后你会忘记目标。
|
|
56
|
+
|
|
57
|
+
### 📌 重大决策前(PreToolUse)
|
|
58
|
+
|
|
59
|
+
**必须**在以下操作前重新阅读 `task_plan.md`:
|
|
60
|
+
|
|
61
|
+
- 写入或编辑文件
|
|
62
|
+
- 执行命令
|
|
63
|
+
- 做架构决策
|
|
64
|
+
- 实现功能
|
|
65
|
+
|
|
66
|
+
**如何操作:** 使用 Read 工具刷新上下文中的计划。
|
|
67
|
+
|
|
68
|
+
**原因:** 这使目标在注意力窗口中保持新鲜(Manus 的"注意力操控")。
|
|
69
|
+
|
|
70
|
+
### 📌 文件操作后(PostToolUse)
|
|
71
|
+
|
|
72
|
+
**必须**在以下操作后立即更新状态:
|
|
73
|
+
|
|
74
|
+
- 写入文件
|
|
75
|
+
- 编辑文件
|
|
76
|
+
- 完成任务阶段
|
|
77
|
+
|
|
78
|
+
**如何操作:** 编辑 task_plan.md 更新阶段状态:
|
|
79
|
+
|
|
80
|
+
```markdown
|
|
81
|
+
- **Status:** pending → in_progress → complete
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**原因:** 跟踪进度,防止忘记已完成的工作。
|
|
85
|
+
|
|
86
|
+
### 📌 任务结束前(Stop)
|
|
87
|
+
|
|
88
|
+
**必须**验证完成度:
|
|
89
|
+
|
|
90
|
+
- 检查所有阶段是否标记为 `complete`
|
|
91
|
+
- 审查交付物部分
|
|
92
|
+
- 确保没有未解决的错误
|
|
93
|
+
|
|
94
|
+
**原因:** 防止任务未完成就提前结束。
|
|
95
|
+
|
|
96
|
+
## 6 条关键规则
|
|
97
|
+
|
|
98
|
+
### 1. 先创建计划
|
|
99
|
+
|
|
100
|
+
绝不在没有 `task_plan.md` 的情况下开始复杂任务。这是不可协商的。
|
|
101
|
+
|
|
102
|
+
```markdown
|
|
103
|
+
## 目标
|
|
104
|
+
|
|
105
|
+
[一句话描述最终状态]
|
|
106
|
+
|
|
107
|
+
## 当前阶段
|
|
108
|
+
|
|
109
|
+
Phase 1
|
|
110
|
+
|
|
111
|
+
## 阶段
|
|
112
|
+
|
|
113
|
+
### Phase 1: 需求和发现
|
|
114
|
+
|
|
115
|
+
- [ ] 理解用户意图
|
|
116
|
+
- [ ] 识别约束条件
|
|
117
|
+
- **Status:** in_progress
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
### 2. 2-Action 规则
|
|
121
|
+
|
|
122
|
+
> "每 2 次查看/浏览/搜索操作后,立即将关键发现保存到 findings.md。"
|
|
123
|
+
|
|
124
|
+
这防止视觉/多模态信息丢失。
|
|
125
|
+
|
|
126
|
+
```markdown
|
|
127
|
+
## 视觉/浏览器发现
|
|
128
|
+
|
|
129
|
+
- 截图显示登录表单有邮箱和密码字段
|
|
130
|
+
- API 文档指示 JSON 响应格式
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
### 3. 决策前先读
|
|
134
|
+
|
|
135
|
+
在重大决策前,读取计划文件。这使目标保持在注意力窗口中。
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
# 在实现功能前:
|
|
139
|
+
Read 工具 → task_plan.md
|
|
140
|
+
# 现在继续实现
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### 4. 行动后更新
|
|
144
|
+
|
|
145
|
+
完成任何阶段后:
|
|
146
|
+
|
|
147
|
+
- 标记阶段状态:`pending` → `in_progress` → `complete`
|
|
148
|
+
- 记录遇到的任何错误
|
|
149
|
+
- 注明创建/修改的文件
|
|
150
|
+
|
|
151
|
+
```markdown
|
|
152
|
+
## 遇到的错误
|
|
153
|
+
|
|
154
|
+
| 错误 | 尝试次数 | 解决方案 |
|
|
155
|
+
| ----------------- | -------- | ------------ |
|
|
156
|
+
| FileNotFoundError | 1 | 创建默认配置 |
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### 5. 记录所有错误
|
|
160
|
+
|
|
161
|
+
每个错误都记入计划文件。这建立知识库并防止重复。
|
|
162
|
+
|
|
163
|
+
### 6. 永不重复失败
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
if 操作失败:
|
|
167
|
+
下一个操作 != 相同操作
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
跟踪你尝试过的方法。改变策略。
|
|
171
|
+
|
|
172
|
+
## 3 次尝试错误协议
|
|
173
|
+
|
|
174
|
+
```
|
|
175
|
+
尝试 1:诊断和修复
|
|
176
|
+
→ 仔细阅读错误
|
|
177
|
+
→ 识别根本原因
|
|
178
|
+
→ 应用针对性修复
|
|
179
|
+
|
|
180
|
+
尝试 2:替代方法
|
|
181
|
+
→ 相同错误?尝试不同方法
|
|
182
|
+
→ 不同工具?不同库?
|
|
183
|
+
→ 绝不重复完全相同的失败操作
|
|
184
|
+
|
|
185
|
+
尝试 3:更广泛的重新思考
|
|
186
|
+
→ 质疑假设
|
|
187
|
+
→ 搜索解决方案
|
|
188
|
+
→ 考虑更新计划
|
|
189
|
+
|
|
190
|
+
3 次失败后:上报用户
|
|
191
|
+
→ 解释你尝试了什么
|
|
192
|
+
→ 分享具体错误
|
|
193
|
+
→ 寻求指导
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
## 文件用途
|
|
197
|
+
|
|
198
|
+
| 文件 | 用途 | 何时更新 |
|
|
199
|
+
| -------------- | ------------------ | ------------ |
|
|
200
|
+
| `task_plan.md` | 阶段、进度、决策 | 每个阶段后 |
|
|
201
|
+
| `findings.md` | 研究、发现 | 任何发现后 |
|
|
202
|
+
| `progress.md` | 会话日志、测试结果 | 整个会话期间 |
|
|
203
|
+
|
|
204
|
+
## 读取 vs 写入决策矩阵
|
|
205
|
+
|
|
206
|
+
| 情况 | 操作 | 原因 |
|
|
207
|
+
| -------------- | ---------------- | ------------------------ |
|
|
208
|
+
| 刚写入文件 | 不要读取 | 内容仍在上下文中 |
|
|
209
|
+
| 查看了图像/PDF | 立即写入发现 | 多模态 → 文本,避免丢失 |
|
|
210
|
+
| 浏览器返回数据 | 写入文件 | 截图不会持久化 |
|
|
211
|
+
| 开始新阶段 | 读取计划/发现 | 如果上下文过时则重新定向 |
|
|
212
|
+
| 发生错误 | 读取相关文件 | 需要当前状态来修复 |
|
|
213
|
+
| 间隔后恢复 | 读取所有规划文件 | 恢复状态 |
|
|
214
|
+
|
|
215
|
+
## 5 问题重启测试
|
|
216
|
+
|
|
217
|
+
如果你能回答这些问题,说明你的上下文管理很好:
|
|
218
|
+
|
|
219
|
+
| 问题 | 答案来源 |
|
|
220
|
+
| -------------- | ------------------------- |
|
|
221
|
+
| 我在哪里? | task_plan.md 中的当前阶段 |
|
|
222
|
+
| 我要去哪里? | 剩余阶段 |
|
|
223
|
+
| 目标是什么? | 计划中的目标陈述 |
|
|
224
|
+
| 我学到了什么? | findings.md |
|
|
225
|
+
| 我做了什么? | progress.md |
|
|
226
|
+
|
|
227
|
+
## 模板结构
|
|
228
|
+
|
|
229
|
+
### task_plan.md 模板
|
|
230
|
+
|
|
231
|
+
```markdown
|
|
232
|
+
# 任务计划:[简要描述]
|
|
233
|
+
|
|
234
|
+
## 目标
|
|
235
|
+
|
|
236
|
+
[一句话描述最终状态]
|
|
237
|
+
|
|
238
|
+
## 当前阶段
|
|
239
|
+
|
|
240
|
+
Phase 1
|
|
241
|
+
|
|
242
|
+
## 阶段
|
|
243
|
+
|
|
244
|
+
### Phase 1: 需求和发现
|
|
245
|
+
|
|
246
|
+
- [ ] 理解用户意图
|
|
247
|
+
- [ ] 识别约束和需求
|
|
248
|
+
- [ ] 在 findings.md 中记录发现
|
|
249
|
+
- **Status:** in_progress
|
|
250
|
+
|
|
251
|
+
### Phase 2: 规划和结构
|
|
252
|
+
|
|
253
|
+
- [ ] 定义技术方法
|
|
254
|
+
- [ ] 如需要则创建项目结构
|
|
255
|
+
- [ ] 记录决策及理由
|
|
256
|
+
- **Status:** pending
|
|
257
|
+
|
|
258
|
+
### Phase 3: 实现
|
|
259
|
+
|
|
260
|
+
- [ ] 逐步执行计划
|
|
261
|
+
- [ ] 执行前先将代码写入文件
|
|
262
|
+
- [ ] 增量测试
|
|
263
|
+
- **Status:** pending
|
|
264
|
+
|
|
265
|
+
### Phase 4: 测试和验证
|
|
266
|
+
|
|
267
|
+
- [ ] 验证所有需求已满足
|
|
268
|
+
- [ ] 在 progress.md 中记录测试结果
|
|
269
|
+
- [ ] 修复发现的任何问题
|
|
270
|
+
- **Status:** pending
|
|
271
|
+
|
|
272
|
+
### Phase 5: 交付
|
|
273
|
+
|
|
274
|
+
- [ ] 审查所有输出文件
|
|
275
|
+
- [ ] 确保交付物完整
|
|
276
|
+
- [ ] 交付给用户
|
|
277
|
+
- **Status:** pending
|
|
278
|
+
|
|
279
|
+
## 关键问题
|
|
280
|
+
|
|
281
|
+
1. [要回答的问题]
|
|
282
|
+
2. [要回答的问题]
|
|
283
|
+
|
|
284
|
+
## 已做决策
|
|
285
|
+
|
|
286
|
+
| 决策 | 理由 |
|
|
287
|
+
| ---- | ---- |
|
|
288
|
+
| | |
|
|
289
|
+
|
|
290
|
+
## 遇到的错误
|
|
291
|
+
|
|
292
|
+
| 错误 | 尝试次数 | 解决方案 |
|
|
293
|
+
| ---- | -------- | -------- |
|
|
294
|
+
| | 1 | |
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### findings.md 模板
|
|
298
|
+
|
|
299
|
+
```markdown
|
|
300
|
+
# 发现和决策
|
|
301
|
+
|
|
302
|
+
## 需求
|
|
303
|
+
|
|
304
|
+
## <!-- 从用户请求中捕获 -->
|
|
305
|
+
|
|
306
|
+
## 研究发现
|
|
307
|
+
|
|
308
|
+
## <!-- 探索期间的关键发现 -->
|
|
309
|
+
|
|
310
|
+
## 技术决策
|
|
311
|
+
|
|
312
|
+
<!-- 已做决策及理由 -->
|
|
313
|
+
|
|
314
|
+
| 决策 | 理由 |
|
|
315
|
+
| ---- | ---- |
|
|
316
|
+
| | |
|
|
317
|
+
|
|
318
|
+
## 遇到的问题
|
|
319
|
+
|
|
320
|
+
<!-- 错误及其解决方式 -->
|
|
321
|
+
|
|
322
|
+
| 问题 | 解决方案 |
|
|
323
|
+
| ---- | -------- |
|
|
324
|
+
| | |
|
|
325
|
+
|
|
326
|
+
## 资源
|
|
327
|
+
|
|
328
|
+
## <!-- URL、文件路径、API 引用 -->
|
|
329
|
+
|
|
330
|
+
## 视觉/浏览器发现
|
|
331
|
+
|
|
332
|
+
## <!-- 关键:每 2 次查看/浏览操作后更新 -->
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
### progress.md 模板
|
|
336
|
+
|
|
337
|
+
```markdown
|
|
338
|
+
# 进度日志
|
|
339
|
+
|
|
340
|
+
## 会话:[日期]
|
|
341
|
+
|
|
342
|
+
### Phase 1: [标题]
|
|
343
|
+
|
|
344
|
+
- **Status:** in_progress
|
|
345
|
+
- **开始时间:** [时间戳]
|
|
346
|
+
- ## 采取的行动:
|
|
347
|
+
- ## 创建/修改的文件:
|
|
348
|
+
|
|
349
|
+
## 测试结果
|
|
350
|
+
|
|
351
|
+
| 测试 | 输入 | 预期 | 实际 | 状态 |
|
|
352
|
+
| ---- | ---- | ---- | ---- | ---- |
|
|
353
|
+
| | | | | |
|
|
354
|
+
|
|
355
|
+
## 错误日志
|
|
356
|
+
|
|
357
|
+
| 时间戳 | 错误 | 尝试次数 | 解决方案 |
|
|
358
|
+
| ------ | ---- | -------- | -------- |
|
|
359
|
+
| | | 1 | |
|
|
360
|
+
|
|
361
|
+
## 5 问题重启检查
|
|
362
|
+
|
|
363
|
+
| 问题 | 答案 |
|
|
364
|
+
| -------------- | -------------- |
|
|
365
|
+
| 我在哪里? | Phase X |
|
|
366
|
+
| 我要去哪里? | 剩余阶段 |
|
|
367
|
+
| 目标是什么? | [目标陈述] |
|
|
368
|
+
| 我学到了什么? | 见 findings.md |
|
|
369
|
+
| 我做了什么? | 见上文 |
|
|
370
|
+
```
|
|
371
|
+
|
|
372
|
+
## 反模式
|
|
373
|
+
|
|
374
|
+
| 不要做 | 应该做 |
|
|
375
|
+
| --------------------- | ---------------------- |
|
|
376
|
+
| 使用 TodoWrite 持久化 | 创建 task_plan.md 文件 |
|
|
377
|
+
| 陈述一次目标就忘记 | 决策前重新读取计划 |
|
|
378
|
+
| 隐藏错误并静默重试 | 将错误记录到计划文件 |
|
|
379
|
+
| 所有内容塞进上下文 | 将大内容存储在文件中 |
|
|
380
|
+
| 立即开始执行 | 首先创建计划文件 |
|
|
381
|
+
| 重复失败的操作 | 跟踪尝试,改变方法 |
|
|
382
|
+
|
|
383
|
+
## Manus 原则
|
|
384
|
+
|
|
385
|
+
| 原则 | 实现 |
|
|
386
|
+
| ---------------- | ------------------------ |
|
|
387
|
+
| 文件系统作为内存 | 存储在文件中,而非上下文 |
|
|
388
|
+
| 注意力操控 | 决策前重新读取计划 |
|
|
389
|
+
| 错误持久化 | 在计划文件中记录失败 |
|
|
390
|
+
| 目标跟踪 | 复选框显示进度 |
|
|
391
|
+
| 完成验证 | 停止前检查所有阶段 |
|
|
392
|
+
|
|
393
|
+
---
|
|
394
|
+
|
|
395
|
+
**记住:** 你在前期收集并写入磁盘的上下文越多,执行就会越好。文件是你的持久化记忆。
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# Findings & Decisions
|
|
2
|
+
|
|
3
|
+
<!--
|
|
4
|
+
WHAT: Your knowledge base for the task. Stores everything you discover and decide.
|
|
5
|
+
WHY: Context windows are limited. This file is your "external memory" - persistent and unlimited.
|
|
6
|
+
WHEN: Update after ANY discovery, especially after 2 view/browser/search operations (2-Action Rule).
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
## Requirements
|
|
10
|
+
|
|
11
|
+
<!--
|
|
12
|
+
WHAT: What the user asked for, broken down into specific requirements.
|
|
13
|
+
WHY: Keeps requirements visible so you don't forget what you're building.
|
|
14
|
+
WHEN: Fill this in during Phase 1 (Requirements & Discovery).
|
|
15
|
+
EXAMPLE:
|
|
16
|
+
- Command-line interface
|
|
17
|
+
- Add tasks
|
|
18
|
+
- List all tasks
|
|
19
|
+
- Delete tasks
|
|
20
|
+
- Python implementation
|
|
21
|
+
-->
|
|
22
|
+
|
|
23
|
+
## <!-- Captured from user request -->
|
|
24
|
+
|
|
25
|
+
## Research Findings
|
|
26
|
+
|
|
27
|
+
<!--
|
|
28
|
+
WHAT: Key discoveries from web searches, documentation reading, or exploration.
|
|
29
|
+
WHY: Multimodal content (images, browser results) doesn't persist. Write it down immediately.
|
|
30
|
+
WHEN: After EVERY 2 view/browser/search operations, update this section (2-Action Rule).
|
|
31
|
+
EXAMPLE:
|
|
32
|
+
- Python's argparse module supports subcommands for clean CLI design
|
|
33
|
+
- JSON module handles file persistence easily
|
|
34
|
+
- Standard pattern: python script.py <command> [args]
|
|
35
|
+
-->
|
|
36
|
+
|
|
37
|
+
## <!-- Key discoveries during exploration -->
|
|
38
|
+
|
|
39
|
+
## Technical Decisions
|
|
40
|
+
|
|
41
|
+
<!--
|
|
42
|
+
WHAT: Architecture and implementation choices you've made, with reasoning.
|
|
43
|
+
WHY: You'll forget why you chose a technology or approach. This table preserves that knowledge.
|
|
44
|
+
WHEN: Update whenever you make a significant technical choice.
|
|
45
|
+
EXAMPLE:
|
|
46
|
+
| Use JSON for storage | Simple, human-readable, built-in Python support |
|
|
47
|
+
| argparse with subcommands | Clean CLI: python todo.py add "task" |
|
|
48
|
+
-->
|
|
49
|
+
<!-- Decisions made with rationale -->
|
|
50
|
+
|
|
51
|
+
| Decision | Rationale |
|
|
52
|
+
| -------- | --------- |
|
|
53
|
+
| | |
|
|
54
|
+
|
|
55
|
+
## Issues Encountered
|
|
56
|
+
|
|
57
|
+
<!--
|
|
58
|
+
WHAT: Problems you ran into and how you solved them.
|
|
59
|
+
WHY: Similar to errors in task_plan.md, but focused on broader issues (not just code errors).
|
|
60
|
+
WHEN: Document when you encounter blockers or unexpected challenges.
|
|
61
|
+
EXAMPLE:
|
|
62
|
+
| Empty file causes JSONDecodeError | Added explicit empty file check before json.load() |
|
|
63
|
+
-->
|
|
64
|
+
<!-- Errors and how they were resolved -->
|
|
65
|
+
|
|
66
|
+
| Issue | Resolution |
|
|
67
|
+
| ----- | ---------- |
|
|
68
|
+
| | |
|
|
69
|
+
|
|
70
|
+
## Resources
|
|
71
|
+
|
|
72
|
+
<!--
|
|
73
|
+
WHAT: URLs, file paths, API references, documentation links you've found useful.
|
|
74
|
+
WHY: Easy reference for later. Don't lose important links in context.
|
|
75
|
+
WHEN: Add as you discover useful resources.
|
|
76
|
+
EXAMPLE:
|
|
77
|
+
- Python argparse docs: https://docs.python.org/3/library/argparse.html
|
|
78
|
+
- Project structure: src/main.py, src/utils.py
|
|
79
|
+
-->
|
|
80
|
+
|
|
81
|
+
## <!-- URLs, file paths, API references -->
|
|
82
|
+
|
|
83
|
+
## Visual/Browser Findings
|
|
84
|
+
|
|
85
|
+
<!--
|
|
86
|
+
WHAT: Information you learned from viewing images, PDFs, or browser results.
|
|
87
|
+
WHY: CRITICAL - Visual/multimodal content doesn't persist in context. Must be captured as text.
|
|
88
|
+
WHEN: IMMEDIATELY after viewing images or browser results. Don't wait!
|
|
89
|
+
EXAMPLE:
|
|
90
|
+
- Screenshot shows login form has email and password fields
|
|
91
|
+
- Browser shows API returns JSON with "status" and "data" keys
|
|
92
|
+
-->
|
|
93
|
+
<!-- CRITICAL: Update after every 2 view/browser operations -->
|
|
94
|
+
|
|
95
|
+
## <!-- Multimodal content must be captured as text immediately -->
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
99
|
+
<!--
|
|
100
|
+
REMINDER: The 2-Action Rule
|
|
101
|
+
After every 2 view/browser/search operations, you MUST update this file.
|
|
102
|
+
This prevents visual information from being lost when context resets.
|
|
103
|
+
-->
|
|
104
|
+
|
|
105
|
+
_Update this file after every 2 view/browser/search operations_
|
|
106
|
+
_This prevents visual information from being lost_
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Progress Log
|
|
2
|
+
|
|
3
|
+
<!--
|
|
4
|
+
WHAT: Your session log - a chronological record of what you did, when, and what happened.
|
|
5
|
+
WHY: Answers "What have I done?" in the 5-Question Reboot Test. Helps you resume after breaks.
|
|
6
|
+
WHEN: Update after completing each phase or encountering errors. More detailed than task_plan.md.
|
|
7
|
+
-->
|
|
8
|
+
|
|
9
|
+
## Session: [DATE]
|
|
10
|
+
|
|
11
|
+
<!--
|
|
12
|
+
WHAT: The date of this work session.
|
|
13
|
+
WHY: Helps track when work happened, useful for resuming after time gaps.
|
|
14
|
+
EXAMPLE: 2026-01-15
|
|
15
|
+
-->
|
|
16
|
+
|
|
17
|
+
### Phase 1: [Title]
|
|
18
|
+
|
|
19
|
+
<!--
|
|
20
|
+
WHAT: Detailed log of actions taken during this phase.
|
|
21
|
+
WHY: Provides context for what was done, making it easier to resume or debug.
|
|
22
|
+
WHEN: Update as you work through the phase, or at least when you complete it.
|
|
23
|
+
-->
|
|
24
|
+
|
|
25
|
+
- **Status:** in_progress
|
|
26
|
+
- **Started:** [timestamp]
|
|
27
|
+
<!--
|
|
28
|
+
STATUS: Same as task_plan.md (pending, in_progress, complete)
|
|
29
|
+
TIMESTAMP: When you started this phase (e.g., "2026-01-15 10:00")
|
|
30
|
+
-->
|
|
31
|
+
- Actions taken:
|
|
32
|
+
<!--
|
|
33
|
+
WHAT: List of specific actions you performed.
|
|
34
|
+
EXAMPLE:
|
|
35
|
+
- Created todo.py with basic structure
|
|
36
|
+
- Implemented add functionality
|
|
37
|
+
- Fixed FileNotFoundError
|
|
38
|
+
-->
|
|
39
|
+
-
|
|
40
|
+
- Files created/modified:
|
|
41
|
+
<!--
|
|
42
|
+
WHAT: Which files you created or changed.
|
|
43
|
+
WHY: Quick reference for what was touched. Helps with debugging and review.
|
|
44
|
+
EXAMPLE:
|
|
45
|
+
- todo.py (created)
|
|
46
|
+
- todos.json (created by app)
|
|
47
|
+
- task_plan.md (updated)
|
|
48
|
+
-->
|
|
49
|
+
-
|
|
50
|
+
|
|
51
|
+
### Phase 2: [Title]
|
|
52
|
+
|
|
53
|
+
<!--
|
|
54
|
+
WHAT: Same structure as Phase 1, for the next phase.
|
|
55
|
+
WHY: Keep a separate log entry for each phase to track progress clearly.
|
|
56
|
+
-->
|
|
57
|
+
|
|
58
|
+
- **Status:** pending
|
|
59
|
+
- ## Actions taken:
|
|
60
|
+
- ## Files created/modified:
|
|
61
|
+
|
|
62
|
+
## Test Results
|
|
63
|
+
|
|
64
|
+
<!--
|
|
65
|
+
WHAT: Table of tests you ran, what you expected, what actually happened.
|
|
66
|
+
WHY: Documents verification of functionality. Helps catch regressions.
|
|
67
|
+
WHEN: Update as you test features, especially during Phase 4 (Testing & Verification).
|
|
68
|
+
EXAMPLE:
|
|
69
|
+
| Add task | python todo.py add "Buy milk" | Task added | Task added successfully | ✓ |
|
|
70
|
+
| List tasks | python todo.py list | Shows all tasks | Shows all tasks | ✓ |
|
|
71
|
+
-->
|
|
72
|
+
|
|
73
|
+
| Test | Input | Expected | Actual | Status |
|
|
74
|
+
| ---- | ----- | -------- | ------ | ------ |
|
|
75
|
+
| | | | | |
|
|
76
|
+
|
|
77
|
+
## Error Log
|
|
78
|
+
|
|
79
|
+
<!--
|
|
80
|
+
WHAT: Detailed log of every error encountered, with timestamps and resolution attempts.
|
|
81
|
+
WHY: More detailed than task_plan.md's error table. Helps you learn from mistakes.
|
|
82
|
+
WHEN: Add immediately when an error occurs, even if you fix it quickly.
|
|
83
|
+
EXAMPLE:
|
|
84
|
+
| 2026-01-15 10:35 | FileNotFoundError | 1 | Added file existence check |
|
|
85
|
+
| 2026-01-15 10:37 | JSONDecodeError | 2 | Added empty file handling |
|
|
86
|
+
-->
|
|
87
|
+
<!-- Keep ALL errors - they help avoid repetition -->
|
|
88
|
+
|
|
89
|
+
| Timestamp | Error | Attempt | Resolution |
|
|
90
|
+
| --------- | ----- | ------- | ---------- |
|
|
91
|
+
| | | 1 | |
|
|
92
|
+
|
|
93
|
+
## 5-Question Reboot Check
|
|
94
|
+
|
|
95
|
+
<!--
|
|
96
|
+
WHAT: Five questions that verify your context is solid. If you can answer these, you're on track.
|
|
97
|
+
WHY: This is the "reboot test" - if you can answer all 5, you can resume work effectively.
|
|
98
|
+
WHEN: Update periodically, especially when resuming after a break or context reset.
|
|
99
|
+
|
|
100
|
+
THE 5 QUESTIONS:
|
|
101
|
+
1. Where am I? → Current phase in task_plan.md
|
|
102
|
+
2. Where am I going? → Remaining phases
|
|
103
|
+
3. What's the goal? → Goal statement in task_plan.md
|
|
104
|
+
4. What have I learned? → See findings.md
|
|
105
|
+
5. What have I done? → See progress.md (this file)
|
|
106
|
+
-->
|
|
107
|
+
<!-- If you can answer these, context is solid -->
|
|
108
|
+
|
|
109
|
+
| Question | Answer |
|
|
110
|
+
| -------------------- | ---------------- |
|
|
111
|
+
| Where am I? | Phase X |
|
|
112
|
+
| Where am I going? | Remaining phases |
|
|
113
|
+
| What's the goal? | [goal statement] |
|
|
114
|
+
| What have I learned? | See findings.md |
|
|
115
|
+
| What have I done? | See above |
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
<!--
|
|
120
|
+
REMINDER:
|
|
121
|
+
- Update after completing each phase or encountering errors
|
|
122
|
+
- Be detailed - this is your "what happened" log
|
|
123
|
+
- Include timestamps for errors to track when issues occurred
|
|
124
|
+
-->
|
|
125
|
+
|
|
126
|
+
_Update after completing each phase or encountering errors_
|