mirror of
https://github.com/cjo4m06/mcp-shrimp-task-manager.git
synced 2025-07-26 07:52:25 +08:00
更新任務模板,新增「請嚴格遵守以下指導」的提示,強化任務執行、分析、完成及驗證的指導性,並調整決策點的描述以提升用戶體驗。
This commit is contained in:
parent
0bad1887ed
commit
f0283ffe97
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// 基本任務分析模板
|
||||
export const analyzeTaskTemplate = `## 代碼庫分析\n\n### 任務摘要\n\`\`\`\n{summary}\n\`\`\`\n\n已收到初步解答構想:\n\n\`\`\`\n{initialConcept}\n\`\`\`\n\n`;
|
||||
export const analyzeTaskTemplate = `**請嚴格遵守以下指導**\n## 代碼庫分析\n\n### 任務摘要\n\`\`\`\n{summary}\n\`\`\`\n\n已收到初步解答構想:\n\n\`\`\`\n{initialConcept}\n\`\`\`\n\n`;
|
||||
|
||||
// 技術審核要點模板
|
||||
export const technicalReviewTemplate = `## 技術審核要點\n\n### 1. 代碼庫分析
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// 基本任務完成確認模板
|
||||
export const completeTaskConfirmationTemplate = `## 任務完成確認\n\n任務 "{name}" (ID: \`{id}\`) 已於 {completionTime} 成功標記為完成。\n\n`;
|
||||
export const completeTaskConfirmationTemplate = `**請嚴格遵守以下指導**\n## 任務完成確認\n\n任務 "{name}" (ID: \`{id}\`) 已於 {completionTime} 成功標記為完成。\n\n`;
|
||||
|
||||
// 任務摘要要求模板
|
||||
export const taskSummaryRequirementsTemplate = `## 任務摘要要求\n\n請提供此次完成任務的摘要總結,包含以下關鍵要點:\n\n1. 任務目標與主要成果\n2. 實施的解決方案要點\n3. 遇到的主要挑戰及解決方法\n\n`;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// 基本任務執行模板
|
||||
export const executeTaskTemplate = `## 任務執行\n\n**名稱:** {name}\n**ID:** \`{id}\`\n**描述:** {description}\n{notes}\n`;
|
||||
export const executeTaskTemplate = `**請嚴格遵守以下指導**\n## 任務執行\n\n**名稱:** {name}\n**ID:** \`{id}\`\n**描述:** {description}\n{notes}\n`;
|
||||
|
||||
// 實現指南模板
|
||||
export const implementationGuideTemplate = `\n## 實現指南\n\n{implementationGuide}\n\n`;
|
||||
@ -60,4 +60,4 @@ export const qualityRequirement2 = `- **代碼質量** - 符合編碼標準,
|
||||
export const qualityRequirement3 = `- **效能考量** - 注意算法效率和資源使用\n\n`;
|
||||
|
||||
// 完成提示模板
|
||||
export const completionReminderTemplate = `完成後使用「verify_task」工具進行驗證。`;
|
||||
export const completionReminderTemplate = `開始根據指示執行任務,執行完成後請直接使用「verify_task」工具進行驗證。`;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// 基本任務分析模板
|
||||
export const planTaskTemplate = `## 任務分析\n\n{description}\n\n`;
|
||||
export const planTaskTemplate = `**請嚴格遵守以下指導**\n## 任務分析\n\n{description}\n\n`;
|
||||
|
||||
// 要求與限制模板
|
||||
export const requirementsTemplate = `## 要求與限制\n\n{requirements}\n\n`;
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// 基本方案評估模板
|
||||
export const reflectTaskTemplate = `## 方案評估\n\n### 任務摘要\n\`\`\`\n{summary}\n\`\`\`\n\n### 分析結果\n\`\`\`\n{analysis}\n\`\`\`\n\n`;
|
||||
export const reflectTaskTemplate = `**請嚴格遵守以下指導**\n## 方案評估\n\n### 任務摘要\n\`\`\`\n{summary}\n\`\`\`\n\n### 分析結果\n\`\`\`\n{analysis}\n\`\`\`\n\n`;
|
||||
|
||||
// 評估要點模板
|
||||
export const evaluationPointsTemplate = `## 評估要點
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
|
||||
// 基本任務驗證模板
|
||||
export const verifyTaskTemplate = `## 任務驗證\n\n**名稱:** {name}\n**ID:** \`{id}\`\n**描述:** {description}\n{notes}\n`;
|
||||
export const verifyTaskTemplate = `**請嚴格遵守以下指導**\n## 任務驗證\n\n**名稱:** {name}\n**ID:** \`{id}\`\n**描述:** {description}\n{notes}\n`;
|
||||
|
||||
// 驗證標準模板
|
||||
export const verificationCriteriaTemplate = `\n## 驗證標準\n\n{verificationCriteria}\n\n`;
|
||||
@ -22,7 +22,7 @@ export const standardVerificationCriteriaTemplate = `## 驗證標準\n\n1. **需
|
||||
export const reportRequirementsTemplate = `## 報告要求\n\n提供整體評分和評級,各項標準評估,問題與建議,及最終結論。\n\n`;
|
||||
|
||||
// 決策點模板
|
||||
export const decisionPointsTemplate = `## 決策點\n\n根據驗證結果選擇:\n`;
|
||||
export const decisionPoint1 = `- **嚴重錯誤**:使用「plan_task」工具重新規劃任務\n`;
|
||||
export const decisionPointsTemplate = `## 下一步\n\n**根據驗證結果選擇你的下一步行動:**\n`;
|
||||
export const decisionPoint1 = `- **嚴重錯誤**:直接使用「plan_task」工具重新規劃任務\n`;
|
||||
export const decisionPoint2 = `- **輕微錯誤**:直接修復問題\n`;
|
||||
export const decisionPoint3 = `- **無錯誤**:使用「complete_task」工具標記完成\n`;
|
||||
export const decisionPoint3 = `- **無錯誤**:直接使用「complete_task」工具標記完成\n`;
|
||||
|
@ -38,6 +38,10 @@ function formatThought(thoughtData: ThoughtData): string {
|
||||
);
|
||||
}
|
||||
|
||||
optionalElements.push(
|
||||
`**禁止事項:** 你應該禁止一切猜測,任何疑慮請完整查看相關程式碼或使用網路搜尋工具查詢`
|
||||
);
|
||||
|
||||
// 添加下一步指示
|
||||
const nextStepIndication = thoughtData.nextThoughtNeeded
|
||||
? "需要更多思考,繼續使用 「process_thought」 工具思考找尋答案"
|
||||
|
Loading…
x
Reference in New Issue
Block a user