You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcp/CODEBUDDY.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ When you see "Read `{auth-web}` rule file" in this document:
60
60
61
61
### When Developing a Web Project:
62
62
1.**Environment Check**: Call `envQuery` tool first (applies to all interactions)
63
-
2.**⚠️ Template Download (MANDATORY for New Projects)**: **MUST call `downloadTemplate` tool FIRST when starting a new project** - Do NOT create files manually. Use `downloadTemplate` with `template="react"` or `template="vue"` to get the complete project structure. Only proceed with manual file creation if template download fails or user explicitly requests it.
63
+
2.**Template Download**: Call `downloadTemplate` tool when the user requests to create a new project using a CloudBase template. Use `downloadTemplate` with `template="react"` or `template="vue"` to get the complete project structure. Only proceed with manual file creation if template download fails or user explicitly requests it.
64
64
3.**⚠️ UI Design (CRITICAL)**: **MUST read `rules/ui-design/rule.md` FIRST before generating any page, interface, component, or style** - This is NOT optional. You MUST explicitly read this file and output the design specification before writing any UI code.
65
65
4.**Core Capabilities**: Read Core Capabilities section below (especially UI Design and Database + Authentication for Web)
66
66
5.**⚠️ Authentication Configuration Check (MANDATORY)**: **When user mentions ANY login/authentication requirement, MUST FIRST read `{auth-tool}` rule file (using path resolution strategy) and check/configure authentication providers BEFORE implementing frontend code**
@@ -72,7 +72,7 @@ When you see "Read `{auth-web}` rule file" in this document:
72
72
73
73
### When Developing a Mini Program Project:
74
74
1.**Environment Check**: Call `envQuery` tool first (applies to all interactions)
75
-
2.**⚠️ Template Download (MANDATORY for New Projects)**: **MUST call `downloadTemplate` tool FIRST when starting a new project** - Do NOT create files manually. Use `downloadTemplate` with `template="miniprogram"` to get the complete project structure. Only proceed with manual file creation if template download fails or user explicitly requests it.
75
+
2.**Template Download**: Call `downloadTemplate` tool when the user requests to create a new Mini Program project using a CloudBase template. Use `downloadTemplate` with `template="miniprogram"` to get the complete project structure. Only proceed with manual file creation if template download fails or user explicitly requests it.
76
76
3.**⚠️ UI Design (CRITICAL)**: **MUST read `rules/ui-design/rule.md` FIRST before generating any page, interface, component, or style** - This is NOT optional. You MUST explicitly read this file and output the design specification before writing any UI code.
77
77
4.**Core Capabilities**: Read Core Capabilities section below (especially UI Design and Database + Authentication for Mini Program)
@@ -254,7 +254,7 @@ Before starting work, suggest confirming with user:
254
254
255
255
## Core Behavior Rules
256
256
1.**Tool Priority**: For Tencent CloudBase operations, must prioritize using CloudBase tools
257
-
2.**⚠️ Template Download (MANDATORY)**: **When starting a new project or when user requests to develop an application, MUST FIRST call `downloadTemplate` tool** - Do NOT manually create project files. Use `downloadTemplate` with appropriate template type (`react`, `vue`, `miniprogram`, `uniapp`). Only create files manually if template download fails or user explicitly requests manual creation. This ensures proper project structure, configuration files, and best practices.
257
+
2.**Template Download**: When the user requests to create a new project using a CloudBase template, call `downloadTemplate` tool. Use `downloadTemplate` with appropriate template type (`react`, `vue`, `miniprogram`, `uniapp`). Only create files manually if template download fails or user explicitly requests manual creation.
258
258
3.**Project Understanding**: First read current project's README.md, follow project instructions for development
259
259
4.**Directory Standards**: Before outputting project code in current directory, first check current directory files
260
260
5.**Development Order**: When developing, prioritize frontend first, then backend, ensuring frontend interface and interaction logic are completed first, then implement backend business logic
@@ -283,12 +283,12 @@ Before starting work, suggest confirming with user:
283
283
284
284
### Development
285
285
286
-
1.**⚠️ Download CloudBase Templates (MANDATORY for New Projects)**:
287
-
-**MUST call `downloadTemplate` tool FIRST when starting a new project** - Do NOT manually create project files
286
+
1.**Download CloudBase Templates**:
287
+
-Call `downloadTemplate` tool when the user requests to create a new project using a CloudBase template
288
288
- For Web projects: Use `downloadTemplate` with `template="react"` or `template="vue"`
289
289
- For Mini Program projects: Use `downloadTemplate` with `template="miniprogram"`
290
290
- For UniApp projects: Use `downloadTemplate` with `template="uniapp"`
291
-
-**Only proceed with manual file creation if template download fails or user explicitly requests manual creation**
291
+
- Only proceed with manual file creation if template download fails or user explicitly requests manual creation
292
292
- If unable to download to current directory, can use scripts to copy, note that hidden files also need to be copied
293
293
294
294
2.**⚠️ UI Design Document Reading (MANDATORY)**:
@@ -382,7 +382,7 @@ To ensure development quality, recommend completing the following checks before
382
382
383
383
### Recommended Steps
384
384
0.**[] Environment Check**: Call `envQuery` tool to check CloudBase environment status (applies to all interactions)
385
-
1.**[] Template Download Check (MANDATORY for New Projects)**: If starting a new project, have you called `downloadTemplate` tool FIRST? Do NOT manually create project files - use templates.
385
+
1.**[] Template Download Check**: If the user requests to create a new project using a CloudBase template, have you considered calling `downloadTemplate` tool?
386
386
2.**[] Scenario Identification**: Clearly identify what type of project this is (Web/Mini Program/Database/UI)
387
387
3.**[] Core Capability Confirmation**: Confirm all four core capabilities have been considered
388
388
- UI Design: Have you explicitly read the file `rules/ui-design/rule.md` using file reading tools?
@@ -397,7 +397,7 @@ To ensure development quality, recommend completing the following checks before
397
397
6.**[] Rule Execution**: Strictly follow core capability requirements and relevant rule files for development
398
398
399
399
### ⚠️ Common Issues to Avoid
400
-
-**❌ DO NOT manually create project files** - Always use`downloadTemplate` tool first for new projects
400
+
-**❌ Avoid manually creating project files when the user requests a CloudBase template** - consider using`downloadTemplate` tool to get proper project structure
401
401
-**❌ DO NOT skip reading UI design document** - Must explicitly read `rules/ui-design/rule.md` file before generating any UI code
402
402
- Avoid skipping core capabilities and starting development directly
403
403
- Avoid mixing APIs and authentication methods from different platforms
0 commit comments