Preface¶
When performing Tencent Cloud operations or troubleshooting in environments like Cursor and Claude Code, the common practice involves repeatedly checking documentation, piecing together tccli commands, and verifying API parameters. If context is missing regarding service names, Actions, or data structures, the Agent is prone to providing outdated or non-executable calls.
tsa is an enterprise-class Skill published by the Tencent CloudQ Team on SkillHub (coordinates @tencent-adm/tsa, current version 1.1.1, category it-ops-security). It embeds TSA (Tencent Cloud Smart Advisor) and CloudQ-related capabilities into a standard SKILL.md file. It also includes steps for TCCLI installation, credential configuration, and Tencent Cloud API information repository retrieval, enabling Agents to follow a unified workflow when users inquire about CloudQ or require Smart Advisor-related operations.
What is this¶
In one sentence: tsa is an Agent-facing Tencent Cloud Smart Advisor (TSA) skill package belonging to the CloudQ product line (the Skill description refers to CloudQ as the ITOM “domain shrimp”).
Maintainer: Tencent CloudQ Team (labeled as an enterprise source on the SkillHub page).
Problem Solved: Unifying trigger conditions (e.g., “who is cloudq”, “what is cloudq”, Tencent Cloud Smart Advisor-related operations), runtime dependencies (Python 3, Tencent Cloud credential environment variables), network and local config directory permissions, and best practices for retrieving API documentation via TCCLI and public information repositories.
SkillHub tags indicate requires_api_key=true: Credentials with access to Tencent Cloud APIs (environment variables or TCCLI login state) are required before use.
Core Functions¶
The following capabilities are derived from the SKILL.md and references/ documentation within the Skill package. After installation, the Agent can read these files to follow the guidelines.
Runtime and Environment Constraints¶
Skill metadata requirements:
python3is available on the local machine- Environment variables
TENCENTCLOUD_SECRET_ID,TENCENTCLOUD_SECRET_KEY(or writing local credentials via TCCLI browser authorization, see below) - Network access to
https://*.tencentcloudapi.comandhttps://cloud.tencent.com - Read/write permissions for the local directory
~/.tencent-cloudq/
Operations involving CAM/STS are explicitly listed in the metadata (e.g., cam:GetRole, cam:CreateRole, sts:AssumeRole). The description emphasizes: Role creation/deletion are independent steps that must be executed only after explicit user consent (create_role.py creates roles, cleanup.py --cloud deletes roles; check_env.py performs only read-only detection). Temporary credentials are used only in memory; configuration files store only the role ARN, not keys.
TCCLI Installation and Credentials (references)¶
The Skill recommends TCCLI as the CLI for calling Tencent Cloud APIs. Installation and verification examples:
pip install tccli
tccli --version
For credentials, browser authorization is recommended to avoid manual entry of SecretId/SecretKey:
tccli auth login
This command will block until the user completes OAuth authorization in the browser; upon success, it can be verified using tccli cvm DescribeRegions. For multiple accounts, use tccli auth login --profile user1; to log out, use tccli auth logout (or include --profile).
Information Repository Retrieval (references/refs.md)¶
When needing to determine service names, best practices, specific Actions, or data structures, the Skill provides a retrieval workflow based on curl and grep, with the data source being Tencent Cloud’s public refs:
Discovering businesses (Example: finding the service name for “Cloud Virtual Machine”):
curl -s https://cloudcache.tencentcs.com/capi/refs/services.md | grep Cloud Virtual Machine
Retrieving best practices for a business:
curl -s https://cloudcache.tencentcs.com/capi/refs/service/cvm/practices.md | grep Reinstall
Retrieving interface lists:
curl -s https://cloudcache.tencentcs.com/capi/refs/service/cvm/actions.md | grep "Expand\|Disk"
Reading documentation for a single interface or data structure:
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
Configuration and Cleanup (SKILL.md)¶
The Skill documentation provides usage for local/cloud cleanup scripts (the {baseDir} in paths refers to the Skill installation directory):
python3 {baseDir}/scripts/cleanup.py
python3 {baseDir}/scripts/cleanup.py --all
python3 {baseDir}/scripts/cleanup.py --all --cloud
The cleanup scope includes:
~/.tencent-cloudq/(includingconfig.json).tcloud_advisor_uin_cachein the system temporary directory- Set
TENCENTCLOUD_*environment variables (the script can generate corresponding shell/PowerShell cleanup commands) - When
--cloudis added, deletes the cloud CAM roleadvisor(requires configured AK/SK)
Installation and Activation¶
1. Install SkillHub CLI (if not already installed)¶
command -v skillhub && skillhub --version
If not installed, follow the official SkillHub instructions to run the full installation script (see SkillHub Installation Documentation).
2. Install @tencent-adm/tsa¶
The method provided on the official page is to have the Agent install the coordinates @tencent-adm/tsa following the SkillHub installation documentation. The command form is as follows (must use --dir to point to the current Agent’s skills directory, otherwise defaulting to ./skills/ may not be recognized):
skillhub install @tencent-adm/tsa --dir <skills directory>
Common paths (from SkillHub installation documentation):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
After installation, refresh or restart according to your client’s requirements to load the Skill.
3. Prepare TCCLI and Credentials¶
Install TCCLI and complete tccli auth login according to references/install.md and references/auth.md within the Skill, or configure TENCENTCLOUD_SECRET_ID / TENCENTCLOUD_SECRET_KEY according to Skill metadata.
Typical Usage¶
Scenario A: User asks what CloudQ or TSA is
The Agent should load the tsa Skill, answer based on the description in the preface of SKILL.md, and follow the TCCLI or information repository retrieval workflow when involving actual operations, rather than fabricating product capabilities.
Scenario B: Looking up the interface to expand disk for a CVM
- Use
services.mdto confirm the service name iscvm(see the curl example above). - Grep for the target operation in
actions.mdand open the correspondingaction/*.mdto read parameters. - View data structures in
model/*.mdif needed. - Use the configured TCCLI or SDK to initiate the call (example verification command:
tccli cvm DescribeRegions).
Scenario C: Clean up local and optional cloud roles after use
Execute the corresponding parameters of cleanup.py after user confirmation to avoid residual key information in ~/.tencent-cloudq/ or environment variables.
Applicable Scenarios and Notes¶
Who is it for
- Teams already using clients supporting Skills like Cursor, Claude Code, or Codex, and whose workflows frequently involve Tencent Cloud operations, advisory capabilities, or CloudQ-related Q&A.
- Environments willing to authorize Agent access to
tencentcloudapi.comvia TCCLI or AK/SK.
Limitations and Notes
- Tag
requires_api_key=true: Without valid Tencent Cloud credentials, the Skill cannot complete real API calls. - IAM-related write operations (creating/deleting the
advisorrole) require explicit user consent before execution; do not enable by default in one click. tccli auth loginwill block for a long time when executed automatically by an Agent; users need to be prompted to open the authorization link in the terminal to complete browser login.- SkillHub page statistics (as of data retrieval): Rating 100000, Downloads 1170, Installations 31; figures may vary from some third-party summaries, subject to SkillHub.
Conclusion¶
tsa consolidates the trigger semantics, credentials and permission boundaries, TCCLI paths, and public API information repository retrieval steps for Tencent Cloud Smart Advisor (TSA) / CloudQ into a single Skill, making it suitable as a fixed capability module for IT operations and security Agents. For installation and details, see SkillHub:
- Page: https://www.skillhub.cn/skills/tencent-adm/tsa
- API Coordinate Page: https://api.skillhub.cn/tencent-adm/tsa