huawei-cloud-dcs-failover

huawei-cloud-dcs-failover is a skill for Claude Code, Codex from huaweicloud/huaweicloud-skills. It costs 257 tokens per session (4,175 once invoked), scanned A, original, MIT.

A Huawei Cloud tool for testing failover of a DCS master-slave Redis instance. It checks permissions and high-availability setup, performs the switch to the standby node, checks data consistency, and creates an HTML report.

In plain words
What is it for?
Use it to prepare, run, and report a Huawei Cloud DCS failover or availability-zone power-loss drill.
Why use it?
It provides a controlled way to check whether a Redis service can continue after a master node or availability zone fails. The preparation checks help prevent running the drill on an unsuitable setup.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to prepare, run, and report a Huawei Cloud DCS failover or availability-zone power-loss drill.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-dcs-failover
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-dcs-failover
Clone the repo
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for huawei-cloud-dcs-failover

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-dcs-failover/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-dcs-failover)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-dcs-failover"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-dcs-failover/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for huawei-cloud-dcs-failover

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-dcs-failover"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-dcs-failover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 257 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,175 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00257 $0.04175
Opus 5.5 $0.00103 $0.01670
Sonnet 5.5 $0.00051 $0.00835
Haiku 4.5 $0.00026 $0.00417

Measured 6d ago against content hash fdc0f4621ec8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

huawei-cloud-dcs-failover scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/config.py, scripts/execute.py, scripts/prepare.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/storage/dcs/huawei-cloud-dcs-failover/SKILL.md · 294 lines

How it starts

The opening of the file, as written. The whole thing — 294 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Huawei Cloud DCS Master-Slave Failover (AZ Power-Off) Drill

Overview

This tool safely performs a DCS (Redis) master-slave failover drill on Huawei Cloud, verifying instance HA capability under AZ power-off (master node failure) scenarios. It runs a three-phase pipeline:

prepare (checks + risk assessment) -> execute (failover) -> report (generate report)
  • prepare: query DCS instance, check IAM permissions, architecture hard-gate (ha + cross-AZ + RUNNING), generate experiment config directory, and run risk assessment
  • execute: load config, safely execute master-slave failover (ChangeMasterStandby), poll for completion, data consistency check
  • report: read config and execution result, generate comprehensive HTML report (instance info, safety checks, topology change, failover timeline, data consistency check)

Triggers / Trigger Conditions

Triggered when the user needs to perform a DCS master-slave failover, switchover, fault drill, AZ power-off drill, or failover experiment.

Triggers: DCS主备倒换, 主备倒换演练, DCS故障演练, 主备切换, 倒换实验, dcs failover, DCS failover, 高可用演练, 高可用验证, DCS HA切换, AZ断电演练, 主备互换, DCS switchover, Redis故障演练, DCS容灾演练

Trigger conditions:

  • User mentions DCS master-slave failover or failover operation
  • User needs to perform master-slave switchover on a ha-type DCS instance
  • User needs a DCS fault drill or HA verification (AZ power-off scenario)
  • User needs to swap master-slave or switchover on a DCS instance
  • User needs to verify DCS HA / disaster recovery capability

Prerequisites

Condition Description Verification
hcloud CLI Installed and authenticated (KooCLI >= 3.0.0) hcloud version
AK/SK Configured via hcloud profile. Script only checks if read-only calls succeed; actual auth is handled by hcloud profile hcloud DCS ListInstances --cli-region=cn-south-1
Python 3.8+ To run scripts python3 --version
Master-slave DCS instance A ha-type instance exists in the target region hcloud CLI
Instance status RUNNING Instance must be running before failover prepare phase auto-checks

Read the full file on GitHub · 294 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 294 lines · 257 tokens per session scan A fdc0f4621ec8

Subscribe to this mod's changes

huawei-cloud-dcs-failover is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed today), licensed MIT. It adds 257 tokens to every session and 4,175 once invoked, about $0.0010 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-30.

Related

Other skills, from other repositories

google-cloud-storage-fuse

Mounts Cloud Storage buckets on Google Cloud as a POSIX file system with Cloud Storage FUSE (gcsfuse). Use when interacting with gcsfuse or Cloud Storage FUSE mounts: decide whether FUSE, native gs:// reads, or Filestore/Managed Lustre fits a workload, deploy tuned mounts on GKE, Compute Engine, or Cloud Run, enable…

google/skills · 225 tokens

mirrord-db-branching

Helps users configure mirrord.json for database branching, enabling isolated database copies for safe development and testing. Use when the user wants to set up MySQL, MariaDB, PostgreSQL, MSSQL, MongoDB, Redis, DynamoDB, ClickHouse, Google Spanner, Amazon S3, turbopuffer, or generic branches, configure copy modes…

metalbear-co/mirrord · 95 tokens

azure-resource-manager-redis-dotnet

Azure Resource Manager SDK for Redis in .NET. Use for MANAGEMENT PLANE operations: creating/managing Azure Cache for Redis instances, firewall rules, access keys, patch schedules, linked servers (geo-replication), and private endpoints via Azure Resource Manager. NOT for data plane operations (get/set keys, pub/sub) …

microsoft/skills · 114 tokens

edgeone-makers-storage

KV and Blob storage services on EdgeOne Makers. KV for edge key-value pairs, Blob for file/object storage in Cloud Functions. Covers SDK usage, setup, and troubleshooting.

TencentEdgeOne/edgeone-makers-tools · 40 tokens

cis-aws-database-5.11

Ensure ElastiCache has Cluster Mode Enabled.

CyberStrikeus/CyberStrike · 18 tokens

cis-aws-database-5.12

Ensure ElastiCache is deployed across multiple Availability Zones (AZs).

CyberStrikeus/CyberStrike · 24 tokens