agentleFS
abdullahkhawerabdullahkhawer/devops-skills/skills/huaweicloud-cli/SKILL.md

huaweicloud-cli

Skill8 starsChanged 7 months agoApache-2.0View on GitHub

Use the correct Huawei Cloud CLI (hcloud) profile and region when running Huawei Cloud commands based on the target environment.

  • Installs packages

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When running hcloud commands, always pass the --cli-profile flag based on the target environment, and specify the region explicitly.

    line 8
  2. Distinctive:

    Update the profile map below with your Huawei Cloud CLI profile names:

    line 12
  3. Distinctive:

    If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually.

    line 21
  4. Very specific:

    Always specify --cli-profile explicitly — never rely on the default profile, as it may point to the wrong account.

    line 79
  5. Very specific:

    Always specify --cli-region explicitly — never rely on a default region.

    line 80
  6. Distinctive:

    If the target environment is unclear, ask the user before running the command.

    line 81
  7. Distinctive:

    NEVER run any command in the "Never run" table above without explicit user instruction — a human must execute these, especially against …

    line 82
  8. Very specific:

    NEVER read or output AK/SK (Access Key/Secret Key) values stored in hcloud CLI profiles or any credential value.

    line 83
  9. Very specific:

    If unsure which account a profile belongs to, run hcloud IAM ShowUser --cli-profile <profile> to verify before proceeding.

    line 84

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Huawei Cloud CLI Skill

When running hcloud commands, always pass the --cli-profile flag based on the target environment, and specify the region explicitly.

Configuration

Update the profile map below with your Huawei Cloud CLI profile names:

EnvironmentProfileDefault Region
Production<your-prod-profile><your-prod-region> (e.g. cn-north-4)
Staging / Non-Prod<your-nonprod-profile><your-nonprod-region> (e.g. ap-southeast-1)

Prerequisites (one-time setup by user)

If not already authenticated, inform the user that setup is required and ask them to complete the following steps manually. Do not perform these steps yourself.

brew install huaweicloud-cli
hcloud configure set --cli-profile <your-profile-name>
hcloud configure list

Command Format

hcloud <service> <action> --cli-profile <profile> --cli-region <region> [options]

Examples

# Production
hcloud ECS ListServersDetails --cli-profile <your-prod-profile> --cli-region <your-prod-region>

# Staging / Non-Prod
hcloud ECS ListServersDetails --cli-profile <your-nonprod-profile> --cli-region <your-nonprod-region>

Available Commands

Read-only (safe, no confirmation needed)

Command patternDescription
hcloud ECS ListServersDetailsList ECS instances
hcloud ECS ShowServerDescribe an ECS instance
hcloud RDS ListInstancesList RDS database instances
hcloud CCE ListClustersList Kubernetes (CCE) clusters
hcloud IAM ShowUser / KeystoneListAuthProjectsVerify current identity/permissions
hcloud CES ... (List/Show actions)Query Cloud Eye monitoring metrics/alarms

Mutating operations (confirm with user before running)

Command patternDescription
hcloud ECS CreateServersCreate new ECS instances
hcloud RDS CreateInstanceCreate a new RDS instance
hcloud CCE CreateClusterCreate a new Kubernetes (CCE) cluster
hcloud ECS ResizeServerResize an ECS instance

Never run — requires explicit human approval

Command patternReason
hcloud ECS DeleteServersIrreversible resource deletion
hcloud RDS DeleteInstanceIrreversibly destroys a database
hcloud CCE DeleteClusterIrreversibly deletes a Kubernetes cluster
hcloud ECS BatchStopServers / BatchRebootServersDisrupts running workloads
hcloud IAM ... (Create/Delete/Update policy or user)Alters access control, security-sensitive

Rules

  • Always specify --cli-profile explicitly — never rely on the default profile, as it may point to the wrong account.
  • Always specify --cli-region explicitly — never rely on a default region.
  • If the target environment is unclear, ask the user before running the command.
  • NEVER run any command in the "Never run" table above without explicit user instruction — a human must execute these, especially against production.
  • NEVER read or output AK/SK (Access Key/Secret Key) values stored in hcloud CLI profiles or any credential value.
  • If unsure which account a profile belongs to, run hcloud IAM ShowUser --cli-profile <profile> to verify before proceeding.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.