Huawei Rds 标志

Huawei Rds

组织
huaweicloud
huawei-rds

Use when creating, configuring, managing, or troubleshooting RDS instances on Huawei Cloud. Covers MySQL, PostgreSQL, SQL Server. Triggers: RDS, MySQL, PostgreSQL, database instance, backup, read replica. NOT for: GaussDB (use huawei-cloud-gaussdb-instance-management), DDS (use huawei-cloud-dds-dcs-instance-management).

Add to TypingMind

概览

发布者huaweicloud
代码仓库huaweicloud-devkit
技能名称huawei-rds
星标数
70
复刻数
12
附带文件
仅含指令
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 huaweicloud 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Huawei Rds AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-rds
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/huaweicloud/huaweicloud-devkit.git /tmp/huaweicloud-devkit
mkdir -p .claude/skills
cp -r /tmp/huaweicloud-devkit/plugins/huaweicloud-core/skills/huawei-rds .claude/skills/huawei-rds
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Huawei Rds,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Huawei Rds。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Huawei Rds 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Huawei Cloud RDS

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

Always run hcloud RDS <Operation> --help before constructing commands to discover exact parameter names and requirements.

Deployment Routing Guard

If this skill was reached via a DEPLOYMENT intent (the database is part of an application deployment, not a standalone ad-hoc operation), this is a cloud resource purchase: load huawei-iac first for orchestration (mandatory cost+balance gate, batch approval, session state, ordered destroy), then return here for the exact instance commands. Sandbox-deployed workloads (huawei-sandbox) bypass iac - no purchase involved.

Prerequisites

Before creating an RDS instance, you MUST have:

  • A VPC and subnet (see huawei-vpc)
  • A security group with database port open (MySQL=3306, PostgreSQL=5432, SQL Server=1433)
  • Run hcloud RDS ListFlavors --database_name=<engine> --cli-region=<r> to get spec codes

KooCLI Command Format

hcloud RDS <Operation> --cli-region=<region> [--key=value ...]
RuleDetail
Service nameRDS (uppercase)
OperationPascalCase: ListInstances, CreateManualBackup
Params--key=value format. JSON params: --key='{"k":"v"}'
Array params1-based: --instance_ids.1=xxx
Password paramConflicts with KooCLI system param; use --cli-jsonInput (see Critical Warnings)

Critical Warnings

TrapWhy
Engine version immutableCannot change MySQL to PostgreSQL in-place
Automated backups use OBSBackup storage incurs separate charges. Set retention period explicitly
Storage auto-scaling off by defaultEnable before storage runs out or instance goes read-only
--password conflicts with KooCLIUse --cli-jsonInput=<file> with JSON file (see --cli-jsonInput section below). The printf "b\n" workaround is broken in KooCLI 7.2.12+
Volume type must match flavorGeneral→CLOUDSSD; Dedicated→CLOUDSSD|ESSD; ARM→CLOUDSSD
Flavor not in regionAlways ListFlavors first. Spec codes vary by region
database_name is case-sensitiveUse MySQL / PostgreSQL / SQLServer / MariaDB — NOT lower-case mysql
Instance creation takes 3–8 minStatus: BUILD→MODIFYING→ACTIVE. Poll every 15s: hcloud RDS ListInstances --cli-region=<r> --instance_id=<id> | jq '.instances[0].status'
Body --region is requiredCreateInstance body requires --region=<r> (same as --cli-region) or DBS.280243
Restore creates new instanceNo in-place restore. Verify target flavor before restoring

Instance Management

List

bash
hcloud RDS ListInstances --cli-region=<r>
hcloud RDS ListFlavors --database_name=<engine> --cli-region=<r>
hcloud RDS ListDatastores --database_name=<engine> --cli-region=<r>
hcloud RDS ListEngineFlavors --instance_id=<id> --availability_zone_ids=<az> --ha_mode=<mode> --cli-region=<r>

Create Instance

bash
hcloud RDS CreateInstance --cli-region=<r> \
  --region=<r> \
  --name=<name> \
  --datastore.type=<engine> \
  --datastore.version=<version> \
  --flavor_ref=<flavor-id> \
  --volume.type=<vol-type> \
  --volume.size=<size> \
  --vpc_id=<vpc-id> \
  --subnet_id=<subnet-id> \
  --security_group_id=<sg-id> \
  --availability_zone=<az> \
  --charge_info.charge_mode=<mode>

--password conflicts with a KooCLI system param. Use --cli-jsonInput (see below). The printf "b\n" pipe workaround is broken in KooCLI 7.2.12+.

--cli-jsonInput for CreateInstance

json
{
  "path": {
    "project_id": "<project-id>"
  },
  "body": {
    "name": "<name>",
    "region": "<region>",
    "datastore": { "type": "<engine>", "version": "<version>" },
    "ha": { "mode": "single", "replication_mode": "semisync" },
    "flavor_ref": "<flavor-id>",
    "volume": { "type": "<vol-type>", "size": <gb> },
    "vpc_id": "<vpc-id>",
    "subnet_id": "<subnet-id>",
    "security_group_id": "<sg-id>",
    "availability_zone": "<az>",
    "password": "<pw>",
    "charge_info": { "charge_mode": "postPaid" }
  }
}

Save as rds-create.json then: hcloud RDS CreateInstance --cli-jsonInput=rds-create.json. For project_id, run hcloud IAM KeystoneListProjects.

ParamRequiredNote
--nameYesInstance name
--datastoreYes--datastore.type=<engine> --datastore.version=<version>
--flavor_refYesFrom ListFlavors output
--volumeYesType matching: General→CLOUDSSD, Dedicated→CLOUDSSD|ESSD, ARM→CLOUDSSD
--vpc_idYesMust exist in target region
--subnet_idYesMust exist in target region
--security_group_idYesMust have DB port open
--availability_zoneYesUse AZ code from NovaListAvailabilityZones
--charge_infoNo--charge_info.charge_mode=<mode>. Default postPaid (pay-per-use). Run --help for options
--passwordYes8-32 chars, uppercase+lowercase+digit+special
--portNoDefault 3306 (MySQL) / 5432 (PG) / 1433 (SQL Server)

Modify / Resize

bash
hcloud RDS StartInstanceRestartAction --instance_id=<id> --cli-region=<r>
hcloud RDS StartResizeFlavorAction --instance_id=<id> --flavor_ref=<new-id> --cli-region=<r>
hcloud RDS StartInstanceEnlargeVolumeAction --instance_id=<id> --volume_size=<gb> --cli-region=<r>
hcloud RDS StartFailover --instance_id=<id> --cli-region=<r>
hcloud RDS UpdateInstanceAlias --instance_id=<id> --alias=<new-name> --cli-region=<r>

Delete

bash
hcloud RDS DeleteInstance --instance_id=<id> --cli-region=<r>

Backup & Recovery

bash
hcloud RDS ShowBackupPolicy --instance_id=<id> --cli-region=<r>
hcloud RDS SetBackupPolicy --instance_id=<id> --backup_policy='{"keep_days":7,"period":"1,2,3,4,5,6,7","start_time":"00:00-01:00"}' --cli-region=<r>
hcloud RDS ListBackups --instance_id=<id> --cli-region=<r>
hcloud RDS CreateManualBackup --instance_id=<id> --name=<name> --cli-region=<r>
hcloud RDS ShowRecoveryTimeWindow --instance_id=<id> --cli-region=<r>
hcloud RDS CreateRestoreInstance --instance_id=<id> --backup_id=<id> --name=<new-name> --flavor_ref=<id> --cli-region=<r>

Manual backup deletion is irreversible. Verify backup ID before deleting.

Read Replicas

bash
# Create a read replica via CreateInstance with --replica_of_id
hcloud RDS CreateInstance --replica_of_id=<primary-id> --name=<name> --flavor_ref=<id> --volume.type=<vol-type> --volume.size=<size> --cli-region=<r>

Fault Diagnosis

bash
hcloud RDS ListErrorLogs --instance_id=<id> --start_date=2024-01-01T00:00:00Z --end_date=2024-01-31T23:59:59Z --cli-region=<r>
hcloud RDS ListSlowLogs --instance_id=<id> --start_date=... --end_date=... --cli-region=<r>
hcloud RDS ShowReplicationStatus --instance_id=<id> --cli-region=<r>
hcloud RDS ListInstanceDiagnosis --engine=<engine> --cli-region=<r>

Connecting

bash
hcloud RDS ListInstances --cli-region=<r>  # get private_ips + port
mysql -h <private_ip> -P 3306 -u root -p --ssl-mode=REQUIRED
psql -h <private_ip> -p 5432 -U root -d postgres

hcloud does NOT support SQL execution. Use a database client. For public access, bind an EIP (see huawei-vpc).

Database Client Acquisition

If a database client is not installed on the agent's machine, install one:

PlatformMySQLPostgreSQL
Linuxapt install mysql-client / yum install mysqlapt install postgresql-client
macOSbrew install mysql-clientbrew install libpq
WindowsDownload MySQL Workbench or winget install Oracle.MySQLDownload pgAdmin or winget install PostgreSQL.PostgreSQL
Python (any)pip install pymysql then python -c "import pymysql; ..."pip install psycopg2 then python -c "import psycopg2; ..."
Docker (any)docker run -it --rm mysql:8 mysql -h <ip> -u root -pdocker run -it --rm postgres:16 psql -h <ip> -U root

If no client can be installed, use the Huawei Cloud Data Studio console: https://console.huaweicloud.com/dms/

Mutating Operations (Require Approval)

OperationEffect
CreateInstanceNew instance (billing starts)
DeleteInstanceIrreversible data loss
StartResizeFlavorActionBrief interruption during switchover
StartInstanceEnlargeVolumeActionOnline, but irreversible
StartFailoverPrimary-standby switchover
CreateRestoreInstanceCreates new instance from backup
CreateManualBackupIncurs OBS storage charges
DeleteManualBackupIrreversible

Troubleshooting

ErrorRoot Cause -> Fix
Connection refusedSG missing DB port. Add ingress rule
Storage fullManual resize or enable auto-scaling
DBS.280241 Invalid storage typeVolume type doesn't match flavor group
DBS.280448 Sold outTry different volume type or AZ
Replication lagCheck ShowReplicationStatus. Consider read replica
Instance stuck BUILDINGCheck task status: hcloud RDS ListTasks
SYS.0403SCP policy denies this operation (e.g. security group rules, EIP binding). See huawei-vpc troubleshooting
EIP.7905EIP quota exceeded — cannot create new EIP for public access. See huawei-vpc troubleshooting

Security

  • MUST use security groups, not open 0.0.0.0/0
  • MUST enable SSL for connections
  • MUST store passwords in DEW/CSMS (see huawei-cloud-dew-key-management)
  • SHOULD enable audit logs for compliance
  • SHOULD set backup policy with >= 7 day retention

Cross-Skill References

  • VPC/Subnet/Security Group: huawei-vpc
  • DEW secrets: huawei-cloud-dew-key-management
  • EIP for public access: huawei-vpc
  • OBS for backup storage: huawei-obs

常见问题

Huawei Rds AI 技能有什么作用?

Use when creating, configuring, managing, or troubleshooting RDS instances on Huawei Cloud. Covers MySQL, PostgreSQL, SQL Server. Triggers: RDS, MySQL, PostgreSQL, database instance, backup, read replica. NOT for: GaussDB (use huawei-cloud-gaussdb-instance-management), DDS (use huawei-cloud-dds-dcs-instance-management).

为什么在 TypingMind 中使用 Huawei Rds?

因为您只需安装一次,就能搭配任何模型使用。Huawei Rds 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Huawei Rds?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/huaweicloud/huaweicloud-devkit/tree/main/plugins/huaweicloud-core/skills/huawei-rds。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Huawei Rds?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Huawei Rds 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Huawei Rds 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Huawei Rds AI 技能免费吗?

是的。huaweicloud 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