Token导航 LogoToken导航TokenDH.com
AI 工具敏感数据github未标认证来源可访问clear审计通过

cloudrun-development云运行开发

Agent Skill

cloudrun-development 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

978

周安装

42

GitHub Stars

997

下载量

343
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cloudrun-development(云运行开发)
来源仓库:https://github.com/tencentcloudbase/cloudbase-mcp
仓库路径:skills/cloudrun-development
安装命令:
npx skills add https://github.com/tencentcloudbase/cloudbase-mcp --skill cloudrun-development
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/tencentcloudbase/cloudbase-mcp --skill cloudrun-development

简介

cloudrun-development 提供 CloudBase Run 后端服务的开发支持,适用于长连接、持久进程和自定义运行时场景。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中处理多语言项目或需要稳定外部服务调用的任务。
  • 支持 WebSocket、SSE 协议及弹性伸缩,可按需启停以控制成本。
  • 使用前需配置云平台凭证,并确保网络策略允许容器访问目标资源。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

When to use this skill

Use this skill for CloudBase Run backend service development when you need:

  • Long connection capabilities: WebSocket / SSE / server push
  • Long-running or persistent processes: tasks that are not suitable for cloud functions, background jobs
  • Custom runtime environments/system dependencies: custom images, specific system libraries
  • Multi-language/arbitrary frameworks: Java, Go, PHP,.NET, Python, Node.js, etc.
  • Stable external services with elastic scaling: pay-as-you-go, can scale down to 0
  • Private/internal network access: VPC/PRIVATE access, mini-program callContainer internal direct connection
  • AI agent development: develop personalized AI applications based on Function mode CloudRun

Do NOT use for:

  • Simple cloud functions (use cloud function development instead)
  • Frontend-only applications
  • Database schema design (use data-model-creation skill)

How to use this skill (for a coding agent)

  1. Choose the right mode

- Function mode: Fastest to get started, built-in HTTP/WebSocket/SSE, fixed port 3000, local running supported - Container mode: Any language and runtime, requires Dockerfile, local running not supported by tools

  1. Follow mandatory requirements

- Must listen on PORT environment variable (real port in container) - Stateless service: write data externally (DB/storage/cache) - No background persistent threads/processes outside requests - Minimize dependencies, slim images; reduce cold start and deployment time - Resource constraints: Mem = 2 × CPU (e.g., 0.25 vCPU → 0.5 GB) - Access control: Only enable public network for Web scenarios; mini-programs prioritize internal direct connection, recommend closing public network

  1. Use tools correctly

- Read operations: queryCloudRun (list, detail, templates) - Write operations: manageCloudRun (init, download, run, deploy, delete, createAgent) - Always use absolute paths for targetPath - Use force: true for delete operations

  1. Follow the workflow

- Initialize project → Check/generate Dockerfile (for container mode) → Local run (function mode only) → Configure access → Deploy → Verify


CloudBase Run AI Development Rules

A concise guide for AI assistants and engineering collaboration, providing "when to use, how to use" rules and tool workflows.

1. When to use CloudBase Run (Use Cases)

  • Need long connection capabilities: WebSocket / SSE / server push
  • Need long-running or persistent processes: tasks that are not suitable for cloud functions, background jobs
  • Need custom runtime environments/system dependencies: custom images, specific system libraries
  • Use multi-language/arbitrary frameworks: Java, Go, PHP,.NET, Python, Node.js, etc.
  • Need stable external services with elastic scaling: pay-as-you-go, can scale down to 0
  • Need private/internal network access: VPC/PRIVATE access, mini-program callContainer internal direct connection
  • Need to develop AI agents: develop personalized AI applications based on Function mode CloudRun

2. Mode Selection (Quick Comparison)

  • Function mode: Fastest to get started, built-in HTTP/WebSocket/SSE, fixed port 3000; local running supported by tools
  • Container mode: Any language and runtime, requires Dockerfile; local running not supported by tools

Mode Comparison Checklist

DimensionFunction ModeContainer Mode
Language/FrameworkNode.js (via @cloudbase/functions-framework)Any language/runtime (Java/Go/PHP/.NET/Python/Node.js, etc.)
RuntimeFunction framework loads functions (Runtime)Docker image starts process
PortFixed 3000Application listens on PORT (injected by platform during deployment)
DockerfileNot requiredRequired (and must pass local build)
Local RunningSupported (built-in tools)Not supported (recommend using Docker for debugging)
Typical ScenariosWebSocket/SSE/streaming responses, forms/files, low latency, multiple functions per instance, shared memoryArbitrary system dependencies/languages, migrating existing containerized applications

