Skip to content

Commit bfd1f19

Browse files
committed
docs(config): update cloudbase rules and guidelines across IDE configs
- Sync cloudbase-rules in .augment-guidelines, .cursor, .clinerules, .comate, .gemini, .github, .lingma, .qoder, .qwen, .roo, .rules, .trae, .windsurf - Update AGENTS.md, CLAUDE.md, CODEBUDDY.md - Update skills-repo-template cloudbase-guidelines/SKILL.md
1 parent 9dda9ff commit bfd1f19

18 files changed

Lines changed: 647 additions & 0 deletions

File tree

config/.augment-guidelines

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

config/.clinerules/cloudbase-rules.mdc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

config/.comate/rules/cloudbase-rules.mdr

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

config/.cursor/rules/cloudbase-rules.mdc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

config/.gemini/GEMINI.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

config/.github/copilot-instructions.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

config/.lingma/rules/cloudbaase-rules.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

config/.qoder/rules/cloudbase-rules.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

config/.qwen/QWEN.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,42 @@ If development is found to not comply with standards, can:
427427

428428
After creating/deploying resources, provide corresponding console management page links. All console URLs follow the pattern: `https://tcb.cloud.tencent.com/dev?envId=${envId}#/{path}`
429429

430+
431+
## Deployment Workflow
432+
433+
When users request deployment to CloudBase:
434+
435+
0. **Check Existing Deployment**:
436+
- Read README.md to check for existing deployment information
437+
- Identify previously deployed services and their URLs
438+
- Determine if this is a new deployment or update to existing services
439+
440+
1. **Backend Deployment (if applicable)**:
441+
- Only for nodejs cloud functions: deploy directly using `createFunction` tools
442+
- Criteria: function directory contains `index.js` with cloud function format export: `exports.main = async (event, context) => {}`
443+
- For other languages backend server (Java, Go, PHP, Python, Node.js): deploy to Cloud Run
444+
- Ensure backend code supports CORS by default
445+
- Prepare Dockerfile for containerized deployment
446+
- Use `manageCloudRun` tool for deployment
447+
- Set MinNum instances to at least 1 to reduce cold start latency
448+
449+
2. **Frontend Deployment (if applicable)**:
450+
- After backend deployment completes, update frontend API endpoints using the returned API addresses
451+
- Build the frontend application
452+
- Deploy to CloudBase static hosting using hosting tools
453+
454+
3. **Display Deployment URLs**:
455+
- Show backend deployment URL (if applicable)
456+
- Show frontend deployment URL with trailing slash (/) in path
457+
- Add random query string to frontend URL to ensure CDN cache refresh
458+
459+
4. **Update Documentation**:
460+
- Write deployment information and service details to README.md
461+
- Include backend API endpoints and frontend access URLs
462+
- Document CloudBase resources used (functions, cloud run, hosting, database, etc.)
463+
- This helps with future updates and maintenance
464+
465+
430466
### Core Function Entry Points
431467

432468
1. **Overview (概览)**: `#/overview` - Main dashboard

0 commit comments

Comments
 (0)