[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E70TYEAEQMENM1XK1ZT8QW":3,"skill-same:01M7E70TYEAEQMENM1XK1ZT8QW":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":14,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":36,"ownerDescription":37,"updatedAt":38,"install":39,"resources":52},"01M7E70TYEAEQMENM1XK1ZT8QW","alibabacloud-ack-cli",null,"Use when the user operates Alibaba Cloud Container Service for Kubernetes (ACK). Covers cluster lifecycle (create \u002F modify \u002F delete \u002F upgrade), node pools & nodes (create, modify, delete, repair, fix CVE), addons (install \u002F upgrade \u002F uninstall), KubeConfig & RBAC (issue for RAM user, grant \u002F revoke), security & policy (CVE scan\u002Ffix, policy governance, KMS, delete protection), logging \u002F audit \u002F alerting, intelligent O&M (check \u002F inspect \u002F diagnosis \u002F auto-repair), async tasks (track \u002F pause \u002F resume \u002F cancel), templates, autoscaling, tags & quotas. Triggers: create \u002F upgrade \u002F delete ACK cluster, migrate to Pro, scale nodepool, fix node CVE, install \u002F remove addon, get \u002F revoke kubeconfig, grant RBAC, enable audit log, run inspection, diagnose cluster, track task_id, debug cs error, Forbidden.RAM, kubectl cannot connect. Terms: ACK, container service, k8s cluster, nodepool, addon, AutoMode, Terway, Flannel, ForRegion, kubeconfig, RBAC, CVE.","irfanfaraaz\u002Fclaude-kit","irfanfaraaz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87533725?v=4","01M7E6ZGQPF7DTPAFQ4N695DBW","Syed Irfan Faraz","01M7E6ZGR6NERV5QMACPYC8GK2",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: alibabacloud-ack-cli\ndescription: >\n  Use when the user operates Alibaba Cloud Container Service for Kubernetes\n  (ACK). Covers cluster lifecycle (create \u002F modify \u002F delete \u002F upgrade), node pools & nodes (create, modify, delete, repair, fix CVE), addons (install \u002F upgrade \u002F uninstall), KubeConfig & RBAC (issue for RAM user, grant \u002F revoke), security & policy\n  (CVE scan\u002Ffix, policy governance, KMS, delete protection), logging \u002F audit\n  \u002F alerting, intelligent O&M (check \u002F inspect \u002F diagnosis \u002F auto-repair),\n  async tasks (track \u002F pause \u002F resume \u002F cancel), templates, autoscaling,\n  tags & quotas. Triggers: create \u002F upgrade \u002F delete ACK cluster, migrate to\n  Pro, scale nodepool, fix node CVE, install \u002F remove addon, get \u002F revoke\n  kubeconfig, grant RBAC, enable audit log, run inspection, diagnose\n  cluster, track task_id, debug cs error, Forbidden.RAM, kubectl cannot\n  connect. Terms: ACK, container service, k8s cluster, nodepool, addon,\n  AutoMode, Terway, Flannel, ForRegion, kubeconfig, RBAC, CVE.\nlicense: Apache-2.0\nmetadata:\n  domain: aiops\n  owner: ack-team\n  contact: ack-team@alibabacloud.com\ncompatibility: >\n  Requires aliyun CLI >= 3.3.3 with the cs plugin (aliyun plugin install\n  --names cs). Helper scripts use jq; kubeconfig retrieval pairs with\n  kubectl. Network access to *.aliyuncs.com OpenAPI endpoints required.\nallowed-tools: Bash\n---\n\n# ACK (Container Service) CLI Expert\n\nHelp users manage Alibaba Cloud Container Service for Kubernetes (ACK) from the\nterminal using the `aliyun cs` plugin. Generic Aliyun CLI rules (plugin vs\nOpenAPI-style, `--help` discipline, structured parameter syntax, output\nfiltering, debugging) still apply — this skill focuses on the ACK-specific\npatterns layered on top: async tasks, region-unitised APIs, JSON-string-inside-\nJSON shapes, deprecated-API avoidance, and the few high-value workflows\n(create \u002F scale \u002F addon \u002F kubeconfig \u002F upgrade).\n\n> **Version note.** Concrete API\u002Fparameter lists below were captured against\n> `aliyun-cli` 3.3.2 + `cs` plugin 0.2.1. If your plugin is newer, re-run the\n> self-discovery commands embedded throughout this skill to refresh:\n>\n> ```bash\n> aliyun cs --help | grep -- '-for-region'              # §6 ForRegion list\n> aliyun cs \u003Ccmd> --help | grep '废弃'                   # §7 deprecated check per command (CLI marks deprecation only in Chinese)\n> aliyun cs --help | awk '\u002F^  [a-z]\u002F{print $1}' | while read c; do   # §11 cursor-paginated commands\n>   aliyun cs \"$c\" --help 2>&1 | grep -q -- '--next-token' && echo \"$c\"\n> done\n> ```\n\n## Instructions\n\n### 1. Install the `cs` plugin and confirm CLI version\n\nACK from the terminal needs the `aliyun` CLI (≥ 3.3.3) plus the `cs` plugin.\nQuick path:\n\n```bash\naliyun version                          # require >= 3.3.3\naliyun plugin install --names cs        # idempotent\naliyun plugin update  --names cs        # keep cs plugin current\naliyun plugin list | grep cs            # verify\n\n# Or in one shot:\n.\u002Fscripts\u002Fcheck-cs-plugin.sh            # ✓ ready  \u002F  ✗ exits 1 with fix hints\n.\u002Fscripts\u002Finstall-cs-plugin.sh          # idempotent (--update for non-interactive)\n```\n\n> **AI-Mode declaration.** Before issuing any `aliyun` business command from\n> this skill, declare AI-Mode and a stable User-Agent so the backend can\n> attribute traffic and apply AI-safe defaults. These three commands are\n> session-level configuration — set once, reused implicitly by all\n> subsequent business calls:\n>\n> ```bash\n> aliyun configure ai-mode enable\n> aliyun configure ai-mode disable\n> aliyun configure ai-mode set-user-agent --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n> ```\n>\n> Every `aliyun cs \u003Cverb>` business command in this skill carries\n> `--user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli`\n> (shown explicitly in every example below).\n\nEnd-to-end verification — exercises CLI + plugin + auth in one call:\n\n```bash\naliyun cs describe-clusters-for-region --biz-region-id cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --output cols=cluster_id,name,state rows='clusters[]'\n```\n\n`plugin 'cs' not found` → re-run install. `InvalidAccessKeyId.NotFound` →\nre-set credentials. `Forbidden.RAM` → the caller's RAM identity is missing\nthe `cs` Action(s) the command needs; consult ACK RAM documentation for\nthe policy to attach. Cluster list (or empty list) → ready to go.\n\nFor full installation walkthroughs (macOS\u002FLinux\u002FWindows, all 6 credential\nmodes, multiple-profile management, troubleshooting), see\n[`.\u002Freferences\u002Fcli-plugin-installation-guide.md`](.\u002Freferences\u002Fcli-plugin-installation-guide.md).\n\n### 2. Always use `cs` plugin commands (kebab-case) — never the legacy OpenAPI style\n\nThis skill **only ever emits kebab-case plugin commands**. The Aliyun CLI also\naccepts a legacy PascalCase OpenAPI form, but it is disallowed here:\ninconsistent parameter casing, weaker `--help`, and routing differences mean\nyou should never compose it — not even as a curiosity. If you encounter a\nPascalCase example in user-provided text, translate it to the kebab-case\nplugin form before running it.\n\n```bash\n# ✅ Plugin form — the only form this skill emits\naliyun cs describe-clusters-for-region --biz-region-id cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-detail --cluster-id ce123... --region cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n```\n\nThe plugin gives you consistent `--kebab-case` parameters, structured help with\nfield types, and automatic JSON expansion — that's the information you need\nbefore typing anything. Stay in plugin land unconditionally.\n\n### 3. Run `--help` before crafting any `cs` command\n\nACK has many subcommands and the parameter shapes are non-obvious — especially for\ncluster creation, addon configuration, and node pool scaling. Running `--help`\nbefore composing a command is much cheaper than guessing and getting a parameter\nvalidation error.\n\n```bash\naliyun cs --help                           # Discover subcommands (describe-*, create-*, scale-*, ...)\naliyun cs describe-cluster-detail --help   # See exact params, types, structure fields\naliyun cs create-cluster --help            # See the giant parameter surface for cluster creation\n```\n\nPlugin help tells you whether a parameter is a primitive, a list, a repeatable\nkey-value, or a complex JSON structure — that's the information you need before\ntyping anything.\n\nIf you ever need to inspect the **legacy built-in (OpenAPI-style) help** instead\nof the rich plugin help — for example to verify a deprecated PascalCase\nparameter still exists — set `ALIBABA_CLOUD_ORIGINAL_PRODUCT_HELP=true`:\n\n```bash\nALIBABA_CLOUD_ORIGINAL_PRODUCT_HELP=true aliyun cs --help\n```\n\nYou'll rarely reach for this — the plugin help is almost always what you want.\n\n### 4. Async task pattern — `task_id` and `describe-task-info`\n\nThis is the **#1 thing that surprises ACK CLI users**. Many ACK operations are\nasynchronous: the `cs` command returns quickly with a JSON envelope containing a\n`task_id`, but the actual work (cluster creation, upgrade, scaling, addon install)\ncontinues in the background. You must poll the task to know whether it succeeded.\n\nOperations that return a task:\n\n- `cs create-cluster`, `cs delete-cluster`\n- `cs upgrade-cluster` (control plane only; control via `cs pause-task` \u002F `cs resume-task` \u002F `cs cancel-task`)\n- `cs modify-cluster-node-pool` (the preferred way to set absolute node count via `desired_size`; see §7), `cs scale-cluster-node-pool` (delta only — discouraged, see §7), `cs upgrade-cluster-nodepool`, `cs create-cluster-node-pool`, `cs delete-cluster-nodepool`\n- `cs install-cluster-addons`, `cs upgrade-cluster-addons`, `cs un-install-cluster-addons`\n- Some component \u002F migration tasks\n\nOnce you have a `task_id`, the **task-control commands work uniformly across\ntask types** — not just upgrades. Pause \u002F resume \u002F cancel any in-flight ACK\ntask with:\n\n```bash\naliyun cs pause-task  --task-id \u003Ctid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs resume-task --task-id \u003Ctid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs cancel-task --task-id \u003Ctid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n```\n\nUse `cancel-task` to abort a stuck addon install, a runaway node pool scale,\nor any other in-flight task.\n\nTypical response:\n\n```json\n{\n  \"cluster_id\": \"ce914461c0fb4901ae8908be4a10a7a1\",\n  \"request_id\": \"DDA4DB1A-A7E3-1455-A6FB-77F58F01A43E\",\n  \"task_id\": \"T-69ce1022aa09ae010300000b\"\n}\n```\n\nTrack it with:\n\n```bash\naliyun cs describe-task-info --task-id T-69ce1022aa09ae010300000b --region cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n```\n\nPass `--region` matching the cluster's region — task IDs are region-scoped\nand looking them up via the default endpoint adds latency.\n\nThe task response carries `state` (running \u002F success \u002F failed) and an `error`\nfield on failure. When polling, **ask the user before starting a long busy-wait\nloop** — polling burns tokens and the user may prefer to check back later. A\nreasonable default is to poll every 30s with a sensible max (e.g. 30 minutes for\ncluster create, 5 minutes for addon install) and surface the `error.message` if\nthe task fails.\n\nThe bundled helper `.\u002Fscripts\u002Fwait-for-task.sh \u003Ctask-id> \u003Cregion-id>` polls\nwith backoff and prints the final state — use it after confirming with the\nuser. Region is required because task IDs are region-scoped.\n\nSee `.\u002Freferences\u002Fasync-tasks.md` for full details: state machine, error fields,\ntypical durations per operation, and how to interpret partial-failure responses.\n\n### 5. Complex JSON parameters — Terway, AutoMode, addons\n\nSome ACK parameters can't be expressed cleanly as flat flags. Examples:\n\n**Terway with multi-AZ pod vswitches** (cluster create):\n\n```bash\n# Pass the addons array as JSON. Note the nested JSON inside `config` is a STRING.\naliyun cs create-cluster \\\n  --biz-region-id cn-beijing \\\n  --region cn-beijing \\\n  --cluster-type ManagedKubernetes \\\n  --addons '[{\"name\":\"terway-eniip\",\"config\":\"{\\\"PodVswitchId\\\":{\\\"cn-beijing-l\\\":[\\\"vsw-a\\\"],\\\"cn-beijing-h\\\":[\\\"vsw-b\\\"]}}\"}]' \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  ...\n```\n\nThe trap: `config` is a JSON-encoded string inside a JSON document. Build it in a\nfile or via `jq` rather than hand-escaping — escape errors are the most common\ncause of `InvalidParameter.Format` from this API.\n\n**Flannel** (requires `container_cidr`, no `PodVswitchId`):\n\n```bash\n--addons '[{\"name\":\"flannel\"}]' \\\n--container-cidr 172.20.0.0\u002F16 \\\n--service-cidr 172.21.0.0\u002F20\n```\n\n**AutoMode** (ACK best-practice profile — single flag turns it on):\n\n```bash\n--profile Default \\\n--cluster-spec ack.pro.small \\\n--auto-mode '{\"enable\":true}'\n```\n\nWhen AutoMode is enabled, ACK chooses sensible defaults for VPC, networking,\nnode pools, and addons — most other knobs become unnecessary. `--cluster-spec`\nvalid values are only `ack.pro.small` (Pro, recommended for AutoMode) and\n`ack.standard` (default if omitted) — don't guess `ack.pro.large` or others.\n\n**Addon install with config**:\n\n```bash\naliyun cs install-cluster-addons --cluster-id \u003Ccid> --region \u003Cregion> \\\n  --body '[{\"name\":\"logtail-ds\",\"config\":\"{\\\"sls_project_name\\\":\\\"k8s-log\\\"}\"}]' \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n```\n\nThe nested-JSON-as-string pattern shows up in nearly every addon install. Read\nthe addon's `config_schema` first (`cs list-addons --cluster-id ...` for the\nfull list, or `cs describe-addon --cluster-id ... --addon-name ...` for one)\nto know valid keys. For full examples, see `.\u002Freferences\u002Fcs-scenarios.md`.\n\n### 6. Region-unitised API calling — two rules\n\nACK has moved to a region-unitised model. Two rules apply:\n\n**Rule A — Prefer `*ForRegion` API variants** (`describe-clusters-for-region`,\n`describe-events-for-region`, `list-operation-plans-for-region`). Faster,\nhigher quotas, resilient when global aggregator degrades. Re-discover with\n`aliyun cs --help | grep -- '-for-region'`. These APIs take `--biz-region-id`\n(business parameter, required), **not** `--region`.\n\n**Rule B — Pass `--region \u003Cregion>` on every cluster-id-scoped call**\n(`describe-cluster-detail`, `modify-cluster-node-pool`, etc.) once you know\nthe region. Routes directly to the regional endpoint, avoids default-endpoint\nhop.\n\n`--region` (CLI global, endpoint routing) and `--biz-region-id` (API business\nparameter) take the same value but play different roles. There is no\n`--region-id` flag. Always `--help` first to see which a command expects.\n\n```bash\n# Region-unitised + direct routing combined\nREGION=cn-hangzhou\naliyun cs describe-clusters-for-region --biz-region-id $REGION --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli              # Rule A\naliyun cs describe-cluster-detail --cluster-id \u003Ccid> --region $REGION --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli       # Rule B\naliyun cs describe-cluster-node-pools --cluster-id \u003Ccid> --region $REGION --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli   # Rule B\n```\n\n### 7. Detect deprecated parameters per command\n\nThe CLI marks deprecated parameters in `--help` with the Chinese string\n`【该参数已废弃】` (no English equivalent — has to be matched literally).\nRun the snippet from the top of this file (`aliyun cs \u003Ccmd> --help | grep\n'废弃'`) before composing any command — it surfaces both the deprecated\nfield and the suggested replacement (e.g. `请使用 next_version 参数替代`).\nQuote that line back to the user; never silently substitute.\n\n### 8. Common high-value commands\n\nExamples assume the cluster's region is already known (via Rule A discovery or\nfrom the user) and pass it as `--region` per §6 Rule B. Substitute\n`\u003Cregion>` with the actual value.\n\n```bash\n# Clusters\naliyun cs describe-clusters-for-region --biz-region-id \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-detail --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-user-kubeconfig --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli > kubeconfig.yaml\naliyun cs upgrade-cluster --cluster-id \u003Ccid> --region \u003Cregion> --next-version 1.30.1-aliyun.1 --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\n# Node pools\naliyun cs describe-cluster-node-pools --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-node-pool-detail --cluster-id \u003Ccid> --nodepool-id \u003Cnpid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\n# Resize to an ABSOLUTE node count: use modify-cluster-node-pool with desired_size.\n# (`scale-cluster-node-pool --count N` adds N nodes — it's a delta, not an\n#  absolute target, and is rarely what users mean by \"scale to 5\". See §7.)\naliyun cs modify-cluster-node-pool --cluster-id \u003Ccid> --nodepool-id \u003Cnpid> --region \u003Cregion> \\\n  --scaling-group desired_size=5 --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\naliyun cs upgrade-cluster-nodepool --cluster-id \u003Ccid> --nodepool-id \u003Cnpid> --kubernetes-version \u003Cver> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\n# Addons\naliyun cs list-addons --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli                       # what's available + config_schema\naliyun cs describe-addon --cluster-id \u003Ccid> --addon-name \u003Cname> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli  # one addon's metadata + config_schema\naliyun cs list-cluster-addon-instances --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli      # what's installed (versions, status)\naliyun cs install-cluster-addons --cluster-id \u003Ccid> --region \u003Cregion> --body '[{\"name\":\"logtail-ds\",\"config\":\"{}\"}]' --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs upgrade-cluster-addons --cluster-id \u003Ccid> --region \u003Cregion> --body '[{\"component_name\":\"logtail-ds\",\"next_version\":\"1.8.0\"}]' --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs un-install-cluster-addons --cluster-id \u003Ccid> --region \u003Cregion> --body '[{\"name\":\"logtail-ds\"}]' --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\n# Tasks (task IDs are region-scoped — pass the cluster's region)\naliyun cs describe-task-info --task-id \u003Ctid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-tasks --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli     # all tasks under a cluster\naliyun cs describe-cluster-events --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli    # operational events: creates, scales, addon installs\naliyun cs describe-cluster-events --cluster-id \u003Ccid> --region \u003Cregion> --task-id \u003Ctid> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli  # filter to one task's events\n```\n\nFor \"what's been happening on this cluster recently?\" \u002F \"why did the upgrade\nlast week fail?\", `describe-cluster-tasks` and `describe-cluster-events` are\nthe answer. They're paginated (`--page-number` \u002F `--page-size`); use `--pager`\nfor auto-merge across pages.\n\nFor any of these, append `--help` to see the full parameter set and structure.\n\nSee `.\u002Freferences\u002Fcs-scenarios.md` for fuller workflows.\n\n### 9. Kubeconfig retrieval and `kubectl` handoff\n\n```bash\n# Default kubeconfig (intranet endpoint depending on cluster network)\naliyun cs describe-cluster-user-kubeconfig --cluster-id \u003Ccid> --region \u003Cregion> \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  | jq -r '.config' > ~\u002F.kube\u002Fconfig.ack\n\nexport KUBECONFIG=~\u002F.kube\u002Fconfig.ack\nkubectl get nodes\n```\n\nNotes:\n\n- Some clusters expose only an intranet API server endpoint; the kubeconfig you\n  fetch will only work from inside the VPC. Use `--private-ip-address true|false`\n  to choose between intranet and public endpoints when both exist.\n- Temporary STS-based kubeconfigs expire — re-run the command to refresh.\n- For automation, prefer setting `KUBECONFIG` to a per-cluster file rather than\n  overwriting `~\u002F.kube\u002Fconfig`.\n\n### 10. Filter and format output\n\nSame pattern as the rest of the CLI: `--cli-query` (JMESPath) plus `--output`.\nUseful with ACK because cluster\u002Fnodepool\u002Faddon list responses are nested:\n\n```bash\n# Just running cluster IDs and names\naliyun cs describe-clusters-for-region --biz-region-id cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --cli-query \"clusters[?state=='running'].{id:cluster_id,name:name,version:current_version}\" \\\n  --output table\n\n# Recent operation plans (auto-upgrade, AutoMode, CVE fixes) for the region\naliyun cs list-operation-plans-for-region --biz-region-id cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --cli-query \"plans[].{id:plan_id,type:type,state:state,scheduled:scheduled_time}\"\n\n# Just node pool IDs and current size\naliyun cs describe-cluster-node-pools --cluster-id \u003Ccid> --region \u003Cregion> \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --cli-query \"nodepools[].{id:nodepool_info.nodepool_id,name:nodepool_info.name,size:status.total_nodes}\"\n```\n\n### 11. Pagination — prefer cursor, auto-merge with `--pager`\n\nTwo styles: **cursor** (`--next-token` \u002F `--max-results`, stable under\nconcurrent writes — preferred) and **offset** (`--page-number` \u002F `--page-size`,\ncan shift mid-scan). Check `--help` to see which a command supports — cursor\nwins if both are listed.\n\nThe CLI's `--pager` flag auto-merges pages either way; almost always what users\nwant. See [`.\u002Freferences\u002Fcs-scenarios.md`](.\u002Freferences\u002Fcs-scenarios.md)\n§9 for `--pager` syntax and a hand-rolled cursor loop example.\n\n### 12. Debugging — and dry-run before any write\n\nACK write operations provision real cloud resources and many are irreversible.\n**Always run a write command with `--cli-dry-run` first** when the parameter\nset is non-trivial — it serialises the exact payload and validates parameter\nparsing without spending the call:\n\n```bash\naliyun cs create-cluster --biz-region-id cn-beijing --region cn-beijing \\\n  --cluster-type ManagedKubernetes \\\n  --profile Default --cluster-spec ack.pro.small --auto-mode '{\"enable\":true}' \\\n  --name my-ack-cluster --kubernetes-version 1.30.1-aliyun.1 \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --cli-dry-run\n\naliyun cs modify-cluster-node-pool --cluster-id \u003Ccid> --nodepool-id \u003Cnpid> \\\n  --region \u003Cregion> --scaling-group desired_size=10 \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli --cli-dry-run\n```\n\nWhen a `cs` command does fail, `--log-level debug` reveals the full\nrequest\u002Fresponse so you can see endpoint, body, status, and the raw error:\n\n```bash\naliyun cs describe-cluster-detail --cluster-id \u003Ccid> --region \u003Cregion> \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli --log-level debug\n```\n\nFor specific error patterns and first-action recipes (plugin \u002F parameter \u002F\nformat \u002F region \u002F auth \u002F RAM \u002F async-task failures, plus a sample dry-run\noutput), see [`.\u002Freferences\u002Ferror-catalogue.md`](.\u002Freferences\u002Ferror-catalogue.md).\n\n## Response format guidance\n\nWhen helping a user with `cs` commands:\n\n1. **Read intent first.** Are they investigating (\"describe \u002F list\"), modifying\n   (\"scale \u002F upgrade \u002F install\"), or creating? Modify\u002Fcreate flows almost always\n   produce a `task_id` — surface that pattern early.\n2. **Show the full command** with required parameters and explain non-obvious\n   ones (`--region`, the JSON-string-inside-JSON for addon config, etc.).\n3. **For async ops, mention `describe-task-info`** in the same response — and ask\n   before busy-waiting.\n4. **Suggest `--help` and `--log-level debug`** when the user is troubleshooting.\n5. **Cite the cluster's region** — most \"command works in cn-hangzhou but not\n   cn-shanghai\" issues are missing\u002Fwrong `--region`.\n\n## References\n\nFour reference files, all ACK-specific. Generic CLI knowledge (hidden global\nflags like `--waiter` \u002F `--header` \u002F `--body` \u002F `--secure`, multi-version API,\nfull security best practices) is the Aliyun CLI's responsibility — consult its\nown documentation when needed.\n\n1. `.\u002Freferences\u002Fcs-scenarios.md` — **Most useful day-to-day.** Worked\n   end-to-end examples: discovery, kubeconfig, node pools, addons, cluster\n   upgrade, delete, the create→wait→kubeconfig pipeline.\n2. `.\u002Freferences\u002Fasync-tasks.md` — `task_id` lifecycle, state vocabulary,\n   polling strategy, common `error.code` causes, partial-failure handling.\n3. `.\u002Freferences\u002Fcli-plugin-installation-guide.md` — Aliyun CLI install\n   (macOS\u002FLinux\u002FWindows), credential modes summary, `cs` plugin install,\n   end-to-end verification, troubleshooting. Read once at setup; come back\n   for \"I can't get past `Forbidden.RAM`\"-class issues.\n4. `.\u002Freferences\u002Fram-policies.md` — RAM Actions and policy templates\n   required by this skill's `aliyun cs` calls (cluster \u002F nodepool \u002F addon \u002F\n   task scopes).\n\nScripts:\n\n- `.\u002Fscripts\u002Fcheck-cs-plugin.sh` — Verify aliyun CLI ≥ 3.3.3 and the `cs` plugin is installed\n- `.\u002Fscripts\u002Finstall-cs-plugin.sh` — Install or update the `cs` plugin (idempotent; supports `--update` for non-interactive)\n- `.\u002Fscripts\u002Fwait-for-task.sh` — Poll `describe-task-info` until terminal state (requires task ID + region)\n","# ACK (Container Service) CLI Expert\n\nHelp users manage Alibaba Cloud Container Service for Kubernetes (ACK) from the\nterminal using the `aliyun cs` plugin. Generic Aliyun CLI rules (plugin vs\nOpenAPI-style, `--help` discipline, structured parameter syntax, output\nfiltering, debugging) still apply — this skill focuses on the ACK-specific\npatterns layered on top: async tasks, region-unitised APIs, JSON-string-inside-\nJSON shapes, deprecated-API avoidance, and the few high-value workflows\n(create \u002F scale \u002F addon \u002F kubeconfig \u002F upgrade).\n\n> **Version note.** Concrete API\u002Fparameter lists below were captured against\n> `aliyun-cli` 3.3.2 + `cs` plugin 0.2.1. If your plugin is newer, re-run the\n> self-discovery commands embedded throughout this skill to refresh:\n>\n> ```bash\n> aliyun cs --help | grep -- '-for-region'              # §6 ForRegion list\n> aliyun cs \u003Ccmd> --help | grep '废弃'                   # §7 deprecated check per command (CLI marks deprecation only in Chinese)\n> aliyun cs --help | awk '\u002F^  [a-z]\u002F{print $1}' | while read c; do   # §11 cursor-paginated commands\n>   aliyun cs \"$c\" --help 2>&1 | grep -q -- '--next-token' && echo \"$c\"\n> done\n> ```\n\n## Instructions\n\n### 1. Install the `cs` plugin and confirm CLI version\n\nACK from the terminal needs the `aliyun` CLI (≥ 3.3.3) plus the `cs` plugin.\nQuick path:\n\n```bash\naliyun version                          # require >= 3.3.3\naliyun plugin install --names cs        # idempotent\naliyun plugin update  --names cs        # keep cs plugin current\naliyun plugin list | grep cs            # verify\n\n# Or in one shot:\n.\u002Fscripts\u002Fcheck-cs-plugin.sh            # ✓ ready  \u002F  ✗ exits 1 with fix hints\n.\u002Fscripts\u002Finstall-cs-plugin.sh          # idempotent (--update for non-interactive)\n```\n\n> **AI-Mode declaration.** Before issuing any `aliyun` business command from\n> this skill, declare AI-Mode and a stable User-Agent so the backend can\n> attribute traffic and apply AI-safe defaults. These three commands are\n> session-level configuration — set once, reused implicitly by all\n> subsequent business calls:\n>\n> ```bash\n> aliyun configure ai-mode enable\n> aliyun configure ai-mode disable\n> aliyun configure ai-mode set-user-agent --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n> ```\n>\n> Every `aliyun cs \u003Cverb>` business command in this skill carries\n> `--user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli`\n> (shown explicitly in every example below).\n\nEnd-to-end verification — exercises CLI + plugin + auth in one call:\n\n```bash\naliyun cs describe-clusters-for-region --biz-region-id cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --output cols=cluster_id,name,state rows='clusters[]'\n```\n\n`plugin 'cs' not found` → re-run install. `InvalidAccessKeyId.NotFound` →\nre-set credentials. `Forbidden.RAM` → the caller's RAM identity is missing\nthe `cs` Action(s) the command needs; consult ACK RAM documentation for\nthe policy to attach. Cluster list (or empty list) → ready to go.\n\nFor full installation walkthroughs (macOS\u002FLinux\u002FWindows, all 6 credential\nmodes, multiple-profile management, troubleshooting), see\n[`.\u002Freferences\u002Fcli-plugin-installation-guide.md`](.\u002Freferences\u002Fcli-plugin-installation-guide.md).\n\n### 2. Always use `cs` plugin commands (kebab-case) — never the legacy OpenAPI style\n\nThis skill **only ever emits kebab-case plugin commands**. The Aliyun CLI also\naccepts a legacy PascalCase OpenAPI form, but it is disallowed here:\ninconsistent parameter casing, weaker `--help`, and routing differences mean\nyou should never compose it — not even as a curiosity. If you encounter a\nPascalCase example in user-provided text, translate it to the kebab-case\nplugin form before running it.\n\n```bash\n# ✅ Plugin form — the only form this skill emits\naliyun cs describe-clusters-for-region --biz-region-id cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-detail --cluster-id ce123... --region cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n```\n\nThe plugin gives you consistent `--kebab-case` parameters, structured help with\nfield types, and automatic JSON expansion — that's the information you need\nbefore typing anything. Stay in plugin land unconditionally.\n\n### 3. Run `--help` before crafting any `cs` command\n\nACK has many subcommands and the parameter shapes are non-obvious — especially for\ncluster creation, addon configuration, and node pool scaling. Running `--help`\nbefore composing a command is much cheaper than guessing and getting a parameter\nvalidation error.\n\n```bash\naliyun cs --help                           # Discover subcommands (describe-*, create-*, scale-*, ...)\naliyun cs describe-cluster-detail --help   # See exact params, types, structure fields\naliyun cs create-cluster --help            # See the giant parameter surface for cluster creation\n```\n\nPlugin help tells you whether a parameter is a primitive, a list, a repeatable\nkey-value, or a complex JSON structure — that's the information you need before\ntyping anything.\n\nIf you ever need to inspect the **legacy built-in (OpenAPI-style) help** instead\nof the rich plugin help — for example to verify a deprecated PascalCase\nparameter still exists — set `ALIBABA_CLOUD_ORIGINAL_PRODUCT_HELP=true`:\n\n```bash\nALIBABA_CLOUD_ORIGINAL_PRODUCT_HELP=true aliyun cs --help\n```\n\nYou'll rarely reach for this — the plugin help is almost always what you want.\n\n### 4. Async task pattern — `task_id` and `describe-task-info`\n\nThis is the **#1 thing that surprises ACK CLI users**. Many ACK operations are\nasynchronous: the `cs` command returns quickly with a JSON envelope containing a\n`task_id`, but the actual work (cluster creation, upgrade, scaling, addon install)\ncontinues in the background. You must poll the task to know whether it succeeded.\n\nOperations that return a task:\n\n- `cs create-cluster`, `cs delete-cluster`\n- `cs upgrade-cluster` (control plane only; control via `cs pause-task` \u002F `cs resume-task` \u002F `cs cancel-task`)\n- `cs modify-cluster-node-pool` (the preferred way to set absolute node count via `desired_size`; see §7), `cs scale-cluster-node-pool` (delta only — discouraged, see §7), `cs upgrade-cluster-nodepool`, `cs create-cluster-node-pool`, `cs delete-cluster-nodepool`\n- `cs install-cluster-addons`, `cs upgrade-cluster-addons`, `cs un-install-cluster-addons`\n- Some component \u002F migration tasks\n\nOnce you have a `task_id`, the **task-control commands work uniformly across\ntask types** — not just upgrades. Pause \u002F resume \u002F cancel any in-flight ACK\ntask with:\n\n```bash\naliyun cs pause-task  --task-id \u003Ctid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs resume-task --task-id \u003Ctid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs cancel-task --task-id \u003Ctid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n```\n\nUse `cancel-task` to abort a stuck addon install, a runaway node pool scale,\nor any other in-flight task.\n\nTypical response:\n\n```json\n{\n  \"cluster_id\": \"ce914461c0fb4901ae8908be4a10a7a1\",\n  \"request_id\": \"DDA4DB1A-A7E3-1455-A6FB-77F58F01A43E\",\n  \"task_id\": \"T-69ce1022aa09ae010300000b\"\n}\n```\n\nTrack it with:\n\n```bash\naliyun cs describe-task-info --task-id T-69ce1022aa09ae010300000b --region cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n```\n\nPass `--region` matching the cluster's region — task IDs are region-scoped\nand looking them up via the default endpoint adds latency.\n\nThe task response carries `state` (running \u002F success \u002F failed) and an `error`\nfield on failure. When polling, **ask the user before starting a long busy-wait\nloop** — polling burns tokens and the user may prefer to check back later. A\nreasonable default is to poll every 30s with a sensible max (e.g. 30 minutes for\ncluster create, 5 minutes for addon install) and surface the `error.message` if\nthe task fails.\n\nThe bundled helper `.\u002Fscripts\u002Fwait-for-task.sh \u003Ctask-id> \u003Cregion-id>` polls\nwith backoff and prints the final state — use it after confirming with the\nuser. Region is required because task IDs are region-scoped.\n\nSee `.\u002Freferences\u002Fasync-tasks.md` for full details: state machine, error fields,\ntypical durations per operation, and how to interpret partial-failure responses.\n\n### 5. Complex JSON parameters — Terway, AutoMode, addons\n\nSome ACK parameters can't be expressed cleanly as flat flags. Examples:\n\n**Terway with multi-AZ pod vswitches** (cluster create):\n\n```bash\n# Pass the addons array as JSON. Note the nested JSON inside `config` is a STRING.\naliyun cs create-cluster \\\n  --biz-region-id cn-beijing \\\n  --region cn-beijing \\\n  --cluster-type ManagedKubernetes \\\n  --addons '[{\"name\":\"terway-eniip\",\"config\":\"{\\\"PodVswitchId\\\":{\\\"cn-beijing-l\\\":[\\\"vsw-a\\\"],\\\"cn-beijing-h\\\":[\\\"vsw-b\\\"]}}\"}]' \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  ...\n```\n\nThe trap: `config` is a JSON-encoded string inside a JSON document. Build it in a\nfile or via `jq` rather than hand-escaping — escape errors are the most common\ncause of `InvalidParameter.Format` from this API.\n\n**Flannel** (requires `container_cidr`, no `PodVswitchId`):\n\n```bash\n--addons '[{\"name\":\"flannel\"}]' \\\n--container-cidr 172.20.0.0\u002F16 \\\n--service-cidr 172.21.0.0\u002F20\n```\n\n**AutoMode** (ACK best-practice profile — single flag turns it on):\n\n```bash\n--profile Default \\\n--cluster-spec ack.pro.small \\\n--auto-mode '{\"enable\":true}'\n```\n\nWhen AutoMode is enabled, ACK chooses sensible defaults for VPC, networking,\nnode pools, and addons — most other knobs become unnecessary. `--cluster-spec`\nvalid values are only `ack.pro.small` (Pro, recommended for AutoMode) and\n`ack.standard` (default if omitted) — don't guess `ack.pro.large` or others.\n\n**Addon install with config**:\n\n```bash\naliyun cs install-cluster-addons --cluster-id \u003Ccid> --region \u003Cregion> \\\n  --body '[{\"name\":\"logtail-ds\",\"config\":\"{\\\"sls_project_name\\\":\\\"k8s-log\\\"}\"}]' \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n```\n\nThe nested-JSON-as-string pattern shows up in nearly every addon install. Read\nthe addon's `config_schema` first (`cs list-addons --cluster-id ...` for the\nfull list, or `cs describe-addon --cluster-id ... --addon-name ...` for one)\nto know valid keys. For full examples, see `.\u002Freferences\u002Fcs-scenarios.md`.\n\n### 6. Region-unitised API calling — two rules\n\nACK has moved to a region-unitised model. Two rules apply:\n\n**Rule A — Prefer `*ForRegion` API variants** (`describe-clusters-for-region`,\n`describe-events-for-region`, `list-operation-plans-for-region`). Faster,\nhigher quotas, resilient when global aggregator degrades. Re-discover with\n`aliyun cs --help | grep -- '-for-region'`. These APIs take `--biz-region-id`\n(business parameter, required), **not** `--region`.\n\n**Rule B — Pass `--region \u003Cregion>` on every cluster-id-scoped call**\n(`describe-cluster-detail`, `modify-cluster-node-pool`, etc.) once you know\nthe region. Routes directly to the regional endpoint, avoids default-endpoint\nhop.\n\n`--region` (CLI global, endpoint routing) and `--biz-region-id` (API business\nparameter) take the same value but play different roles. There is no\n`--region-id` flag. Always `--help` first to see which a command expects.\n\n```bash\n# Region-unitised + direct routing combined\nREGION=cn-hangzhou\naliyun cs describe-clusters-for-region --biz-region-id $REGION --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli              # Rule A\naliyun cs describe-cluster-detail --cluster-id \u003Ccid> --region $REGION --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli       # Rule B\naliyun cs describe-cluster-node-pools --cluster-id \u003Ccid> --region $REGION --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli   # Rule B\n```\n\n### 7. Detect deprecated parameters per command\n\nThe CLI marks deprecated parameters in `--help` with the Chinese string\n`【该参数已废弃】` (no English equivalent — has to be matched literally).\nRun the snippet from the top of this file (`aliyun cs \u003Ccmd> --help | grep\n'废弃'`) before composing any command — it surfaces both the deprecated\nfield and the suggested replacement (e.g. `请使用 next_version 参数替代`).\nQuote that line back to the user; never silently substitute.\n\n### 8. Common high-value commands\n\nExamples assume the cluster's region is already known (via Rule A discovery or\nfrom the user) and pass it as `--region` per §6 Rule B. Substitute\n`\u003Cregion>` with the actual value.\n\n```bash\n# Clusters\naliyun cs describe-clusters-for-region --biz-region-id \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-detail --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-user-kubeconfig --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli > kubeconfig.yaml\naliyun cs upgrade-cluster --cluster-id \u003Ccid> --region \u003Cregion> --next-version 1.30.1-aliyun.1 --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\n# Node pools\naliyun cs describe-cluster-node-pools --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-node-pool-detail --cluster-id \u003Ccid> --nodepool-id \u003Cnpid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\n# Resize to an ABSOLUTE node count: use modify-cluster-node-pool with desired_size.\n# (`scale-cluster-node-pool --count N` adds N nodes — it's a delta, not an\n#  absolute target, and is rarely what users mean by \"scale to 5\". See §7.)\naliyun cs modify-cluster-node-pool --cluster-id \u003Ccid> --nodepool-id \u003Cnpid> --region \u003Cregion> \\\n  --scaling-group desired_size=5 --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\naliyun cs upgrade-cluster-nodepool --cluster-id \u003Ccid> --nodepool-id \u003Cnpid> --kubernetes-version \u003Cver> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\n# Addons\naliyun cs list-addons --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli                       # what's available + config_schema\naliyun cs describe-addon --cluster-id \u003Ccid> --addon-name \u003Cname> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli  # one addon's metadata + config_schema\naliyun cs list-cluster-addon-instances --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli      # what's installed (versions, status)\naliyun cs install-cluster-addons --cluster-id \u003Ccid> --region \u003Cregion> --body '[{\"name\":\"logtail-ds\",\"config\":\"{}\"}]' --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs upgrade-cluster-addons --cluster-id \u003Ccid> --region \u003Cregion> --body '[{\"component_name\":\"logtail-ds\",\"next_version\":\"1.8.0\"}]' --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs un-install-cluster-addons --cluster-id \u003Ccid> --region \u003Cregion> --body '[{\"name\":\"logtail-ds\"}]' --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\n\n# Tasks (task IDs are region-scoped — pass the cluster's region)\naliyun cs describe-task-info --task-id \u003Ctid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli\naliyun cs describe-cluster-tasks --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli     # all tasks under a cluster\naliyun cs describe-cluster-events --cluster-id \u003Ccid> --region \u003Cregion> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli    # operational events: creates, scales, addon installs\naliyun cs describe-cluster-events --cluster-id \u003Ccid> --region \u003Cregion> --task-id \u003Ctid> --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli  # filter to one task's events\n```\n\nFor \"what's been happening on this cluster recently?\" \u002F \"why did the upgrade\nlast week fail?\", `describe-cluster-tasks` and `describe-cluster-events` are\nthe answer. They're paginated (`--page-number` \u002F `--page-size`); use `--pager`\nfor auto-merge across pages.\n\nFor any of these, append `--help` to see the full parameter set and structure.\n\nSee `.\u002Freferences\u002Fcs-scenarios.md` for fuller workflows.\n\n### 9. Kubeconfig retrieval and `kubectl` handoff\n\n```bash\n# Default kubeconfig (intranet endpoint depending on cluster network)\naliyun cs describe-cluster-user-kubeconfig --cluster-id \u003Ccid> --region \u003Cregion> \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  | jq -r '.config' > ~\u002F.kube\u002Fconfig.ack\n\nexport KUBECONFIG=~\u002F.kube\u002Fconfig.ack\nkubectl get nodes\n```\n\nNotes:\n\n- Some clusters expose only an intranet API server endpoint; the kubeconfig you\n  fetch will only work from inside the VPC. Use `--private-ip-address true|false`\n  to choose between intranet and public endpoints when both exist.\n- Temporary STS-based kubeconfigs expire — re-run the command to refresh.\n- For automation, prefer setting `KUBECONFIG` to a per-cluster file rather than\n  overwriting `~\u002F.kube\u002Fconfig`.\n\n### 10. Filter and format output\n\nSame pattern as the rest of the CLI: `--cli-query` (JMESPath) plus `--output`.\nUseful with ACK because cluster\u002Fnodepool\u002Faddon list responses are nested:\n\n```bash\n# Just running cluster IDs and names\naliyun cs describe-clusters-for-region --biz-region-id cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --cli-query \"clusters[?state=='running'].{id:cluster_id,name:name,version:current_version}\" \\\n  --output table\n\n# Recent operation plans (auto-upgrade, AutoMode, CVE fixes) for the region\naliyun cs list-operation-plans-for-region --biz-region-id cn-hangzhou \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --cli-query \"plans[].{id:plan_id,type:type,state:state,scheduled:scheduled_time}\"\n\n# Just node pool IDs and current size\naliyun cs describe-cluster-node-pools --cluster-id \u003Ccid> --region \u003Cregion> \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --cli-query \"nodepools[].{id:nodepool_info.nodepool_id,name:nodepool_info.name,size:status.total_nodes}\"\n```\n\n### 11. Pagination — prefer cursor, auto-merge with `--pager`\n\nTwo styles: **cursor** (`--next-token` \u002F `--max-results`, stable under\nconcurrent writes — preferred) and **offset** (`--page-number` \u002F `--page-size`,\ncan shift mid-scan). Check `--help` to see which a command supports — cursor\nwins if both are listed.\n\nThe CLI's `--pager` flag auto-merges pages either way; almost always what users\nwant. See [`.\u002Freferences\u002Fcs-scenarios.md`](.\u002Freferences\u002Fcs-scenarios.md)\n§9 for `--pager` syntax and a hand-rolled cursor loop example.\n\n### 12. Debugging — and dry-run before any write\n\nACK write operations provision real cloud resources and many are irreversible.\n**Always run a write command with `--cli-dry-run` first** when the parameter\nset is non-trivial — it serialises the exact payload and validates parameter\nparsing without spending the call:\n\n```bash\naliyun cs create-cluster --biz-region-id cn-beijing --region cn-beijing \\\n  --cluster-type ManagedKubernetes \\\n  --profile Default --cluster-spec ack.pro.small --auto-mode '{\"enable\":true}' \\\n  --name my-ack-cluster --kubernetes-version 1.30.1-aliyun.1 \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli \\\n  --cli-dry-run\n\naliyun cs modify-cluster-node-pool --cluster-id \u003Ccid> --nodepool-id \u003Cnpid> \\\n  --region \u003Cregion> --scaling-group desired_size=10 \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli --cli-dry-run\n```\n\nWhen a `cs` command does fail, `--log-level debug` reveals the full\nrequest\u002Fresponse so you can see endpoint, body, status, and the raw error:\n\n```bash\naliyun cs describe-cluster-detail --cluster-id \u003Ccid> --region \u003Cregion> \\\n  --user-agent AlibabaCloud-Agent-Skills\u002Falibabacloud-ack-cli --log-level debug\n```\n\nFor specific error patterns and first-action recipes (plugin \u002F parameter \u002F\nformat \u002F region \u002F auth \u002F RAM \u002F async-task failures, plus a sample dry-run\noutput), see [`.\u002Freferences\u002Ferror-catalogue.md`](.\u002Freferences\u002Ferror-catalogue.md).\n\n## Response format guidance\n\nWhen helping a user with `cs` commands:\n\n1. **Read intent first.** Are they investigating (\"describe \u002F list\"), modifying\n   (\"scale \u002F upgrade \u002F install\"), or creating? Modify\u002Fcreate flows almost always\n   produce a `task_id` — surface that pattern early.\n2. **Show the full command** with required parameters and explain non-obvious\n   ones (`--region`, the JSON-string-inside-JSON for addon config, etc.).\n3. **For async ops, mention `describe-task-info`** in the same response — and ask\n   before busy-waiting.\n4. **Suggest `--help` and `--log-level debug`** when the user is troubleshooting.\n5. **Cite the cluster's region** — most \"command works in cn-hangzhou but not\n   cn-shanghai\" issues are missing\u002Fwrong `--region`.\n\n## References\n\nFour reference files, all ACK-specific. Generic CLI knowledge (hidden global\nflags like `--waiter` \u002F `--header` \u002F `--body` \u002F `--secure`, multi-version API,\nfull security best practices) is the Aliyun CLI's responsibility — consult its\nown documentation when needed.\n\n1. `.\u002Freferences\u002Fcs-scenarios.md` — **Most useful day-to-day.** Worked\n   end-to-end examples: discovery, kubeconfig, node pools, addons, cluster\n   upgrade, delete, the create→wait→kubeconfig pipeline.\n2. `.\u002Freferences\u002Fasync-tasks.md` — `task_id` lifecycle, state vocabulary,\n   polling strategy, common `error.code` causes, partial-failure handling.\n3. `.\u002Freferences\u002Fcli-plugin-installation-guide.md` — Aliyun CLI install\n   (macOS\u002FLinux\u002FWindows), credential modes summary, `cs` plugin install,\n   end-to-end verification, troubleshooting. Read once at setup; come back\n   for \"I can't get past `Forbidden.RAM`\"-class issues.\n4. `.\u002Freferences\u002Fram-policies.md` — RAM Actions and policy templates\n   required by this skill's `aliyun cs` calls (cluster \u002F nodepool \u002F addon \u002F\n   task scopes).\n\nScripts:\n\n- `.\u002Fscripts\u002Fcheck-cs-plugin.sh` — Verify aliyun CLI ≥ 3.3.3 and the `cs` plugin is installed\n- `.\u002Fscripts\u002Finstall-cs-plugin.sh` — Install or update the `cs` plugin (idempotent; supports `--update` for non-interactive)\n- `.\u002Fscripts\u002Fwait-for-task.sh` — Poll `describe-task-info` until terminal state (requires task ID + region)\n",{"name":5,"license":15,"metadata":24,"description":28,"allowed-tools":29,"compatibility":30},{"owner":25,"domain":26,"contact":27},"ack-team","aiops","ack-team@alibabacloud.com","Use when the user operates Alibaba Cloud Container Service for Kubernetes (ACK). Covers cluster lifecycle (create \u002F modify \u002F delete \u002F upgrade), node pools & nodes (create, modify, delete, repair, fix CVE), addons (install \u002F upgrade \u002F uninstall), KubeConfig & RBAC (issue for RAM user, grant \u002F revoke), security & policy (CVE scan\u002Ffix, policy governance, KMS, delete protection), logging \u002F audit \u002F alerting, intelligent O&M (check \u002F inspect \u002F diagnosis \u002F auto-repair), async tasks (track \u002F pause \u002F resume \u002F cancel), templates, autoscaling, tags & quotas. Triggers: create \u002F upgrade \u002F delete ACK cluster, migrate to Pro, scale nodepool, fix node CVE, install \u002F remove addon, get \u002F revoke kubeconfig, grant RBAC, enable audit log, run inspection, diagnose cluster, track task_id, debug cs error, Forbidden.RAM, kubectl cannot connect. Terms: ACK, container service, k8s cluster, nodepool, addon, AutoMode, Terway, Flannel, ForRegion, kubeconfig, RBAC, CVE.\n","Bash","Requires aliyun CLI >= 3.3.3 with the cs plugin (aliyun plugin install --names cs). Helper scripts use jq; kubeconfig retrieval pairs with kubectl. Network access to *.aliyuncs.com OpenAPI endpoints required.\n","main","3ae3bc0cf4ff6299a28a9721fecddc617cf23713","skills\u002Falibabacloud-ack-cli","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit","https:\u002F\u002Fgithub.com\u002Firfanfaraaz","irfanfaraaz.in","AI-native Software Engineer","2026-10-20 19:39:08",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":51},[41,44,47],{"tool":42,"command":43},"npx","npx skills add irfanfaraaz\u002Fclaude-kit --skill alibabacloud-ack-cli",{"tool":45,"command":46},"bunx","bunx skills add irfanfaraaz\u002Fclaude-kit --skill alibabacloud-ack-cli",{"tool":48,"command":49},"pnpm","pnpm dlx skills add irfanfaraaz\u002Fclaude-kit --skill alibabacloud-ack-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002FSKILL.md",true,[53,59,63,67,71,75,81,85],{"path":54,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fasync-tasks.md","REFERENCE","参考文档",7373,"https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002Freferences\u002Fasync-tasks.md",{"path":60,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fcli-plugin-installation-guide.md",7299,"https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002Freferences\u002Fcli-plugin-installation-guide.md",{"path":64,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fcs-scenarios.md",14560,"https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002Freferences\u002Fcs-scenarios.md",{"path":68,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":69,"sourceHtmlUrl":70},"references\u002Ferror-catalogue.md",4518,"https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002Freferences\u002Ferror-catalogue.md",{"path":72,"resourceType":55,"resourceTypeDesc":56,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fram-policies.md",6538,"https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002Freferences\u002Fram-policies.md",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fcheck-cs-plugin.sh","SCRIPT","脚本",1856,"https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002Fscripts\u002Fcheck-cs-plugin.sh",{"path":82,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":83,"sourceHtmlUrl":84},"scripts\u002Finstall-cs-plugin.sh",2082,"https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002Fscripts\u002Finstall-cs-plugin.sh",{"path":86,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":87,"sourceHtmlUrl":88},"scripts\u002Fwait-for-task.sh",3506,"https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Falibabacloud-ack-cli\u002Fscripts\u002Fwait-for-task.sh",[90,98,106,115,122,129],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":94,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M7E86STEC48SA7NJPTKS52X6","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":102,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7E86KJEDAHV8X8TAZVJGH20","web-artifacts-builder","Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn\u002Fui). Use for complex artifacts requiring state management, routing, or shadcn\u002Fui components - not for simple single-file HTML\u002FJSX artifacts.","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fweb-artifacts-builder\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":111,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7E85NJYTPHAFDTEEDX2YSHD","video-use","Edit any video by conversation. Transcribe, cut, color grade, generate overlay animations, burn subtitles — for talking heads, montages, tutorials, travel, interviews. No presets, no menus. Ask questions, confirm the plan, execute, iterate, persist. Production-correctness rules are hard; everything else is artistic freedom.","MIT","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-use\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-use\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7E85B7TYMKMW2CTH86PENS7","vercel-react-native-skills","React Native and Expo best practices for building performant mobile apps. Use when building React Native components, optimizing list performance, implementing animations, or working with native modules. Triggers on tasks involving React Native, Expo, mobile performance, or native platform APIs.","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-native-skills\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M7E847V548VFTH4TK2VQWAMC","threejs","Build 3D web apps with Three.js (WebGL\u002FWebGPU). Use for 3D scenes, animations, custom shaders, PBR materials, VR\u002FXR experiences, games, data visualizations, product configurators.","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fthreejs\u002FSKILL.md",[],[],{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":110,"licenseFileUrl":133,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":19},"01M7E83TBAQ8K371G1NS0NFXQA","threads-carousel","Convert text posts into visual carousel images or presentations for Threads, Instagram, LinkedIn, TikTok, YouTube. 12 slide types (incl. image\u002Femoji\u002Fnumber), 6 format presets (incl. 1920×1080 wide), 8 background styles (incl. ruled paper), 3-axis style system (font × color × purpose), highlighted keywords with optional italic-box style. Generates PNG or single-file PDF via Next.js preview + browser export. RU\u002FEN toolbar. Triggers: threads carousel, instagram carousel, linkedin carousel, tiktok carousel, карусель, slides, carousel images, presentation deck, presentation pdf.","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fthreads-carousel\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Firfanfaraaz\u002Fclaude-kit\u002Fblob\u002Fmain\u002Fskills\u002Fthreads-carousel\u002FSKILL.md",[],[]]