Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

alibabacloud-livedebug

FreeRuns bundled scriptsNot checked

Live-Debug runtime diagnostics: dynamic logging, method snapshots, dynamic metrics, dynamic spans, and JVM inspection. Use for live-debug ServiceTask on…

sdk-teamby sdk-team828 installs in other catalogs

About this skill

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.

Identify the application before running commands

For a request such as “our online application is slow”, first check the request and any project-local .arms-info for the target. Ask one question covering the missing details: Java or Python, region, workspace, service name or ID, and which symptom or method to investigate. End the turn there and wait for the answer before listing cloud resources or creating a ServiceTask. A service returned by a list operation does not establish which application the user meant.

Prerequisite Check

  1. Check aliyun exists - which aliyun (macOS/Linux) or where aliyun (Windows).
  • Not found -> guide the user through Aliyun CLI Installation below. After installation, re-check aliyun version before continuing.
  1. 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.
  • For an older or unrecognized version, follow the installation procedure below and recheck the installed version.
  1. 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 the plugin check fails, report the CLI version, OS and error. Ask the operator to repair the approved CLI installation before dispatching tasks.
  1. 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

For a new installation, select an exact approved Aliyun CLI release (minimum 3.3.15) for the target OS and architecture. Follow the official installation guide using the versioned package supplied by the operator’s package repository or official release channel. Verify its version and published checksum or signature before installation. If the pinned artifact cannot be verified, ask the operator to provision it. The diagnostic scripts do not download or install software.

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.

For production diagnostics, omit the evaluation-only service creation and deletion policy. Required RAM permissions - see references/ram-policies.md.

Observability

Before the first cloud API request, read 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 one.

On entry to this skill, generate one fresh random 32-character lowercase hexadecimal session ID, for example with openssl rand -hex 16. Export it as LIVE_DEBUG_SESSION_ID for bundled scripts. Reuse it for every cloud request, retry, and script invocation in this workflow. Do not regenerate it between steps. When switching to another skill, use that skill's own name and a newly generated session ID; never inherit another skill's session or User-Agent. A new workflow, including re-entry after a skill switch, starts a new session even if an old environment variable is present.

Every aliyun cloud API call in this skill, including CMS ServiceTask, service/workspace discovery and SLS queries, must carry:

--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-livedebug/skill-version/{version}/{session-id}"

Substitute the manifest version and current session ID literally when generating direct CLI comma

Full SKILL.md on ClawHub

Install alibabacloud-livedebug in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the alibabacloud-livedebug skill do?

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, EVALUATE_EXPRESSION, and six read-only commands: SEARCH_TYPE, SEARCH_METHOD, DECOMPILE, GET_THREAD_INFO, GET_MEMORY_INFO, GET_RUNTIME_INFO. 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.

How do I install the alibabacloud-livedebug skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the alibabacloud-livedebug skill run scripts?

Yes, this skill bundles executable scripts. Review the source before installing.

Related skills

Compare alibabacloud-livedebug with