huawei-cloud-rds-failover

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

A Huawei Cloud tool for rehearsing a database failover, where a standby database takes over when the primary is unavailable. It checks prerequisites, performs the switch, waits for completion, and creates an HTML report for supported RDS engines.

In plain words
What is it for?
Use it to test high-availability and disaster-recovery behaviour for MySQL, PostgreSQL, SQL Server, or MariaDB RDS instances.
Why use it?
It replaces a loosely documented failover exercise with a defined preparation, execution, and reporting process. It also gathers logs and monitoring data for review.

Skill for Claude CodeCodex

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

Good fit Use it to test high-availability and disaster-recovery behaviour for MySQL, PostgreSQL, SQL Server, or MariaDB RDS instances.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/huaweicloud/huaweicloud-skills/huawei-cloud-rds-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-rds-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-rds-failover

README.md
[![agentmods](https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-rds-failover/github.svg)](https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-rds-failover)
Your own site
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-rds-failover"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-rds-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-rds-failover

Your own site · 80×15
<a href="https://agentmods.dev/skills/huaweicloud/huaweicloud-skills/huawei-cloud-rds-failover"><img src="https://agentmods.dev/badge/skills/huaweicloud/huaweicloud-skills/huawei-cloud-rds-failover.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 251 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,439 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.00251 $0.04439
Opus 5.5 $0.00100 $0.01776
Sonnet 5.5 $0.00050 $0.00888
Haiku 4.5 $0.00025 $0.00444

Measured 1mo ago against content hash 4a72da3f6407, 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-rds-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 1mo ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/ces_config.py, scripts/config.py, scripts/execute.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/rds/huawei-cloud-rds-failover/SKILL.md · 261 lines

How it starts

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

华为云 RDS 主备倒换演练

概述

本工具用于在华为云上安全地执行 RDS 主备倒换(Failover)演练。通过三阶段流水线完成:

prepare(准备检查) → execute(执行倒换) → report(生成报告)
  • prepare:查询 RDS HA 实例、检查 IAM 权限、生成实验配置目录,并执行风险评估(详见下文专节)
  • execute:读取配置、执行主备倒换、轮询等待完成、收集日志和监控数据
  • report:读取配置和执行结果、生成综合 HTML 报告

支持所有 RDS 引擎:MySQL、PostgreSQL、SQL Server、MariaDB、TaurusDB(GaussDB for MySQL)。

触发词/触发条件

当用户需要执行 RDS 主备倒换、主备切换、故障演练、failover 实验时触发本 skill。

触发词:RDS主备倒换、主备倒换演练、failover、RDS故障演练、主备切换、倒换实验、rds failover、RDS failover、高可用演练、高可用验证、RDS HA切换、主备互换、RDS switchover、数据库故障演练、RDS容灾演练

触发条件:

  • 用户提到 RDS 主备倒换或 failover 操作
  • 用户需要对 HA 类型 RDS 实例执行主备切换
  • 用户需要 RDS 故障演练或高可用验证
  • 用户需要对 RDS 实例做主备互换或 switchover
  • 用户需要验证 RDS 高可用容灾能力

前置条件

条件 说明 验证方式
hcloud CLI 已安装并完成认证(KooCLI ≥ 3.0.0) hcloud version
AK/SK 通过 hcloud profile 配置(hcloud configure init)。脚本仅检查 AK/SK 环境变量是否存在(不读取实际值),实际认证由 hcloud profile 完成 hcloud RDS ListInstances --cli-region=cn-north-1
Python 3.8+ 运行脚本 python3 --version
HA 类型 RDS 实例 目标区域内至少存在一个主备实例 hcloud CLI 查看
实例状态为 ACTIVE 倒换前实例必须处于运行状态 prepare 阶段自动检查

配置

共享配置文件 config/config.json:

{
  "region": "<华为云区域ID>",
  "instance_id": "<目标RDS实例ID>"
}
字段 必填 说明
region 是 华为云区域 ID(如 cn-north-1、cn-north-4)
instance_id 是 目标 RDS 实例 ID(HA 类型,32位十六进制 + in01 后缀)

⚠️ 运行前必须修改 config/config.json:将 region 和 instance_id 替换为您自己的华为云区域和 RDS 实例 ID。默认占位符值无法运行,直接使用他人的实例 ID 可能导致对非预期实例执行主备倒换。

快速开始

一键完整流程

# 预演(不实际执行倒换)
python3 scripts/run.py

# 实际执行完整流水线
python3 scripts/run.py --yes

分阶段执行

# 1. 准备检查
python3 scripts/run.py --phase prepare
# 或直接运行
python3 scripts/prepare.py

# 2. 执行倒换(需人工确认)
python3 scripts/run.py --phase execute --yes
# 或直接运行
python3 scripts/execute.py --config-dir experiments --yes
# 若 prepare 检测出严重风险且已人工评估接受,可加 --force 强制演练(不推荐默认使用):
#   python3 scripts/execute.py --config-dir experiments --yes --force

# 3. 生成报告
python3 scripts/run.py --phase report
# 或直接运行
python3 scripts/report.py --config-dir experiments

Read the full file on GitHub · 261 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. 1mo ago Changed · +64 lines · +60 tokens per session 4a72da3f6407
  2. 1mo ago First seen · 197 lines · 191 tokens per session scan A 918226fb5566

Subscribe to this mod's changes

huawei-cloud-rds-failover is a skill published in the GitHub repository huaweicloud/huaweicloud-skills (59 stars, last pushed yesterday), licensed MIT. It adds 251 tokens to every session and 4,439 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-09-22.

Related

Other skills, from other repositories

cloud-databases-onboarding

Guides users through discovering their database requirements, recommends a Google Cloud database based on a recommendation matrix, and assists in database creation. Use when a user asks 'What database service should I use?', 'Help me pick a database', or when a user wants to create a new database on Google Cloud.…

google/skills · 83 tokens

azure-resource-manager-mysql-dotnet

Azure MySQL Flexible Server SDK for .NET. Database management for MySQL Flexible Server deployments. Use for creating servers, databases, firewall rules, configurations, backups, and high availability. Triggers: "MySQL", "MySqlFlexibleServer", "MySQL Flexible Server", "Azure Database for MySQL", "MySQL database…

microsoft/skills · 87 tokens

azure-mgmt-mongodbatlas-dotnet

Manage MongoDB Atlas Organizations as Azure ARM resources using Azure.ResourceManager.MongoDBAtlas SDK. Use when creating, updating, listing, or deleting MongoDB Atlas organizations through Azure Marketplace integration. This SDK manages the Azure-side organization resource, not Atlas clusters/databases directly.

microsoft/skills · 64 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

azure-resource-manager-sql-dotnet

Azure Resource Manager SDK for Azure SQL in .NET. Use for MANAGEMENT PLANE operations: creating/managing SQL servers, databases, elastic pools, firewall rules, and failover groups via Azure Resource Manager. NOT for data plane operations (executing queries) - use Microsoft.Data.SqlClient for that. Triggers: "SQL…

microsoft/skills · 109 tokens

azure-storage

Azure Storage Services including Blob Storage, File Shares, Queue Storage, Table Storage, and Data Lake. Answers questions about storage access tiers (hot, cool, cold, archive), when to use each tier, and tier comparison. Provides object storage, SMB file shares, async messaging, NoSQL key-value, and big data…

microsoft/skills · 158 tokens