mcp-taskflow 0.1.0
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/CHANGELOG.md +13 -0
- package/LICENSE.md +21 -0
- package/README.md +275 -0
- package/dist/config/pathResolver.d.ts +33 -0
- package/dist/config/pathResolver.d.ts.map +1 -0
- package/dist/config/pathResolver.js +130 -0
- package/dist/config/pathResolver.js.map +1 -0
- package/dist/data/fileOperations.d.ts +43 -0
- package/dist/data/fileOperations.d.ts.map +1 -0
- package/dist/data/fileOperations.js +248 -0
- package/dist/data/fileOperations.js.map +1 -0
- package/dist/data/memoryStore.d.ts +86 -0
- package/dist/data/memoryStore.d.ts.map +1 -0
- package/dist/data/memoryStore.js +216 -0
- package/dist/data/memoryStore.js.map +1 -0
- package/dist/data/rulesStore.d.ts +63 -0
- package/dist/data/rulesStore.d.ts.map +1 -0
- package/dist/data/rulesStore.js +196 -0
- package/dist/data/rulesStore.js.map +1 -0
- package/dist/data/schemas.d.ts +840 -0
- package/dist/data/schemas.d.ts.map +1 -0
- package/dist/data/schemas.js +265 -0
- package/dist/data/schemas.js.map +1 -0
- package/dist/data/taskSearchService.d.ts +110 -0
- package/dist/data/taskSearchService.d.ts.map +1 -0
- package/dist/data/taskSearchService.js +165 -0
- package/dist/data/taskSearchService.js.map +1 -0
- package/dist/data/taskStore.d.ts +192 -0
- package/dist/data/taskStore.d.ts.map +1 -0
- package/dist/data/taskStore.js +347 -0
- package/dist/data/taskStore.js.map +1 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +86 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts/index.d.ts +12 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +17 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/projectPromptBuilder.d.ts +13 -0
- package/dist/prompts/projectPromptBuilder.d.ts.map +1 -0
- package/dist/prompts/projectPromptBuilder.js +29 -0
- package/dist/prompts/projectPromptBuilder.js.map +1 -0
- package/dist/prompts/researchPromptBuilder.d.ts +10 -0
- package/dist/prompts/researchPromptBuilder.d.ts.map +1 -0
- package/dist/prompts/researchPromptBuilder.js +20 -0
- package/dist/prompts/researchPromptBuilder.js.map +1 -0
- package/dist/prompts/taskPromptBuilders.d.ts +87 -0
- package/dist/prompts/taskPromptBuilders.d.ts.map +1 -0
- package/dist/prompts/taskPromptBuilders.js +529 -0
- package/dist/prompts/taskPromptBuilders.js.map +1 -0
- package/dist/prompts/templateEngine.d.ts +102 -0
- package/dist/prompts/templateEngine.d.ts.map +1 -0
- package/dist/prompts/templateEngine.js +145 -0
- package/dist/prompts/templateEngine.js.map +1 -0
- package/dist/prompts/templateLoader.d.ts +61 -0
- package/dist/prompts/templateLoader.d.ts.map +1 -0
- package/dist/prompts/templateLoader.js +129 -0
- package/dist/prompts/templateLoader.js.map +1 -0
- package/dist/prompts/templates/v1/templates_en/analyzeTask/index.md +65 -0
- package/dist/prompts/templates/v1/templates_en/analyzeTask/iteration.md +12 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/backupInfo.md +1 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/cancel.md +7 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/empty.md +5 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/index.md +5 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/result.md +7 -0
- package/dist/prompts/templates/v1/templates_en/clearAllTasks/success.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/completed.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/index.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/notFound.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/result.md +5 -0
- package/dist/prompts/templates/v1/templates_en/deleteTask/success.md +5 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/analysisResult.md +3 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/complexity.md +15 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/dependencies.md +3 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/dependencyTasks.md +3 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/implementationGuide.md +3 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/index.md +39 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/notes.md +1 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/relatedFilesSummary.md +5 -0
- package/dist/prompts/templates/v1/templates_en/executeTask/verificationCriteria.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/complatedSummary.md +5 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/dependencies.md +1 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/error.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/implementationGuide.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/index.md +25 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/notFound.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/notes.md +1 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/relatedFiles.md +3 -0
- package/dist/prompts/templates/v1/templates_en/getTaskDetail/verificationCriteria.md +3 -0
- package/dist/prompts/templates/v1/templates_en/initProjectRules/index.md +81 -0
- package/dist/prompts/templates/v1/templates_en/listTasks/index.md +7 -0
- package/dist/prompts/templates/v1/templates_en/listTasks/notFound.md +3 -0
- package/dist/prompts/templates/v1/templates_en/listTasks/taskDetails.md +13 -0
- package/dist/prompts/templates/v1/templates_en/planTask/hasThought.md +4 -0
- package/dist/prompts/templates/v1/templates_en/planTask/index.md +96 -0
- package/dist/prompts/templates/v1/templates_en/planTask/noThought.md +4 -0
- package/dist/prompts/templates/v1/templates_en/planTask/tasks.md +17 -0
- package/dist/prompts/templates/v1/templates_en/processThought/complatedThought.md +6 -0
- package/dist/prompts/templates/v1/templates_en/processThought/index.md +13 -0
- package/dist/prompts/templates/v1/templates_en/processThought/moreThought.md +1 -0
- package/dist/prompts/templates/v1/templates_en/queryTask/index.md +24 -0
- package/dist/prompts/templates/v1/templates_en/queryTask/notFound.md +15 -0
- package/dist/prompts/templates/v1/templates_en/queryTask/taskDetails.md +5 -0
- package/dist/prompts/templates/v1/templates_en/reflectTask/index.md +57 -0
- package/dist/prompts/templates/v1/templates_en/researchMode/index.md +95 -0
- package/dist/prompts/templates/v1/templates_en/researchMode/previousState.md +9 -0
- package/dist/prompts/templates/v1/templates_en/splitTasks/index.md +34 -0
- package/dist/prompts/templates/v1/templates_en/splitTasks/taskDetails.md +12 -0
- package/dist/prompts/templates/v1/templates_en/tests/basic.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/analyzeTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/clearAllTasks.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/deleteTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/executeTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/getTaskDetail.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/initProjectRules.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/listTasks.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/planTask.md +3 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/processThought.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/queryTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/reflectTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/researchMode.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/splitTasks.md +83 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/updateTask.md +1 -0
- package/dist/prompts/templates/v1/templates_en/toolsDescription/verifyTask.md +37 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/emptyUpdate.md +5 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/fileDetails.md +1 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/index.md +7 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/notFound.md +5 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/success.md +9 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/successDetails.md +3 -0
- package/dist/prompts/templates/v1/templates_en/updateTaskContent/validation.md +5 -0
- package/dist/prompts/templates/v1/templates_en/verifyTask/index.md +19 -0
- package/dist/prompts/templates/v1/templates_en/verifyTask/noPass.md +12 -0
- package/dist/prompts/thoughtPromptBuilder.d.ts +11 -0
- package/dist/prompts/thoughtPromptBuilder.d.ts.map +1 -0
- package/dist/prompts/thoughtPromptBuilder.js +30 -0
- package/dist/prompts/thoughtPromptBuilder.js.map +1 -0
- package/dist/server/container.d.ts +111 -0
- package/dist/server/container.d.ts.map +1 -0
- package/dist/server/container.js +135 -0
- package/dist/server/container.js.map +1 -0
- package/dist/server/logger.d.ts +98 -0
- package/dist/server/logger.d.ts.map +1 -0
- package/dist/server/logger.js +295 -0
- package/dist/server/logger.js.map +1 -0
- package/dist/server/mcpServer.d.ts +162 -0
- package/dist/server/mcpServer.d.ts.map +1 -0
- package/dist/server/mcpServer.js +236 -0
- package/dist/server/mcpServer.js.map +1 -0
- package/dist/tools/project/index.d.ts +7 -0
- package/dist/tools/project/index.d.ts.map +1 -0
- package/dist/tools/project/index.js +7 -0
- package/dist/tools/project/index.js.map +1 -0
- package/dist/tools/project/projectTools.d.ts +17 -0
- package/dist/tools/project/projectTools.d.ts.map +1 -0
- package/dist/tools/project/projectTools.js +73 -0
- package/dist/tools/project/projectTools.js.map +1 -0
- package/dist/tools/research/index.d.ts +7 -0
- package/dist/tools/research/index.d.ts.map +1 -0
- package/dist/tools/research/index.js +7 -0
- package/dist/tools/research/index.js.map +1 -0
- package/dist/tools/research/researchTools.d.ts +16 -0
- package/dist/tools/research/researchTools.d.ts.map +1 -0
- package/dist/tools/research/researchTools.js +41 -0
- package/dist/tools/research/researchTools.js.map +1 -0
- package/dist/tools/task/index.d.ts +8 -0
- package/dist/tools/task/index.d.ts.map +1 -0
- package/dist/tools/task/index.js +8 -0
- package/dist/tools/task/index.js.map +1 -0
- package/dist/tools/task/taskTools.d.ts +32 -0
- package/dist/tools/task/taskTools.d.ts.map +1 -0
- package/dist/tools/task/taskTools.js +542 -0
- package/dist/tools/task/taskTools.js.map +1 -0
- package/dist/tools/thought/index.d.ts +7 -0
- package/dist/tools/thought/index.d.ts.map +1 -0
- package/dist/tools/thought/index.js +7 -0
- package/dist/tools/thought/index.js.map +1 -0
- package/dist/tools/thought/thoughtTools.d.ts +16 -0
- package/dist/tools/thought/thoughtTools.d.ts.map +1 -0
- package/dist/tools/thought/thoughtTools.js +47 -0
- package/dist/tools/thought/thoughtTools.js.map +1 -0
- package/docs/API.md +32 -0
- package/docs/ARCHITECTURE.md +44 -0
- package/docs/COMPATIBILITY_REPORT.md +26 -0
- package/docs/PERFORMANCE.md +66 -0
- package/package.json +77 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
Please use the "process_thought" tool to consider the following issues
|
|
2
|
+
|
|
3
|
+
# Project Standards Initialization Guide
|
|
4
|
+
|
|
5
|
+
## Purpose
|
|
6
|
+
|
|
7
|
+
**This document is specifically designed for AI Agents, not for general developer documentation.**
|
|
8
|
+
**Must generate a project standards document (taskflow-rules.md) exclusively for AI Agent operational use.**
|
|
9
|
+
|
|
10
|
+
**Must focus on the following key objectives:**
|
|
11
|
+
|
|
12
|
+
- Clearly define project-specific rules and limitations, prohibit inclusion of general development knowledge
|
|
13
|
+
- Provide project-specific information needed for AI to execute tasks
|
|
14
|
+
- Provide clear guidance for AI decision-making processes
|
|
15
|
+
|
|
16
|
+
**Mandatory requirements:**
|
|
17
|
+
|
|
18
|
+
- Completed standards must enable AI Agents to immediately understand which files must be referenced or modified
|
|
19
|
+
- Clearly indicate multi-file coordination requirements (e.g., when modifying README.md, /docs/zh/README.md must be updated simultaneously)
|
|
20
|
+
- Use imperative language to define rules, avoid explanatory content
|
|
21
|
+
- Do not explain project functionality, but rather how to modify or add functionality
|
|
22
|
+
- Please provide examples of what can be done and what cannot be done
|
|
23
|
+
- Must **recursively** check all folders and files
|
|
24
|
+
|
|
25
|
+
**Strictly prohibited:**
|
|
26
|
+
|
|
27
|
+
- Including general development knowledge
|
|
28
|
+
- Including general development knowledge already known to LLMs
|
|
29
|
+
- Explaining project functionality
|
|
30
|
+
|
|
31
|
+
## Suggested Structure
|
|
32
|
+
|
|
33
|
+
Please use the following structure to create the standards document:
|
|
34
|
+
|
|
35
|
+
```markdown
|
|
36
|
+
# Development Guidelines
|
|
37
|
+
|
|
38
|
+
## Title
|
|
39
|
+
|
|
40
|
+
### Subtitle
|
|
41
|
+
|
|
42
|
+
- Rule one
|
|
43
|
+
- Rule two
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Content Guidelines
|
|
47
|
+
|
|
48
|
+
The standards document should include but not be limited to the following:
|
|
49
|
+
|
|
50
|
+
1. **Project Overview** - Brief description of the project's purpose, technology stack, and core functionality
|
|
51
|
+
2. **Project Architecture** - Description of main directory structure and module divisions
|
|
52
|
+
3. **Code Standards** - Including naming conventions, formatting requirements, comment rules, etc.
|
|
53
|
+
4. **Functionality Implementation Standards** - Mainly explaining how to implement functionality and points to note
|
|
54
|
+
5. **Framework/Plugin/Third-party Library Usage Standards** - Usage standards for external dependencies
|
|
55
|
+
6. **Workflow Standards** - Workflow guidelines, including workflow diagrams or data flow
|
|
56
|
+
7. **Key File Interaction Standards** - Interaction standards for key files, which files need to be modified simultaneously
|
|
57
|
+
8. **AI Decision-making Standards** - Provide decision trees and priority judgment criteria for handling ambiguous situations
|
|
58
|
+
9. **Prohibited Actions** - Clearly list practices that are prohibited
|
|
59
|
+
|
|
60
|
+
## Notes
|
|
61
|
+
|
|
62
|
+
1. **AI Optimization** - The document will be provided as a prompt to the Coding Agent AI and should be optimized for prompts
|
|
63
|
+
2. **Focus on Development Guidance** - Provide rules for ongoing development, not usage tutorials
|
|
64
|
+
3. **Specific Examples** - Provide specific examples of "what should be done" and "what should not be done" whenever possible
|
|
65
|
+
4. **Use Imperative Language** - Must use direct instructions rather than descriptive language, reduce explanatory content
|
|
66
|
+
5. **Structured Presentation** - All content must be presented in structured formats such as lists, tables, etc., for easy AI parsing
|
|
67
|
+
6. **Highlight Key Markings** - Use bold, warning markers, etc. to highlight key rules and taboos
|
|
68
|
+
7. **Remove General Knowledge** - Prohibit including general development knowledge already known to LLMs, only include project-specific rules
|
|
69
|
+
|
|
70
|
+
## Update Mode Guidelines
|
|
71
|
+
|
|
72
|
+
1. **Minimal Changes** - When users request updates to project rules, you should maintain existing rules unless necessary, with the principle of minimal changes
|
|
73
|
+
2. **Timeliness** - You should check if existing rules are still beneficial or outdated, as users may have modified or removed relevant code, you must correct or remove corresponding rules
|
|
74
|
+
3. **Completeness** - You should check all folders and file contents in the existing project, as users may have added or modified relevant code, you must supplement corresponding rules
|
|
75
|
+
4. **Autonomous Handling of Ambiguous Requests**: When receiving ambiguous instructions such as "update rules" without specifying concrete content, the AI **must** first attempt to independently analyze the current codebase, recent changes (if available), and existing `taskflow-rules.md` content to infer possible update points. List these inferred points and their rationale during the `process_thought` phase, then propose specific modification suggestions. **Strictly prohibited** from seeking clarification from users on ambiguous update requests before performing this autonomous analysis.
|
|
76
|
+
|
|
77
|
+
Based on the above guidelines, create a file named taskflow-rules.md and save it in the project root directory
|
|
78
|
+
|
|
79
|
+
**[AI Agent Action]** Now start calling the "process_thought" tool to think about how to write standards document that guides the Coding Agent
|
|
80
|
+
**[AI Agent Action]** After completing the thought process, immediately edit the taskflow-rules.md file, prohibited from calling the "analyze_task" tool
|
|
81
|
+
**[AI Agent Action]** Strictly forbidden not to call tools. The AI must independently complete the entire process from receiving instructions to implementing modifications, and should not interrupt the process to seek user input unless encountering technical errors or unresolvable dependency conflicts.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
**Step Two: Must forcibly use "process_thought" to think about the answer (prohibited from directly using analyze_task)**
|
|
2
|
+
|
|
3
|
+
1. **Mandatory Thinking Process** - Must demonstrate step-by-step reasoning process, including assumptions, verification, and adjustments
|
|
4
|
+
2. Warning: Must first use the "process_thought" tool to think, strictly prohibited from directly using analyze_task or answering directly
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
## Task Analysis
|
|
2
|
+
|
|
3
|
+
You must complete the following sub-steps in sequence, and at the end call the `analyze_task` tool to pass the preliminary design solution to the next stage.
|
|
4
|
+
|
|
5
|
+
1. **Analysis Purpose**
|
|
6
|
+
|
|
7
|
+
- Read and understand:
|
|
8
|
+
```
|
|
9
|
+
Task Description: {description}
|
|
10
|
+
Task Requirements and Constraints: {requirements}
|
|
11
|
+
{tasksTemplate}
|
|
12
|
+
```
|
|
13
|
+
- Confirm:
|
|
14
|
+
- Task objectives and expected outcomes
|
|
15
|
+
- Technical challenges and key decision points
|
|
16
|
+
- Integration requirements with existing systems/architecture
|
|
17
|
+
|
|
18
|
+
2. **Identify Project Architecture**
|
|
19
|
+
|
|
20
|
+
- View key configuration files and structures:
|
|
21
|
+
- Examine root directory structure and important configuration files (package.json, tsconfig.json, etc.)
|
|
22
|
+
- If taskflow-rules.md exists at `{rulesPath}`, please read and refer to it in detail
|
|
23
|
+
- Check project memory directory at `{memoryDir}` for existing context
|
|
24
|
+
- Analyze main directory organization and module divisions
|
|
25
|
+
- Identify architectural patterns:
|
|
26
|
+
- Identify core design patterns and architectural styles (MVC, MVVM, microservices, etc.)
|
|
27
|
+
- Determine the project's layered structure and module boundaries
|
|
28
|
+
- Analyze core components:
|
|
29
|
+
- Research main class/interface designs and dependencies
|
|
30
|
+
- Mark key services/utility classes and their responsibilities and uses
|
|
31
|
+
- Document existing patterns:
|
|
32
|
+
- Document discovered code organization methods and architectural regularities
|
|
33
|
+
- Establish deep understanding of the project's technology stack and architectural characteristics
|
|
34
|
+
|
|
35
|
+
3. **Collect Information**
|
|
36
|
+
If there is any uncertainty or lack of confidence, **must do one of the following**:
|
|
37
|
+
|
|
38
|
+
- Ask the user for clarification
|
|
39
|
+
- Use `query_task`, `read_file`, `codebase_search` or other similar tools to query existing programs/architecture
|
|
40
|
+
- Use `web_search` or other web search tools to query unfamiliar concepts or technologies
|
|
41
|
+
Speculation is prohibited; all information must have traceable sources.
|
|
42
|
+
|
|
43
|
+
4. **Check Existing Programs and Structures**
|
|
44
|
+
|
|
45
|
+
- Use precise search strategies:
|
|
46
|
+
- Use `read_file`, `codebase_search` or other similar tools to query existing implementation methods related to the task
|
|
47
|
+
- Look for existing code with functionality similar to the current task
|
|
48
|
+
- Analyze directory structure to find similar functional modules
|
|
49
|
+
- Analyze code style and conventions:
|
|
50
|
+
- Check naming conventions of existing components (camelCase, snake_case, etc.)
|
|
51
|
+
- Confirm comment styles and format conventions
|
|
52
|
+
- Analyze error handling patterns and logging methods
|
|
53
|
+
- Record and follow discovered patterns:
|
|
54
|
+
- Document code patterns and organizational structures in detail
|
|
55
|
+
- Plan how to extend these patterns in the design
|
|
56
|
+
- Determine if there is overlap with existing functionality, and decide whether to "reuse" or "abstract and refactor"
|
|
57
|
+
- **Do not** generate designs before checking existing code; must "check first, then design"
|
|
58
|
+
|
|
59
|
+
5. **Task Type-Specific Guidelines**
|
|
60
|
+
|
|
61
|
+
Based on task characteristics, additionally consider the following specific guidelines:
|
|
62
|
+
|
|
63
|
+
- **Frontend/UI Tasks**:
|
|
64
|
+
|
|
65
|
+
- Prioritize examining existing UI component libraries and design systems
|
|
66
|
+
- Analyze page layout structures and component composition patterns
|
|
67
|
+
- Confirm style management methods (CSS modules, Styled Components, etc.)
|
|
68
|
+
- Understand state management and data flow patterns
|
|
69
|
+
|
|
70
|
+
- **Backend API Tasks**:
|
|
71
|
+
|
|
72
|
+
- Check API route structures and naming conventions
|
|
73
|
+
- Analyze request handling and middleware patterns
|
|
74
|
+
- Confirm error handling and response format standards
|
|
75
|
+
- Understand authorization/authentication implementation methods
|
|
76
|
+
|
|
77
|
+
- **Database Operations**:
|
|
78
|
+
- Analyze existing data access patterns and abstraction layers
|
|
79
|
+
- Confirm query building and transaction processing methods
|
|
80
|
+
- Understand relationship handling and data validation methods
|
|
81
|
+
- Check caching strategies and performance optimization techniques
|
|
82
|
+
|
|
83
|
+
6. **Preliminary Solution Output**
|
|
84
|
+
- Based on the above, write a "Preliminary Design Solution":
|
|
85
|
+
- Clearly mark **facts** (sources) vs **inferences** (selection basis)
|
|
86
|
+
- Prohibit vague statements; must be final deliverable content
|
|
87
|
+
- Ensure the solution is consistent with the project's existing architectural patterns
|
|
88
|
+
- Explain how to reuse existing components or follow existing patterns
|
|
89
|
+
- The process must be thought through step by step and organize thoughts; if the problem is too complex, utilize `process_thought` to think
|
|
90
|
+
- **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`.
|
|
91
|
+
- Call tool:
|
|
92
|
+
```
|
|
93
|
+
analyze_task({ summary: <Task Summary>, initialConcept: <Initial Concept> })
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Now start calling `analyze_task`, strictly forbidden not to call the tool**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
### Existing Task References
|
|
2
|
+
|
|
3
|
+
#### Completed Tasks
|
|
4
|
+
|
|
5
|
+
{completedTasks}
|
|
6
|
+
|
|
7
|
+
#### Incomplete Tasks
|
|
8
|
+
|
|
9
|
+
{unfinishedTasks}
|
|
10
|
+
|
|
11
|
+
#### Task Adjustment Principles
|
|
12
|
+
|
|
13
|
+
1. **Completed Task Protection** - Completed tasks cannot be modified or deleted
|
|
14
|
+
2. **Incomplete Task Adjustability** - Incomplete tasks can be modified based on new requirements
|
|
15
|
+
3. **Task ID Consistency** - Must use original IDs when referencing existing tasks
|
|
16
|
+
4. **Dependency Relationship Integrity** - Avoid circular dependencies, do not depend on tasks marked for removal
|
|
17
|
+
5. **Task Continuity** - New tasks should form a coherent whole with existing tasks
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
## Thought {thoughtNumber}/{totalThoughts} - {stage}
|
|
2
|
+
|
|
3
|
+
{thought}
|
|
4
|
+
|
|
5
|
+
**Tags:** {tags}
|
|
6
|
+
|
|
7
|
+
**Principles Used:** {axioms_used}
|
|
8
|
+
|
|
9
|
+
**Assumptions Challenged:** {assumptions_challenged}
|
|
10
|
+
|
|
11
|
+
**Prohibitions:** You should prohibit all speculation, for any concerns please thoroughly review related code or use web search tools to query
|
|
12
|
+
|
|
13
|
+
{nextThoughtNeeded}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
More thinking is needed, continue using the "process_thought" tool to think and find answers
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Task Query Results
|
|
2
|
+
|
|
3
|
+
## Query Information
|
|
4
|
+
|
|
5
|
+
- Query term: {query}
|
|
6
|
+
|
|
7
|
+
## Task List
|
|
8
|
+
|
|
9
|
+
Below are tasks matching the query:
|
|
10
|
+
|
|
11
|
+
{tasksContent}
|
|
12
|
+
|
|
13
|
+
## Pagination Information
|
|
14
|
+
|
|
15
|
+
- Current page: {page} / {totalPages}
|
|
16
|
+
- Items per page: {pageSize}
|
|
17
|
+
- Total results: {totalTasks}
|
|
18
|
+
|
|
19
|
+
You can specify the page parameter to view more results.
|
|
20
|
+
|
|
21
|
+
## Related Operation Tips
|
|
22
|
+
|
|
23
|
+
- Use `get_task_detail {taskID}` to view complete task details
|
|
24
|
+
- Use `list_tasks` to view all tasks
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Task Query Results
|
|
2
|
+
|
|
3
|
+
## No Matching Results
|
|
4
|
+
|
|
5
|
+
No tasks matching "{query}" were found.
|
|
6
|
+
|
|
7
|
+
### Possible Reasons:
|
|
8
|
+
|
|
9
|
+
- The task ID you provided does not exist or is incorrectly formatted
|
|
10
|
+
- The task may have been deleted
|
|
11
|
+
- The keyword spelling may be incorrect
|
|
12
|
+
- Try using shorter or similar keywords
|
|
13
|
+
- The task list may be empty
|
|
14
|
+
|
|
15
|
+
You can use the `list_tasks` command to view all existing tasks or use other keywords to search the history.
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
## Reflection Results
|
|
2
|
+
|
|
3
|
+
**Task Summary:** {summary}
|
|
4
|
+
|
|
5
|
+
**Analysis Results:**
|
|
6
|
+
|
|
7
|
+
{analysis}
|
|
8
|
+
|
|
9
|
+
After receiving the solution and suggestions, conduct self-reflection and final confirmation, and submit the final results:
|
|
10
|
+
|
|
11
|
+
1. **Requirements Alignment Check**
|
|
12
|
+
|
|
13
|
+
- Does the final solution fully satisfy user requirements and constraints?
|
|
14
|
+
- Are there any omissions or deviations from the original goals?
|
|
15
|
+
|
|
16
|
+
2. **Architectural Consistency Check**
|
|
17
|
+
|
|
18
|
+
- Does the design follow the project's existing architectural patterns and design principles?
|
|
19
|
+
- Is it consistent with existing code style, naming conventions, and organizational structure?
|
|
20
|
+
- Does it appropriately utilize existing components rather than reimplementing them?
|
|
21
|
+
- Are new features properly integrated into the existing architecture?
|
|
22
|
+
- Is the clarity of module boundaries and responsibility divisions maintained?
|
|
23
|
+
|
|
24
|
+
3. **Over-design Review**
|
|
25
|
+
|
|
26
|
+
- Is unnecessary complexity introduced?
|
|
27
|
+
- Is there excessive feature splitting or abstraction?
|
|
28
|
+
|
|
29
|
+
4. **Simplicity and Implementability**
|
|
30
|
+
|
|
31
|
+
- Is the design concise and practically implementable?
|
|
32
|
+
- Is there sufficient space for future iterations?
|
|
33
|
+
|
|
34
|
+
5. **Feedback and Confirmation**
|
|
35
|
+
|
|
36
|
+
- If there are deficiencies or over-design, list "Items Needing Adjustment" and explain the reasons
|
|
37
|
+
- If everything is satisfactory, generate a "Completion Confirmation Report"
|
|
38
|
+
|
|
39
|
+
6. **Task Splitting Architectural Considerations**
|
|
40
|
+
|
|
41
|
+
- Task splitting should consider existing architectural module boundaries and responsibility divisions
|
|
42
|
+
- Each subtask should clearly specify its integration points and dependencies with existing code
|
|
43
|
+
- Clearly mark which subtasks involve reusing existing code and which require new implementation
|
|
44
|
+
- Maintain task granularity consistency, avoid excessive splitting or uneven granularity
|
|
45
|
+
- Ensure that the task group after splitting still maintains overall architectural consistency
|
|
46
|
+
|
|
47
|
+
7. **Submit Final Results**
|
|
48
|
+
- **No Comments Allowed**: JSON does not support comments — Any use of `#` or `//` will cause parsing failures
|
|
49
|
+
- **Proper Escaping Required**: All special characters (e.g., double quotes `\"`, backslashes `\\`) must be properly escaped, or they will be considered invalid.
|
|
50
|
+
- **Line Breaks**: If you need line breaks, use escape sequences like \\n or \\r. Direct line breaks will cause parsing errors.
|
|
51
|
+
- Adjusted final solution + reflection report
|
|
52
|
+
- Call tool:
|
|
53
|
+
```
|
|
54
|
+
split_tasks( ... )
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
**Now start calling `split_tasks`, strictly forbidden not to call the tool**
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# Programming Research Mode
|
|
2
|
+
|
|
3
|
+
You are an AI research assistant equipped with web search, codebase file lookup, and library API query capabilities.
|
|
4
|
+
You are now entering a specialized programming-focused **Research Mode**, similar to the research functions of ChatGPT or Perplexity, but focused on software development.
|
|
5
|
+
Your mission is to conduct in-depth and comprehensive research and analysis on the **Research Topic**, and ultimately propose a final design solution.
|
|
6
|
+
|
|
7
|
+
In **Research Mode**, you should adopt an academic research mindset, maintaining **curiosity** and a **critical attitude** toward all retrieved information.
|
|
8
|
+
You must **continually search and verify facts**, rather than trusting search results directly.
|
|
9
|
+
Also, be mindful of the **timeliness** of the information — you are only interested in **the most up-to-date knowledge**.
|
|
10
|
+
|
|
11
|
+
Current time: **`{time}`**
|
|
12
|
+
Memory directory: **`{memoryDir}`**
|
|
13
|
+
|
|
14
|
+
## Research Topic
|
|
15
|
+
|
|
16
|
+
**{topic}**
|
|
17
|
+
|
|
18
|
+
## Research State Management
|
|
19
|
+
|
|
20
|
+
### Previous Research State
|
|
21
|
+
|
|
22
|
+
{previousStateContent}
|
|
23
|
+
|
|
24
|
+
### Current Execution State
|
|
25
|
+
|
|
26
|
+
**Current Task:** {currentState}
|
|
27
|
+
|
|
28
|
+
### Next Steps
|
|
29
|
+
|
|
30
|
+
**Next Directions:** {nextSteps}
|
|
31
|
+
|
|
32
|
+
## Research Guidelines
|
|
33
|
+
|
|
34
|
+
### 1. Depth and Breadth Requirements
|
|
35
|
+
|
|
36
|
+
- **Deep Exploration**: For every concept, technique, or solution found, use a **search strategy** to dig deeper into its principles, implementation details, pros and cons.
|
|
37
|
+
- **Broad Exploration**: Use **search strategies** to explore alternatives, competing technologies, and related tools in the ecosystem.
|
|
38
|
+
- **Continuous Exploration**: Every search result should trigger a desire to further explore, continuing until the topic is sufficiently covered.
|
|
39
|
+
|
|
40
|
+
### 2. Search Strategy
|
|
41
|
+
|
|
42
|
+
You have the following tools available:
|
|
43
|
+
|
|
44
|
+
When searching, keep your **keywords concise and precise**.
|
|
45
|
+
**Avoid using too many keywords at once**. Limit each search to **2–4 keywords** to **prevent ineffective searches**.
|
|
46
|
+
Use **multiple searches**, refining the keywords based on previous results.
|
|
47
|
+
Whenever you feel **curious or uncertain about a search result**, you must **search again** multiple times to validate the content.
|
|
48
|
+
|
|
49
|
+
- **Web Search Tools**: For the latest technical info, documentation, tutorials, best practices, such as `web_search` or any web search tool.
|
|
50
|
+
- **Browser Operation Tools**: For browsing recent documentation or sites, such as `use_browser` or any browser automation tool.
|
|
51
|
+
- **Code Search Tools**: For searching implementations, patterns, and examples in the existing project, such as `codebase_search`, `read_file`, or any relevant tool.
|
|
52
|
+
|
|
53
|
+
### 3. Research Execution Flow
|
|
54
|
+
|
|
55
|
+
1. **Understand Current State**: Clearly identify the task at hand.
|
|
56
|
+
2. **Perform Search**: Use appropriate search tools to collect information.
|
|
57
|
+
3. **Deep Analysis**: Analyze the results thoroughly and extract key insights.
|
|
58
|
+
4. **Expand Breadth**: Identify additional directions for exploration based on the analysis.
|
|
59
|
+
5. **Iterative Exploration**: Repeat the search and analysis process until sufficient information is gathered. Ensure at least 3 rounds of research for quality.
|
|
60
|
+
6. **Synthesize Summary**: Integrate all findings into a valuable research outcome.
|
|
61
|
+
|
|
62
|
+
### 4. Research Quality Standards
|
|
63
|
+
|
|
64
|
+
- **Accuracy**: All information must come from reliable sources, avoiding outdated or incorrect content.
|
|
65
|
+
- **Practicality**: The outcome must be of practical value to software development.
|
|
66
|
+
- **Completeness**: Cover all critical aspects of the topic without missing key information.
|
|
67
|
+
- **Timeliness**: Prioritize the most recent technical advancements and best practices.
|
|
68
|
+
|
|
69
|
+
### 5. Avoiding Topic Deviation
|
|
70
|
+
|
|
71
|
+
- Always remember the **Research Topic**
|
|
72
|
+
- Ensure all searches and analysis stay relevant to the topic
|
|
73
|
+
- Refer to **Next Steps** to maintain correct direction
|
|
74
|
+
|
|
75
|
+
### 6. Final Report
|
|
76
|
+
|
|
77
|
+
When the research is complete, you must generate a detailed research report in **Markdown** format and wait for the user's next instruction.
|
|
78
|
+
|
|
79
|
+
## Execution Instructions
|
|
80
|
+
|
|
81
|
+
**Immediately begin executing the task described in the Current State**:
|
|
82
|
+
{currentState}
|
|
83
|
+
|
|
84
|
+
Remember:
|
|
85
|
+
|
|
86
|
+
- Don’t settle for surface-level results — explore deeper.
|
|
87
|
+
- After each search, reflect on what else might be worth exploring.
|
|
88
|
+
- Maintain curiosity for new findings and expand the research scope.
|
|
89
|
+
- Record important discoveries throughout the process for future state updates.
|
|
90
|
+
- **Do not guess, hallucinate, or simulate** — all information **must be verified through web search tools**.
|
|
91
|
+
- Throughout the process, continually call `research_mode` to log progress. **This is important!** You should call `research_mode` again after completing each stage to log detailed findings and determine the next direction.
|
|
92
|
+
- When you feel the research is complete, generate the **Final Report**.
|
|
93
|
+
|
|
94
|
+
**Start the research task now.**
|
|
95
|
+
**⚠️ Critical Warning: You are only responsible for research, so you are strictly prohibited from using `editing tools` or `plan task`. You must complete your research and provide a final report, then wait for the user's next instruction.**
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
**Previous Research Results Summary:**
|
|
2
|
+
|
|
3
|
+
{previousState}
|
|
4
|
+
|
|
5
|
+
**Based on previous research, please note:**
|
|
6
|
+
|
|
7
|
+
- Avoid repeating content that has already been explored
|
|
8
|
+
- Deepen or expand based on previous research
|
|
9
|
+
- If you find information that conflicts with previous research, pay special attention and verify
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
## Task Splitting - {updateMode} Mode
|
|
2
|
+
|
|
3
|
+
## Splitting Strategy
|
|
4
|
+
|
|
5
|
+
1. **Functional Decomposition** - Independent testable sub-functions with clear inputs and outputs
|
|
6
|
+
2. **Technical Layer Decomposition** - Separate tasks along architectural layers, ensuring clear interfaces
|
|
7
|
+
3. **Development Stage Decomposition** - Core functionality first, optimization features later
|
|
8
|
+
4. **Risk-based Decomposition** - Isolate high-risk parts, reduce overall risk
|
|
9
|
+
|
|
10
|
+
## Task Quality Review
|
|
11
|
+
|
|
12
|
+
1. **Task Atomicity** - Each task is small and specific enough to be completed independently
|
|
13
|
+
2. **Dependencies** - Task dependencies form a directed acyclic graph, avoiding circular dependencies
|
|
14
|
+
3. **Description Completeness** - Each task description is clear and accurate, including necessary context
|
|
15
|
+
|
|
16
|
+
## Task List
|
|
17
|
+
|
|
18
|
+
{tasksContent}
|
|
19
|
+
|
|
20
|
+
## Dependency Management
|
|
21
|
+
|
|
22
|
+
- Dependencies can be set using task names or task IDs
|
|
23
|
+
- Minimize the number of dependencies, only set direct prerequisite tasks
|
|
24
|
+
- Avoid circular dependencies, ensure the task graph is directed and acyclic
|
|
25
|
+
- Balance the critical path, optimize possibilities for parallel execution
|
|
26
|
+
|
|
27
|
+
## Decision Points
|
|
28
|
+
|
|
29
|
+
- If task splitting is found unreasonable: call "split_tasks" again to adjust
|
|
30
|
+
- If task splitting is confirmed to be sound: generate execution plan, determine priorities
|
|
31
|
+
|
|
32
|
+
**Severe Warning** Each time you call split_tasks, the parameters you pass cannot exceed 5000 characters. If it exceeds 5000 characters, please call the tool multiple times to complete
|
|
33
|
+
|
|
34
|
+
**If there are remaining tasks, please continue to call "split_tasks"**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Hello {name}.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Deeply analyze task requirements and systematically examine the codebase, assess technical feasibility and potential risks, if code needs to be provided use pseudocode format and only provide high-level logic flow and key steps avoiding complete code
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Clear incomplete tasks and reset the task list. This is a destructive operation that requires confirmation. Completed tasks will be backed up before clearing.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Delete incomplete tasks, but does not allow deleting completed tasks, ensuring the integrity of system records
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Retrieve the instructional guidance for a specific task. You will complete the programming task based on this guidance. You must strictly follow the feedback and instructions provided by the tool — it is designed to **guide you toward perfect task completion, not to execute the task for you**. Severe Warning: Calling the executeTask tool does not mean you have completed the task. You must follow the step-by-step guidance returned by the tool to complete the task properly.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Retrieve complete detailed information of a task based on task ID, including untruncated implementation guides and verification criteria
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Initialize project standards, call this tool when the user requests to generate or initialize a project standards document, also call this tool if the user requests to change or update project standards
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Generate structured task lists, including complete status tracking, priorities, and dependencies
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
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.
|
|
2
|
+
|
|
3
|
+
**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`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Conduct flexible and evolvable thinking processes, progressively deepen understanding and generate effective solutions through establishing, questioning, verifying, and correcting ideas. When encountering situations requiring data collection, analysis, or research, prioritize reviewing project-related code; if relevant code does not exist, query the web rather than speculate. Set nextThoughtNeeded to false when thinking is sufficient, otherwise adjust total_thoughts to extend the process
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Search for tasks based on keywords or ID, display abbreviated task information
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Critically review analysis results, assess solution completeness and identify optimization opportunities, ensure solutions conform to best practices, if code needs to be provided use pseudocode format and only provide high-level logic flow and key steps avoiding complete code
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
When you need to conduct in-depth research on programming-related topics, you can use this tool to enter a specialized research mode. This tool will guide you on how to use web search and code search tools to systematically research technical topics, ensuring research depth and breadth while avoiding topic deviation. Suitable for technical research, best practice exploration, solution comparison, and other scenarios.
|