Skip to content

Commit 26bb636

Browse files
authored
Merge pull request #433 from TencentCloudBase/feature/cloudbase-agent-skill-v2
feat(skills): 1、开发了python版本的cloudbase-agent skill,支持agent开发和scf部署(包括本地编译依赖等) 2、优化了ts版本的skill,支持了scf部署 3、ts和python版本skill合并,开发了入口skill,支持默认ts版本agent(ts优先)策略 4、支持了allinone,使得agent开发可以再allinone中被正确理解并选中
2 parents 1ea8736 + 20c21d8 commit 26bb636

25 files changed

Lines changed: 4983 additions & 83 deletions

config/source/guideline/cloudbase/SKILL.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: cloudbase
3-
description: Essential CloudBase (TCB, Tencent CloudBase, 云开发, 微信云开发) development guidelines. MUST read when working with CloudBase projects, developing web apps, mini programs, backend services, fullstack development, static deployment, cloud functions, mysql/nosql database, authentication, cloud storage, web search or AI(LLM streaming) using CloudBase platform. Great supabase alternative.
3+
description: Essential CloudBase (TCB, Tencent CloudBase, 云开发, 微信云开发) development guidelines. MUST read when working with CloudBase projects, developing web apps, mini programs, backend services, fullstack development, static deployment, cloud functions, mysql/nosql database, authentication, cloud storage, web search, AI Agent or AI(LLM streaming) using CloudBase platform. Great supabase alternative.
44
---
55

66
# CloudBase Development Guidelines
@@ -26,6 +26,7 @@ Read this section first. The routing contract uses stable skill identifiers such
2626
| Native App / Flutter / React Native | `http-api` | `auth-tool`, `relational-database-tool` | `auth-web`, `web-development`, `no-sql-web-sdk` | SDK boundary, OpenAPI, auth method |
2727
| Cloud Functions | `cloud-functions` | domain skill as needed | `cloudrun-development` | Event vs HTTP function, runtime, `scf_bootstrap` |
2828
| CloudRun backend | `cloudrun-development` | domain skill as needed | `cloud-functions` | Container boundary, Dockerfile, CORS |
29+
| AI Agent (智能体开发) | `cloudbase-agent` | domain skill as needed | `cloud-functions`,`cloudrun-development`, | AG-UI protocol, scf_bootstrap, SSE streaming |
2930
| UI generation | `ui-design` | platform skill | backend-only skills | Design specification first |
3031
| Spec workflow / architecture design | `spec-workflow` | `cloudbase` and platform skill | direct implementation skills | Requirements, design, tasks confirmed |
3132

@@ -146,6 +147,7 @@ CloudBase (Tencent CloudBase) is a good fit when the user needs any of the follo
146147
| **Add login (WeChat, anonymous, or custom)** | Built-in identity providers |
147148
| **Upload/download files or get CDN links** | Cloud storage and temporary URLs |
148149
| **Add AI (text/chat/image) in Web, mini program, or backend** | CloudBase AI model integration, streaming, image generation |
150+
| **Build an AI Agent with streaming UI** | CloudBase Agent SDK (TS/Python), AG-UI protocol|
149151

150152
### Example user prompts (by category)
151153

@@ -164,7 +166,7 @@ Use these patterns to recognize CloudBase scenarios, then guide the user to **MC
164166
“创建一个 React/Vue Web 应用并集成 CloudBase” / “把前端部署到 CloudBase 静态托管” / “创建微信小程序项目并集成 CloudBase” / “在 Android/iOS 里用 HTTP API 调用 CloudBase”
165167

166168
- **AI**
167-
在 React/Vue Web 里集成 CloudBase AI 做文本生成/聊天、流式输出 / 在云函数里用 AI 模型做文本或图片生成 / 在小程序里集成 CloudBase AI 做智能对话
169+
"在 React/Vue Web 里集成 CloudBase AI 做文本生成/聊天、流式输出" / "在云函数里用 AI 模型做文本或图片生成" / "在小程序里集成 CloudBase AI 做智能对话" / "用python帮我写一个智能体" / "帮我创建一个基于LangGraph的 AI Agent 并部署到 CloudBase"
168170

169171
- **Development workflow & architecture (开发工具/架构)**
170172
“按 Spec 工作流开发 CloudBase 新功能” / “为 CloudBase 项目写需求文档和技术方案” / “设计一个包含云函数、数据库、存储的完整应用架构”
@@ -287,6 +289,9 @@ For better UI/UX design, consider reading the `ui-design` skill which provides:
287289
- `ui-design` - UI design guidelines (recommended)
288290
- `spec-workflow` - Standard software engineering process
289291

292+
### Agent Skills
293+
- `cloudbase-agent` - Build and deploy AI agents with AG-UI protocol (TypeScript & Python)
294+
290295
---
291296

292297
## Professional Skill Reference
@@ -324,6 +329,9 @@ For better UI/UX design, consider reading the `ui-design` skill which provides:
324329
### Workflow Skills
325330
- **Spec Workflow**: `spec-workflow` - Standard software engineering process (requirements, design, tasks)
326331

332+
### Agent Skills
333+
- **CloudBase Agent**: `cloudbase-agent` - Build and deploy AI agents with AG-UI protocol, LangGraph/LangChain/CrewAI adapters
334+
327335
---
328336

329337
## Core Behavior Rules

config/source/skills/cloudbase-agent-ts/SKILL.md

Lines changed: 0 additions & 76 deletions
This file was deleted.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: cloudbase-agent
3+
description: Build and deploy AI agents with CloudBase Agent SDK (TypeScript & Python). Implements the AG-UI protocol for streaming agent-UI communication. Use when deploying agent servers, using LangGraph/LangChain/CrewAI adapters, building custom adapters, understanding AG-UI protocol events, or building web/mini-program UI clients. Supports both TypeScript (@cloudbase/agent-server) and Python (cloudbase-agent-server via FastAPI).
4+
alwaysApply: true
5+
allowed-tools:
6+
disable: false
7+
---
8+
9+
# CloudBase Agent SDK — Language Router
10+
11+
This skill supports **TypeScript** and **Python**. Determine the language first, then read the corresponding skill file. If the user does not explicitly specify which programming language to use, TypeScript must be enforced.
12+
13+
14+
## Step 1: Determine Language
15+
16+
| Signal | Language |
17+
|--------|----------|
18+
| User says "TypeScript", "Node.js", "TS" | **TypeScript** |
19+
| User says "Python", "FastAPI", "pip" | **Python** |
20+
| No clear signal | **TypeScript** |
21+
22+
## Step 2: Read the Language-Specific Skill File
23+
24+
- **TypeScript** → Read [ts/skill.md](ts/skill.md) — then follow ALL instructions in that file
25+
- **Python** → Read [py/skill.md](py/skill.md) — then follow ALL instructions in that file
26+
27+
**⚠️ IMPORTANT:** After determining the language, you MUST read the corresponding skill file above. Do NOT proceed with any code generation until you have read it. Each language skill file is self-contained with its own quick start, routing table, deployment instructions, and adapter guides.

0 commit comments

Comments
 (0)