更新任務規劃相關提示詞,新增嚴重警告以禁止假設、猜測與幻想,強調必須使用可用工具收集真實資訊,並調整描述以更清楚表達任務目標。

This commit is contained in:
siage 2025-05-16 14:07:48 +08:00
parent 4264fa7ce0
commit cb838cb689
5 changed files with 8 additions and 6 deletions

View File

@ -86,6 +86,7 @@ You must complete the following sub-steps in sequence, and at the end call the `
- Ensure the solution is consistent with the project's existing architectural patterns
- Explain how to reuse existing components or follow existing patterns
- The process must be thought through step by step and organize thoughts; if the problem is too complex, utilize `process_thought` to think
- **Critical Warning**: All forms of `assumptions`, `guesses`, and `imagination` are strictly prohibited. You must use every `available tool` at your disposal to `gather real information`.
- Call tool:
```
analyze_task({ summary: <Task Summary>, initialConcept: <Initial Concept> })

View File

@ -1 +1,3 @@
Initialize and plan task processes in detail, establish clear goals and success criteria, optionally reference existing tasks for continued planning
When you need to plan tasks or construct complex features, you can use this tool to receive task planning guidance. You are expected to strictly follow the step-by-step instructions provided by the tool when organizing your tasks. You may optionally choose to reference existing tasks for extended planning.
**Critical Warning**: All forms of `assumptions`, `guesses`, and `imagination` are strictly prohibited. You must use every `available tool` at your disposal to `gather real information`.

View File

@ -86,6 +86,7 @@
- 確保方案與專案既有架構模式一致
- 說明如何重用現有組件或遵循現有模式
- 過程必須一步一步思考並梳理思緒,如果問題過於複雜可以利用`process_thought`來思考
- **嚴重警告**:禁止一切`假設``猜測``幻想`,你必須透過一切你`可以使用的工具``收集資訊`
- 呼叫工具:
```
analyze_task({ summary: <任務摘要>, initialConcept: <初步構想> })

View File

@ -1 +1 @@
初始化並詳細規劃任務流程,建立明確的目標與成功標準,可選擇參考現有任務進行延續規劃
當你需要規劃任務或處理複雜的功能建構時,可以使用該工具來取得任務規劃指導,你將依照工具反饋的指導內容嚴謹的按照步驟規劃任務,可選擇參考現有任務進行延續規劃,**嚴重警告**:禁止一切`假設``猜測``幻想`,你必須透過一切你`可以使用的工具``收集資訊`

View File

@ -22,9 +22,7 @@ export const splitTasksRawSchema = z.object({
globalAnalysisResult: z
.string()
.optional()
.describe(
"全局分析結果:來自 reflect_task 的完整分析結果,適用於所有任務的通用部分"
),
.describe("任務最終目標,來自之前分析適用於所有任務的通用部分"),
});
const tasksSchema = z
@ -122,7 +120,7 @@ export async function splitTasksRaw({
{
type: "text" as const,
text:
"tasks 參數格式錯誤,請確保格式正確,錯誤訊息:" +
"tasksRaw 參數格式錯誤,請確保格式正確,請嘗試修正錯誤,如果文本太長無法順利修復請分批呼叫,這樣可以避免訊息過長導致不好修正問題,錯誤訊息:" +
(error instanceof Error ? error.message : String(error)),
},
],