3. Development Requirements (Must Meet)

  • Must listen on PORT environment variable (real port in container)
  • Stateless service: write data externally (DB/storage/cache)
  • No background persistent threads/processes outside requests
  • Minimize dependencies, slim images; reduce cold start and deployment time
  • Resource constraints: Mem = 2 × CPU (e.g., 0.25 vCPU → 0.5 GB)
  • Access control: Only enable public network for Web scenarios; mini-programs prioritize internal direct connection, recommend closing public network

4. Tools (Plain Language & Read/Write Separation)

  • Read operations (queryCloudRun):

- list: What services do I have? Can filter by name/type - detail: Current configuration, version, access address of a service - templates: Ready-to-use starter templates

  • Write operations (manageCloudRun):

- init: Create local project (optional template) - download: Pull existing service code to local - run: Run locally (Function mode only, supports normal function and Agent mode) - deploy: Deploy local code to CloudRun - delete: Delete service (requires explicit confirmation) - createAgent: Create AI agent (based on Function mode CloudRun)

  • Important parameters (remember these):

- targetPath: Local directory (must be absolute path) - serverConfig: Deployment parameters (CPU/Mem/instance count/access type/environment variables, etc.) - runOptions: Local running port and temporary environment variables (Function mode), supports runMode: 'normal' | 'agent' - agentConfig: Agent configuration (agentName, botTag, description, template) - Delete must include force: true, otherwise it won't execute

5. Core Workflow (Understand Steps First, Then Examples)

  1. Choose mode

- Need multi-language/existing container/Docker: choose "Container mode" - Need long connection/streaming/low latency/multiple functions coexisting: prioritize "Function mode"

  1. Initialize local project

- General: Use template init (both Function mode and Container mode can start from templates) - Container mode must "check or generate Dockerfile": - Node.js minimal example: FROM node:18-alpine WORKDIR /app COPY package*.json./ RUN npm ci --omit=dev COPY.. ENV NODE_ENV=production EXPOSE 3000 CMD ["node","server.js"] - Python minimal example: FROM python:3.11-slim WORKDIR /app COPY requirements.txt./ RUN pip install -r requirements.txt --no-cache-dir COPY.. ENV PORT=3000 EXPOSE 3000 CMD ["python","app.py"]

  1. Local running (Function mode only)

- Automatically use npm run dev/start or entry file via run

  1. Configure access

- Set OpenAccessTypes (WEB/VPC/PRIVATE) as needed; configure security domain and authentication for Web scenarios

  1. Deploy

- Specify CPU/Mem/instance count/environment variables, etc. during deploy

  1. Verify

- Use detail to confirm access address and configuration meet expectations

Example Tool Calls

  1. View templates/services
{ "name": "queryCloudRun", "arguments": { "action": "templates" } }
{ "name": "queryCloudRun", "arguments": { "action": "detail", "detailServerName": "my-svc" } }
  1. Initialize project
{ "name": "manageCloudRun", "arguments": { "action": "init", "serverName": "my-svc", "targetPath": "/abs/ws/my-svc", "template": "helloworld" } }
  1. Download code (optional)
{ "name": "manageCloudRun", "arguments": { "action": "download", "serverName": "my-svc", "targetPath": "/abs/ws/my-svc" } }
  1. Local running (Function mode only)
{ "name": "manageCloudRun", "arguments": { "action": "run", "serverName": "my-svc", "targetPath": "/abs/ws/my-svc", "runOptions": { "port": 3000 } } }
  1. Deploy
{ "name": "manageCloudRun", "arguments": { "action": "deploy", "serverName": "my-svc", "targetPath": "/abs/ws/my-svc", "serverConfig": { "OpenAccessTypes": ["WEB"], "Cpu": 0.5, "Mem": 1, "MinNum": 0, "MaxNum": 5 } } }
  1. Create AI agent (optional)
{ "name": "manageCloudRun", "arguments": { "action": "createAgent", "serverName": "my-agent", "targetPath": "/abs/ws/agents", "agentConfig": { "agentName": "MyAgent", "botTag": "demo", "description": "My agent", "template": "blank" } } }
  1. Run agent (optional)
{ "name": "manageCloudRun", "arguments": { "action": "run", "serverName": "my-agent", "targetPath": "/abs/ws/agents/my-agent", "runOptions": { "port": 3000, "runMode": "agent" } } }

