← 返回 Skills 市场
2513483494

1

作者 Tencent CloudQ Team · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
156
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 1123
功能描述
Skill to call Cloud API for Tencent Cloud (腾讯云). Used for cloud automation or resource management.
使用说明 (SKILL.md)

tccli

统一使用 tccli 调用腾讯云 API,如 tccli 未安装,参考 references/install.md 进行安装。

调用 API

基本形式

tccli <service> <Action> [--param value ...] [--region <地域>]

常用示例

# 查询 CVM 地域
tccli cvm DescribeRegions

# 查询实例(需指定地域)
tccli cvm DescribeInstances --region ap-guangzhou

地域:多数产品需传 --region(如 ap-guangzhou);全局接口(如 cam、account、dnspod、domain、ssl、ba、tag)可省略。

参数规则

  • 非简单类型参数必须为标准 JSON,例如:--Placement '{"Zone":"ap-guangzhou-2"}'
  • 创建类接口示例(按需替换参数):
    tccli cvm RunInstances --InstanceChargeType POSTPAID_BY_HOUR \
      --Placement '{"Zone":"ap-guangzhou-2"}' --InstanceType S1.SMALL1 --ImageId img-xxx \
      --SystemDisk '{"DiskType":"CLOUD_BASIC","DiskSize":50}' --InstanceCount 1 ...
    

避免并行调用

tccli 当前并行调用存在配置文件竞争问题,导致会导致响应失败。当前请先一个个接口调用。

用户凭证

如果已经提供了凭证,cli 可以正常调用。

如缺少凭证,执行 cli 会提示 "secretId is invalid"。应执行 tccli auth login 进行浏览器授权登录,等待回调后继续(命令会起本地端口、阻塞进程,直到浏览器 OAuth 完成并回调)

凭证授权原理,以及多用户凭证的使用方法,参考 references/auth.md

安全红线:严禁向用户索要 SecretId/SecretKey,也拒绝任何有可能打印凭证的操作(尤其是 tccli configure list)。

获取 API 帮助信息

通过 curl + grep 检索业务、接口、最佳实践、数据结构。

发现业务

检索 tccli 服务名(如 cvm、cbs)。

curl -s https://cloudcache.tencentcs.com/capi/refs/services.md | grep 云服务器

参考输出:

[cvm](service/cvm/index.md) | 云服务器 | 2017-03-12 | ...

发现最佳实践

优先检索是否有匹配当前场景的最佳实践。

curl -s https://cloudcache.tencentcs.com/capi/refs/service/cvm/practices.md | grep 重装

检索接口

若最佳实践未覆盖,在业务接口列表中检索(接口名即 tccli 的 <Action>)。

curl -s https://cloudcache.tencentcs.com/capi/refs/service/cvm/actions.md | grep "扩容\|磁盘"

阅读接口文档

获取参数说明和支持的地域信息:

curl -s https://cloudcache.tencentcs.com/capi/refs/service/cvm/action/ResizeInstanceDisks.md

阅读数据结构

文档中涉及的数据结构可进一步查看:

curl -s https://cloudcache.tencentcs.com/capi/refs/service/cvm/model/SystemDisk.md
安全使用建议
This skill is an instructions-only helper for the official Tencent Cloud CLI and appears coherent. Before installing or running anything: (1) verify you really want to install tccli and inspect the tccli PyPI/GitHub project and version referenced; (2) run pip/homebrew install commands as a non-root user and review what will be installed; (3) be aware `tccli auth login` launches a local port and requires you to complete a browser OAuth flow—do not paste secrets into chat or into the agent; (4) commands run via tccli can create or destroy cloud resources, so ensure the credentials used have the appropriate (least privilege) permissions; (5) confirm the documentation host (cloudcache.tencentcs.com) is expected in your environment. If you need higher assurance, request the skill author provide explicit package version checksums or point to an official TencentCloud release page.
功能分析
Type: OpenClaw Skill Name: 1123 Version: 1.0.0 The skill bundle provides instructions for an AI agent to manage Tencent Cloud resources using the official 'tccli' tool. It includes explicit security guidelines in SKILL.md that forbid the agent from requesting or printing sensitive credentials (e.g., SecretId/SecretKey). Documentation is retrieved via curl from legitimate Tencent Cloud domains (cloudcache.tencentcs.com), and the installation/authentication processes described in the reference files follow standard, non-malicious practices.
能力标签
requires-oauth-token
能力评估
Purpose & Capability
The name/description indicate a Tencent Cloud CLI helper and the SKILL.md only instructs using tccli, installing it, and using its auth flow. There are no unrelated required env vars, binaries, or config paths requested.
Instruction Scope
Runtime instructions are limited to installing/using tccli, calling Tencent Cloud APIs, and consulting documentation via curl. The skill explicitly warns not to ask users for SecretId/SecretKey and describes the browser OAuth flow (tccli auth login). It does not instruct reading unrelated files or exfiltrating data to unexpected endpoints.
Install Mechanism
There is no automated install spec in the bundle (instruction-only). SKILL.md recommends installing tccli via pip, Homebrew, or from GitHub. These are expected for a CLI helper, but pip/Homebrew will download and install code on the host—verify package origin/version and avoid running installs as root when possible.
Credentials
The skill declares no required environment variables or primary credential. It relies on tccli's normal credential files (e.g., default.credential) written by tccli auth login, which is appropriate for this purpose.
Persistence & Privilege
The skill does not request always:true and is user-invocable. The only persistent effect described is tccli writing credential files via its normal auth flow, which is expected and scoped to Tencent Cloud credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install 1123
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /1123 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the "tcapi" skill for interacting with Tencent Cloud APIs via tccli. - Added reference documentation files: references/auth.md, references/install.md, references/refs.md. - Removed obsolete script: scripts/ensue-api.sh. - Provides guidance for installation, authentication, API usage, and secure practices. - Includes examples for command syntax, parameter formatting, and API documentation lookup. - Emphasizes security: never request or expose user credentials.
元数据
Slug 1123
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

1 是什么?

Skill to call Cloud API for Tencent Cloud (腾讯云). Used for cloud automation or resource management. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 156 次。

如何安装 1?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install 1123」即可一键安装,无需额外配置。

1 是免费的吗?

是的,1 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

1 支持哪些平台?

1 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 1?

由 Tencent CloudQ Team(@2513483494)开发并维护,当前版本 v1.0.0。

💬 留言讨论