Skip to main content
Agent skill

Tencent

Run tccli to inspect or change Tencent Cloud resources (TKE, CVM, CLB, VPC). Includes a script that loads short-lived credentials for a Nuphos-bound account.

Get started

Get the complete skill folder, including its scripts and reference files.

When to use this skill

Use Tencent when an AI agent needs a reusable SKILL.md workflow for this job: Run tccli to inspect or change Tencent Cloud resources (TKE, CVM, CLB, VPC). Includes a script that loads short-lived credentials for a Nuphos-bound account.

When not to use it

Skip Tencent when the task is outside the creativity category, or when a more specific skill in this directory already covers the same workflow with clearer triggers.

How to install

Where will you use it?

Install scope
Claude Code folder setup
mkdir -p ~/.claude/skills/tencent
# Save SKILL.md to ~/.claude/skills/tencent/SKILL.md
  1. Claude Code personal install: place the skill and its bundled files at ~/.claude/skills/tencent/SKILL.md. For a shared project, commit the folder at .claude/skills/tencent/ instead.
  2. Current Claude Code detects SKILL.md changes in watched directories during the session. If you just created a top-level skills directory, run /reload-skills. Check that the skill is listed before testing its trigger.
  3. For Claude chat or Cowork in the Desktop app, manage uploaded skills in Customize > Skills; copying files into a local Claude Code folder is not a Desktop install. Other agents may use different install locations.

Full install guide for Claude, Cursor, and Codex →

Try a starter prompt

After installing the skill, paste this starter prompt into your agent to verify it triggers on a small task.

Starter prompt
Use the Tencent skill for this task: Use Tencent when this documented workflow matches the task. Confirm any required inputs or files before making changes.

What supports this recommendation?

70/100 provisional content score. This measures documentation, practical detail and source signals. It is not a measured task success rate or a security certification.

Documentation
77/100
Practical detail
68/100
Source evidence
63/100
Source signals
70/100
Model compatibility evidence
  • claudeuntested

    No model-specific signal or recorded compatibility test was found.

  • chatgptuntested

    No model-specific signal or recorded compatibility test was found.

  • geminiuntested

    No model-specific signal or recorded compatibility test was found.

  • copilotuntested

    No model-specific signal or recorded compatibility test was found.

  • llamauntested

    No model-specific signal or recorded compatibility test was found.

  • perplexityuntested

    No model-specific signal or recorded compatibility test was found.

  • mistraluntested

    No model-specific signal or recorded compatibility test was found.

  • grokuntested

    No model-specific signal or recorded compatibility test was found.

Inferred compatibility is based on content signals. Check the app, its available tools and setup requirements before running a skill.

What this skill does

# Tencent Cloud CLI (tccli)

## Session isolation

Keep CLI credentials and settings inside the current session's `HOME` (`NUPHOS_SESSION_HOME`) and respect the supplied CLI config environment variables. Do not copy another session's or the runtime owner's credentials. Without `NUPHOS_SESSION_HOME`, CLI defaults may use shared runtime configuration; be aware of the affected scope.

Changing runtime-global settings is possible, but strongly discouraged unless the user understands the impact on other sessions and explicitly requests it. Explain the shared scope first; do not unset session isolation variables, write to the runtime owner's home, use a shared OS credential store, or modify shared shell startup files as routine setup. This is configuration isolation, not an OS security boundary.

Use this skill when the user wants to inspect or change Tencent Cloud resources directly with `tccli`. Authenticate before any `tccli` call — either with credentials Nuphos mints for a bound account (preferred), or with credentials the user pasted in.

## When to skip this skill

For anything Nuphos already exposes via its own API — listing TKE clusters, fetching kubeconfigs — call the Nuphos backend route directly instead of `tccli`. Same data, no setup, smaller blast radius:

- List TKE clusters in a bound account → `GET /teams/:teamId/tencent-accounts/:accountId/clusters` - Run kubectl against a TKE cluster → its context is `tencent/<account>/<cluster>` in the kubeconfig the kubectl skill sets up

Use this skill when the user asks for something Nuphos does not expose (e.g. COS, CLB, VPC/security-group edits, CVM, Cloud Monitor), or hands you keys for an account Nuphos isn't connected to.

## Setup

```bash # Authenticate. Pick ONE path:

# (a) PREFERRED — short-lived assumed-role STS credentials for an Nuphos-bound # account. Writes ~/.tccli/default.credential + default.configure so plain # `tccli` calls work. These expire (assumed-role session) — re-run to refresh. bash skills/tencent/scripts/setup-credentials.sh <teamId> <accountId> [region]

# (b) Static keys the user pasted — pass per command, never write to disk. tccli cvm DescribeRegions --region ap-guangzhou \ --SecretId AKID... --SecretKey ... ```

`tccli` is provided by the runtime image's tool manifest, not baked into it: the first call installs the pinned build from its hash-locked requirements and can take a while, so let it finish rather than interrupt it. `nuphos-tools list` shows the tool and its state. If the command is missing entirely, or that install keeps failing, report the runtime mismatch instead of doing an unpinned package install during the task.

Nuphos uses OIDC web-identity federation here (like AWS): the customer registers Nuphos as a CAM OIDC identity provider and creates a CAM role trusting it, then Nuphos calls `sts:AssumeRoleWithWebIdentity` to get short-lived credentials — no long-lived keys are stored. `setup-credentials.sh` calls `GET /teams/:teamId/tencent-accounts/:accountId/credentials` on the Nuphos backend with the user's `NUPHOS_TOKEN` and writes a `token`-type tccli profile (SecretId/SecretKey + token). These expire (assumed-role session), so re-run the script to refresh. The credentials carry exactly the role's permissions.

Always run `tccli sts GetCallerIdentity --region <region>` first to confirm which account/role you are about to operate on, and tell the user before doing anything mutating.

## When you hit AuthFailure / HTTP 403

If `setup-credentials.sh` returns HTTP 403, the current member account does not have access to that Tencent binding (or it wasn't shared with them). Do not try to request access from inside the sandbox. Ask the user or a team admin to add the member account to the binding's Access allow list.

If a `tccli` call returns `AuthFailure.UnauthorizedOperation` or `CamNoAuth*`, the bound CAM role is missing a permission — report exactly which action/resource failed so the user can widen the role's policy. Do not attempt to escalate from inside the sandbox.

## Common operations

```bash # Which identity am I? tccli sts GetCallerIdentity --region ap-guangzhou

# List TKE clusters in a region tccli tke DescribeClusters --region ap-guangzhou

# List CVM instances tccli cvm DescribeInstances --region ap-guangzhou

# Describe a CLB load balancer tccli clb DescribeLoadBalancers --region ap-guangzhou ```

Tencent APIs are region-scoped — always pass `--region`. Use `tccli <product> help` to discover actions.

Intended uses

  • Use Tencent when this documented workflow matches the task.

Implementation notes

  • Review the source instructions and adapt inputs before running the workflow.

Try it, then tell us how it went

A copied prompt does not tell us whether the task worked. Report your result after checking the output. We collect your tool and outcome, never your files or prompt.