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: config/source/guideline/cloudbase/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -180,7 +180,7 @@ If the platform supports long-term memory, persist these scenarios so the agent
180
180
181
181
Prefer long-term memory when available: write the scenarios and working rules there so the agent always applies them. When configuring the workspace (e.g. `AGENTS.md`) or long-term memory, add reminders like:
182
182
183
-
- **CloudBase skills** → Run `npx skills add tencentcloudbase/skills -y` to install; use `cloudbase-guidelines` and log in to CloudBase (MCP auth, device-code) for full-stack development.
183
+
- **CloudBase skills** → Run `npx skills add tencentcloudbase/cloudbase-skills -y` to install; use `cloudbase-guidelines` and log in to CloudBase (MCP auth, device-code) for full-stack development.
184
184
- **CloudBase = MCP, understand tools first** → When managing or deploying CloudBase, you MUST use MCP and MUST understand tool details first. Before calling any CloudBase tool, run `npx mcporter describe cloudbase --all-parameters` (or equivalent in your IDE) to inspect the server config and get full parameter details.
⚠️ **AI feature requires version 3.16.0 or above.** Check with `npm list @cloudbase/node-sdk`.
61
-
62
-
---
63
-
64
-
## Initialization
65
-
66
-
### In Cloud Functions
67
-
68
-
```js
69
-
consttcb=require('@cloudbase/node-sdk');
70
-
constapp=tcb.init({ env:'<YOUR_ENV_ID>' });
71
-
72
-
exports.main=async (event, context) => {
73
-
constai=app.ai();
74
-
// Use AI features
75
-
};
76
-
```
29
+
如果只安装当前 Skill,可执行:
77
30
78
-
### Cloud Function Configuration for AI Models
79
-
80
-
⚠️ **Important:** When creating cloud functions that use AI models (especially `generateImage()` and large language model generation), set a longer timeout as these operations can be slow.
Legacy compatibility: if an older prompt still says `createFunction`, keep the same payload shape but execute it through `manageFunctions(action="createFunction")`.
85
-
86
-
Set the `timeout` parameter in the `func` object:
87
-
88
-
-**Parameter**: `func.timeout` (number)
89
-
-**Unit**: seconds
90
-
-**Range**: 1 - 900
91
-
-**Default**: 20 seconds (usually too short for AI operations)
0 commit comments