Skip to content
Cloud & Infrastructure
Skill

/alibabacloud-livedebug

Live-Debug runtime diagnostics: dynamic logging, method snapshots, dynamic metrics, dynamic spans, and JVM inspection. Use for live-debug ServiceTask on Alibaba Cloud CMS (aliyun cms2 apm service-task): dynamic log/snapshot/metric/span probes, Java JVM commands (OGNL evaluate,

From plugin
alibabacloud-aiops-skills
295200 skills

Claude Code

$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-livedebug --agent claude-code

SKILL.md

alibabacloud-livedebug.SKILL.md
name: alibabacloud-livedebug
description: "Live-Debug runtime diagnostics: dynamic logging, method snapshots, dynamic metrics, dynamic spans, and JVM inspection. Use for live-debug ServiceTask on Alibaba Cloud CMS (aliyun cms2 apm service-task): dynamic log/snapshot/metric/span probes, Java JVM commands (OGNL evaluate, decompile, thread info, memory info, inspect object, search type/method, runtime info), disable/clear probes, and query capture results via SLS. Java supports commands + LOG/SNAPSHOT probes; Python supports LOG/SNAPSHOT/METRIC/SPAN/SPAN_TAG probes only. Synonyms: live debug, service task, probe, dynamic logging, method snapshot, take a snapshot, inspect running JVM, runtime diagnostics. Do NOT use for APM/agent onboarding, CMS alerts, RUM, Prometheus rules, or billing."
license: Apache-2.0
compatibility: "aliyun-cli>=3.3.15"
metadata:
  domain: aiops
  owner: agentloop
  contact: agentloop@alibaba-inc.com

Live-Debug Runtime Diagnostics

> **Product scope**: This skill builds and manages **Live-Debug ServiceTask** diagnostics on Alibaba Cloud CMS (`aliyun cms2 apm service-task`) and queries capture results via SLS. It does **not** onboard APM/agents and is **not** a general CloudMonitor (CMS) management skill.

Prerequisite Check

1. **Check `aliyun` exists** - `which aliyun` (macOS/Linux) or `where aliyun` (Windows).

  • Not found -> guide the user through [Aliyun CLI Installation](#aliyun-cli-installation) below. After installation, re-check `aliyun version` before continuing.

2. **Check CLI version** - run `aliyun version`. Minimum required: **3.3.15** (see `compatibility` in frontmatter).

> Compare version segments as **integers** (semver): 3.3.4 < 3.3.15 because 4 < 15. Version **3.3.15 itself meets** the minimum requirement.

  • Version OK -> go to step 3.
  • Version too old or unrecognized ->

1. For Homebrew installations, run `brew update` and then `brew upgrade aliyun-cli`, then re-check `aliyun version`. For other installations, run `aliyun upgrade --help` to test whether the `upgrade` subcommand exists.

  • Available -> run `aliyun upgrade -y`, then re-check `aliyun version`.
  • Not available (or the upgrade fails) -> guide the user to reinstall from [Aliyun CLI Installation](#aliyun-cli-installation) or follow the [official installation/update guide](https://www.alibabacloud.com/help/zh/cli/install-update-alibaba-cloud-cli). **Do NOT pipe remote install scripts directly into a shell interpreter** - download the installer, inspect it, then run it deliberately, or use the OS package manager. Stop and wait if installation remains unresolved.

2. If the upgrade succeeded -> go to step 3.

3. **Check `cms2` plugin** - run `aliyun cms2 apm service-task --help`.

  • Help output OK -> continue.
  • `unknown command` / missing -> the CMS ServiceTask capability is provided by the `aliyuncms2` plugin binary. Confirm it is placed in `~/.aliyun/` (or PATH) and is executable:
   ls -l ~/.aliyun/aliyuncms2
   chmod +x ~/.aliyun/aliyuncms2
   aliyun cms2 apm service-task --help

If it still fails, run `aliyun upgrade -y` and retry. If unresolved, **stop** and report the error (append CLI version, OS, and error message).

4. **Check SLS** - run `aliyun sls --help` (required to query capture results).

Bundled scripts require **Bash 3.2+**, **Python 3.8+** (standard library only), and **Aliyun CLI 3.3.15+** with the `cms2` and `sls` commands checked above. Check these with `bash --version`, `python3 --version`, and `aliyun version`; no pip packages are needed. Direct CLI commands can be used without the scripts.

Aliyun CLI Installation

Use the [official installation/update guide](https://www.alibabacloud.com/help/zh/cli/install-update-alibaba-cloud-cli) and select the package for the target operating system and architecture:

| Platform | Installation | | --- | --- | | macOS (Homebrew installed) | Run `brew install aliyun-cli`. | | macOS (without Homebrew) | Download the [official PKG installer](https://aliyuncli.alicdn.com/aliyun-cli-latest.pkg), open it, and follow the installer. | | Linux AMD64 | Download the [AMD64 TGZ](https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz) and follow the extraction steps below. | | Linux ARM64 | Download the [ARM64 TGZ](https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-arm64.tgz) and follow the extraction steps below. | | Windows AMD64 | Download the [Windows ZIP](https://aliyuncli.alicdn.com/aliyun-cli-windows-latest-amd64.zip), extract `aliyun.exe` into `C:\AliyunCLI`, add that directory to the user `Path`, and reopen the terminal. |

For Linux, run `uname -m` to choose the architecture (`x86_64` = AMD64; `aarch64` / `arm64` = ARM64). For example, on AMD64:

curl -fSL --connect-timeout 10 --max-time 120 https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz -o aliyun-cli-linux-latest.tgz
tar xzvf aliyun-cli-linux-latest.tgz
sudo mv ./aliyun /usr/local/bin/

For ARM64, replace `amd64` with `arm64` in the download URL. Windows ARM64 and 32-bit systems are unsupported.

After installation, run `aliyun version` and require **3.3.15 or later**, then continue with the `cms2` plugin and SLS prerequisite checks above. Installing the base CLI does not replace those checks; configure credentials as described below.

Credentials

`aliyun cms2` and `aliyun sls` reuse the aliyun CLI credential system (`aliyun configure`). Use `--profile <name>` to switch profiles. A **RAM sub-account** with read/write on CMS ServiceTask and query permissions on the target SLS project is recommended.

Required RAM permissions - see [references/ram-policies.md](references/ram-policies.md).

Observability

Before the first cloud API request, read [references/manifest.json](references/manifest.json) and require its non-empty string `version`. Use that exact version; if the manifest cannot be read or validated, stop before making cloud requests. Never guess a version or fall back to a hard-coded on

Read more
@aliyun
Ships withalibabacloud-aiops-skills

Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.

Stars on GitHub

Momentum

stars in total
295
Star history of aliyun/alibabacloud-aiops-skills on GitHub, a chart by star-history.com

Other skills on alibabacloud-aiops-skills.

More skills from other plugins.

container

container

Use when running, building, or managing Linux containers on macOS, or when a task involves Docker, docker compose, Lima, Colima,…

@apple@appleInstall Skill
agent-advisor

agent-advisor

Entry point for AI-agent work on AWS: pick a runtime, plan a migration for existing workloads, and build an executable POC — one…

@aws@awsInstall Skill
agents-sdk
Auto-invoked

agents-sdk

Build, debug, or review Cloudflare Agents SDK applications using the agents package.

@cloudflare@cloudflareInstall Skill

Questions about alibabacloud-livedebug.

Which coding agents can use alibabacloud-livedebug?
alibabacloud-livedebug installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.