Huaweicloud safety

From huaweicloud/huaweicloud-devkit · View interactive version

Huaweicloud safety is an AI agent skill from the GitHub repository huaweicloud/huaweicloud-devkit. Huawei Cloud safety policy for agents. Use when handling credentials, secrets, IAM, public exposure, billing, destructive actions, scaling, write operations, hooks, command approval, output redaction, or risk review.

How to use this skill

Skill file

Huawei Cloud Safety

STOP - Do not answer from general knowledge. Follow the procedure below.

Use this skill before any Huawei Cloud action that may expose secrets, change resources, affect cost, change IAM, or expose a network endpoint.

Rules

  1. Never ask the user to paste AK/SK, SK, tokens, passwords, private keys, or credential files.
  2. Never read local .hcloud or .huaweicloud credential files into the agent context.
  3. Never call APIs or CLI operations that return secret values directly into the agent context.
  4. Always classify operations before execution:
  1. For any non-read-only operation, show the exact planned change and wait for explicit user approval.
  2. Redact secrets from command output, errors, JSON, logs, and generated reports.
  3. If a command contains adminPass, password, token, or any secret-like field, warn that plaintext can remain in shell history. Prefer local-only input, runtime injection, or user-side execution.

Enforcement Layers

Write Execution Boundary

Proactive Hook Checks

Before executing, deploying, or handing generated cloud artifacts to the user, run the matching check when available:

If the result is deny, repair the command, artifact, or deployment plan before execution. If the result is warn, show the warning to the user and repair or ask for explicit confirmation.

Static Analysis Boundary

Hook checks inspect the command or plan text that is available before execution. If a command builds cloud parameters through shell variables, string concatenation, subshells, encoded payloads, or generated scripts, first expand the final command into reviewable text and run huaweicloud_hook_check_command on that final form. When the final values cannot be determined, stop and ask the user to review the expanded command or use huaweicloud_plan_cli_command before execution.

Safe Alternatives

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.