6. Best Practices (Strongly Recommended)

  • Prioritize PRIVATE/VPC or mini-program internal callContainer, reduce public network exposure
  • Web must use CloudBase Web SDK authentication; mini-programs authenticated by platform
  • Secrets via environment variables; separate configuration for multiple environments (dev/stg/prod)
  • Use queryCloudRun.detail to verify configuration and accessibility before and after deployment
  • Image layers reusable, small volume; monitor startup latency and memory usage
  • Agent development: Use @cloudbase/aiagent-framework, supports SSE streaming responses, BotId format is ibot-{name}-{tag}

7. Quick Troubleshooting

  • Access failure: Check OpenAccessTypes/domain/port, whether instance scaled down to 0
  • Deployment failure: Verify Dockerfile/build logs/image volume and CPU/Mem ratio
  • Local running failure: Only Function mode supported; requires package.json dev/start or entry index.js|app.js|server.js
  • Performance jitter: Reduce dependencies and initialization; appropriately increase MinNum; optimize cold start
  • Agent running failure: Check @cloudbase/aiagent-framework dependency, BotId format, SSE response format

8. Function Mode CloudRun (Function Mode) Key Points (Concise)

  • Definition: CloudRun + function framework (@cloudbase/functions-framework) + function code, making container service development as simple as writing cloud functions
  • When to choose: Need WebSocket/SSE/file upload/streaming responses; need long tasks or connect to DB/message queue; need multiple functions per instance and shared memory, low latency and better logs/debugging
  • Agent mode: Develop AI agents based on Function mode CloudRun, use @cloudbase/aiagent-framework, supports SSE streaming responses and personalized AI applications
  • Tool support: Local running only supports Function mode (manageCloudRunrun); deploy using manageCloudRundeploy; query using queryCloudRun
  • Migration tips: Different from cloud function call chain/runtime, migration requires minor modifications (including client calling methods)
  • Portability: Based on function framework, can run locally/host/Docker, non-CloudRun requires self-managed build and deployment

9. Service Invocation Methods (Concise Examples)

HTTP Direct Access (when WEB public network enabled)

curl -L "https://<your-service-domain>"

WeChat Mini Program (internal direct connection, recommend closing public network)

// app.js (ensure wx.cloud.init() is called)
const res = await wx.cloud.callContainer({
  config: { env: "<envId>" },
  path: "/",
  method: "GET",
  header: { "X-WX-SERVICE": "<serviceName>" }
});

Web (JS SDK, need to configure security domain and authentication)

import cloudbase from "@cloudbase/js-sdk";

const app = cloudbase.init({ env: "<envId>" });  // Collect user's phone number into variable `phoneNum` by providing a input UI

const auth = app.auth();

// Send SMS code
const verificationInfo = await auth.getVerification({
  phone_number: `+86 ${phoneNum}`,
});

// Collect user's phone number into variable `verificationCode` by providing a input UI

// Sign in
await auth.signInWithSms({
  verificationInfo,
  verificationCode,
  phoneNum,
});

const res = await app.callContainer({
  name: "<serviceName>", method: "POST", path: "/api",
  header: { "Content-Type": "application/json" },
  data: { key: "value" }
});

// Web JS SDK initialization MUST be synchronous: // - Always use top-level import cloudbase from "@cloudbase/js-sdk"; // - Do NOT use dynamic imports like import("@cloudbase/js-sdk") or async wrappers such as initCloudBase() with internal initPromise

Node.js (server-side/cloud function internal call)

import tcb from "@cloudbase/node-sdk";
const app = tcb.init({});
const res = await app.callContainer({
  name: "<serviceName>", method: "GET", path: "/health",
  timeout: 5000
});

Recommendations

  • Mini Program/Server side prioritize internal network (VPC/PRIVATE) calls, reduce exposure surface
  • Web scenarios need to enable WEB, public domain and security domain, and use SDK authentication

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

30.05%
按下载量换算103

OpenCode

24.94%
按下载量换算86

Antigravity

17.55%
按下载量换算60

Codex

12.94%
按下载量换算44

trae

7.3%
按下载量换算25

Gemini CLI

3.46%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills