# alibabacloud-kms-secret-manage

alibabacloud-kms-secret-manage guides AI assistants through managing Alibaba Cloud KMS secrets, handling secret lifecycles and rotation workflows via Aliyun CLI.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 225 installs · ★ 300 repo stars
- Author: aliyun
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/security/kms/alibabacloud-kms-secret-manage/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/alibabacloud-kms-secret-manage

## What it does

This skill equips coding assistants with procedures to handle sensitive credentials inside Alibaba Cloud Key Management Service. Rather than executing blind API calls, it follows a structured pipeline: locating the KMS instance ID, finding the matching AES-256 key, and creating or updating the payload. Supported assets cover generic keys, database credentials, and RAM managed secrets.

Strict guardrails govern credential exposure. Secret payloads returned by `GetSecretValue` stay masked by default unless you explicitly demand cleartext output. Displaying raw AccessKey or SecretKey pairs in conversation is barred outright. Without the Aliyun CLI installed locally, every operation will fail immediately.

Timeout configuration matters: setting `ALIBABA_CLOUD_CONNECT_TIMEOUT` and `ALIBABA_CLOUD_READ_TIMEOUT` to 30 seconds prevents the CLI process from blocking your chat session.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-kms-secret-manage -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/alibabacloud-kms-secret-manage/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/alibabacloud-kms-secret-manage/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-kms-secret-manage -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/alibabacloud-kms-secret-manage/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-kms-secret-manage -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/alibabacloud-kms-secret-manage/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aliyun/alibabacloud-aiops-skills skills/security/kms/alibabacloud-kms-secret-manage
```

2. **Manually: put the files in place**
- File: `.github/skills/alibabacloud-kms-secret-manage/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-kms-secret-manage -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/security/kms/alibabacloud-kms-secret-manage
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/alibabacloud-kms-secret-manage/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-kms-secret-manage -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/security/kms/alibabacloud-kms-secret-manage/SKILL.md

## When to use it
- provision encrypted secrets tied to specific KMS instances
- retrieve masked secret values through Aliyun CLI or Python SDK
- inspect metadata before running force deletion on obsolete credentials
- configure network timeouts to keep CLI commands responsive

## Example prompts
- Create a new generic secret named db-access in KMS
- List all secrets stored in region cn-shanghai
- Fetch the value of prod-jwt-secret with explicit confirmation

## Similar
- [infisical-kms](https://affpapa.org/en/nevibecode/skills/infisical-kms.md) — skill · 238 installs
- [aws-sdk-java-v2-kms](https://affpapa.org/en/nevibecode/skills/aws-sdk-java-v2-kms.md) — skill · 3900 installs
- [infisical-secret-rotation](https://affpapa.org/en/nevibecode/skills/infisical-secret-rotation.md) — skill · 255 installs
- [sops-encryption](https://affpapa.org/en/nevibecode/skills/sops-encryption.md) — skill · 442 installs
- [hardcoded-secret-detection](https://affpapa.org/en/nevibecode/skills/hardcoded-secret-detection.md) — skill · ★ 7607 repo stars
- [secret-vault](https://affpapa.org/en/nevibecode/skills/secret-vault.md) — skill · ★ 326 repo stars

From the same set: [aliyun/alibabacloud-aiops-skills](https://affpapa.org/en/nevibecode/by/aliyun/alibabacloud-aiops-skills.md) — 66 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
