alibabacloud-bailian-m…
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent…
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,
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-livedebug --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/alibabacloud-livedebugContext preview
The summary Claude sees to decide when to auto-load this skill.
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,
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
> **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.
1. **Check `aliyun` exists** - `which aliyun` (macOS/Linux) or `where aliyun` (Windows).
2. **Check CLI version** - run `aliyun version`. Minimum required: **3.3.15** (see `compatibility` in frontmatter).
> WARNING: Compare version segments as **integers** (semver): 3.3.4 < 3.3.15 because 4 < 15. > Shell verification: `printf '%s\n' "3.3.15" "$(aliyun version)" | sort -V | head -1` > If the output equals the current version, the requirement is NOT met.
1. Run `aliyun upgrade --help` to test whether the `upgrade` subcommand exists.
2. If the upgrade succeeded -> go to step 3.
3. **Check `cms2` plugin** - run `aliyun cms2 apm service-task --help`.
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).
`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).
Every `aliyun` CLI command (`aliyun cms2`, `aliyun sls`) in this skill **MUST** include the `--user-agent` flag:
--user-agent "AlibabaCloud-Agent-Skills/alibabacloud-livedebug/{session-id}"Replace `{session-id}` with the session identifier for the current workflow. The companion scripts append this automatically when `LIVE_DEBUG_SESSION_ID` is set.
Example:
aliyun cms2 apm service-task list \ --workspace agentloop-0a1b2c3d4e5f60718293a4b5c6d7e8f9 \ --service-id 'ggxw4lnjuz@f2fd3a6265a254a052afb' \ --type live_debug_log_probe \ --region cn-hangzhou \ --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-livedebug/3f2a8b1c4d5e6f709182a3b4c5d6e7f8"
1. **Generate once** at the start of each skill-triggered workflow. 2. **Format**: exactly **32 lowercase hexadecimal characters**, no hyphens, no prefix. 3. **Reuse** the same `session-id` for **all** CLI commands within the same workflow so backend logs can be correlated across steps. 4. **Do NOT** regenerate `session-id` between steps of the same request. 5. **Generation** (pick one):
# Preferred openssl rand -hex 16 # Alternative uuidgen | tr -d '-' | tr '[:upper:]' '[:lower:]'
> **Always run `aliyun cms2 apm service-task <subcommand> --help` first** to get the full flag list and examples.
Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent…
Alibaba Cloud Parse-X intelligent document parsing and extraction tool. Supports two…
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users…
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API…
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews,…
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through…