/alibabacloud-pai-dlc-job-diagnostics
PAI-DLC job diagnostics and health inspection. Queuing-stuck root cause analysis, failed-job localization, cluster health checks. Companion to the `alibabacloud-pai-dlc-job` skill (read-only — no writes). Triggers: "diagnose", "diagnose job", "job stuck", "why queuing", "queue
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-pai-dlc-job-diagnostics --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/alibabacloud-pai-dlc-job-diagnostics
Context preview
The summary Claude sees to decide when to auto-load this skill.
PAI-DLC job diagnostics and health inspection. Queuing-stuck root cause analysis, failed-job localization, cluster health checks. Companion to the `alibabacloud-pai-dlc-job` skill (read-only — no writes). Triggers: "diagnose", "diagnose job", "job stuck", "why queuing", "queue
SKILL.md
alibabacloud-pai-dlc-job-diagnostics.SKILL.mdname: alibabacloud-pai-dlc-job-diagnostics
description: |
PAI-DLC job diagnostics and health inspection. Queuing-stuck root cause
analysis, failed-job localization, cluster health checks.
Companion to the `alibabacloud-pai-dlc-job` skill (read-only — no writes).
Triggers: "diagnose", "diagnose job", "job stuck", "why queuing",
"queue stuck", "stuck in queue", "job failed", "failure reason",
"healthcheck", "health check", "inspect job", "inspection".
PAI-DLC Job Diagnostics and Health Inspection
Read-only diagnostic analysis for PAI-DLC distributed training jobs, covering three scenarios:
- **Queuing-stuck root cause analysis** — quota check, node scheduling
diagnosis, hyper-node availability
- **Failed-job localization** — failure classification, logs/events evidence
chain, root cause identification
- **Cluster health inspection** — training throughput, hang detection,
SanityCheck, restart stability
**Architecture**: PAI-DLC Job (read-only queries) + PAI Studio Resource Diagnosis API (queuing scenario).
0. Dependencies
This skill performs **read-only diagnostics** only. All write operations (create / update / stop jobs, resource discovery, etc.) live in the companion skill `alibabacloud-pai-dlc-job`. The two skills are complementary in responsibility and share a common field contract.
| Prerequisite Skill | Role | When to switch to it | |--------------------|------|----------------------| | `alibabacloud-pai-dlc-job` | Write ops (create/update/stop) + AIWorkSpace resource discovery | Creating / modifying / stopping jobs, or discovering Image / Dataset / CodeSource | | This skill | Read-only diagnostics (logs / events / sanity-check / queuing root cause) | Job already exists — troubleshooting or health inspection |
**Discover and install the prerequisite skill:**
# Discover available skills
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-find-skills
# Install the alibabacloud-pai-dlc-job skill itself
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-pai-dlc-job
**Cross-skill field contract:** The `--job-id` / `--pod-id` values this skill consumes are produced verbatim by `alibabacloud-pai-dlc-job` via `list-jobs` / `get-job --cli-query "Pods[0].PodId"` — no transformation needed. `--region` / `--workspace-id` follow the same resolution rules in both skills.
Installation Requirements
> **Pre-check: Aliyun CLI >= 3.3.1 required** > Run `aliyun version` to verify >= 3.3.1. If not installed or version too low, > see [references/cli-installation-guide.md](references/cli-installation-guide.md). > Then [MUST] run `aliyun configure set --auto-plugin-install true`.
> **Note on `--user-agent`:** Every API-invoking `aliyun` command in this skill MUST > include `--user-agent AlibabaCloud-Agent-Skills/alibabacloud-pai-dlc-job-diagnostics`. Client-side helpers > (`aliyun version`, `aliyun configure ...`, `aliyun plugin ...`, > `aliyun <product> --help`) do not invoke remote APIs and therefore do not require > the flag.
aliyun version
aliyun configure set --auto-plugin-install true
aliyun plugin update
aliyun pai-dlc --help
aliyun paistudio --help >/dev/null 2>&1 || aliyun plugin install --names aliyun-cli-paistudio
aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-pai-dlc-job-diagnostics"
# After session: aliyun configure ai-mode disable
Authentication
> **Pre-check: Alibaba Cloud Credentials Required** > > **Security Rules:** > - **NEVER** read, echo, or print AK/SK values > - **NEVER** ask the user to input AK/SK directly > - **ONLY** use `aliyun configure list` to check credential status > > ```bash > aliyun configure list > ``` > Check the output for a valid profile (AK, STS, or OAuth identity). > > **If no valid profile exists, STOP here.** > 1. Obtain credentials from [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) > 2. Configure credentials **outside of this session** > 3. Return and re-run after `aliyun configure list` shows a valid profile
RAM Permissions
> **[MUST] Permission Failure Handling:** When any command fails due to permission errors: > 1. Read `references/ram-policies.md` for the full permission list > 2. Use `ram-permission-diagnose` skill to guide the user > 3. Pause and wait until the user confirms permissions have been granted
| Product | Permissions | Purpose | |---------|-------------|---------| | pai-dlc | `pai:GetJob`, `pai:GetPodLogs`, `pai:GetJobEvents`, `pai:GetPodEvents`, `pai:ListJobSanityCheckResults` | Job information collection | | paistudio | `paistudio:GetQuotaWorkloadDiagnosis` | Queuing resource diagnosis |
Parameter Confirmation
> **IMPORTANT: Parameter Confirmation** — Before executing any command, > ALL user-customizable parameters (RegionId, JobId, etc.) MUST be confirmed with the user.
| Parameter | Required | Description | |-----------|----------|-------------| | `region` | Yes | Region where the job runs | | `job_id` | Yes | DLC job ID (e.g., `dlcXXX`) |
---
Entry Routing
When a diagnostic request arrives, first call `get-job` to fetch job status, then route by status:
| Job status | Route to scenario | |------------|-------------------| | `Queuing` / `Creating` | → Queuing-stuck root cause analysis | | `Failed` | → Failed-job localization | | `Running` | → Health inspection | | `Stopped` | Inform the user "job was actively stopped", no diagnosis | | `Succeeded` | → Historical review (follow Scenario 3 Execution steps) |
**Edge case — job was queuing but is now Stopped/Succeeded**: If the user describes the job as "stuck in queue" but `get-job` shows `Stopped` or `Succeeded`, still route to Scenario 1 (queuing analysis) but expect the resource diagnosis API to return HTTP 400. Follow the "Fallback on API Failure" procedure in Scenario 1.
Users may also directly request a specific scenario (e.g., "run a health inspection" even wh
Read more
name: alibabacloud-pai-dlc-job-diagnostics description: | PAI-DLC job diagnostics and health inspection. Queuing-stuck root cause analysis, failed-job localization, cluster health checks. Companion to the `alibabacloud-pai-dlc-job` skill (read-only — no writes). Triggers: "diagnose", "diagnose job", "job stuck", "why queuing", "queue stuck", "stuck in queue", "job failed", "failure reason", "healthcheck", "health check", "inspect job", "inspection".
PAI-DLC Job Diagnostics and Health Inspection
Read-only diagnostic analysis for PAI-DLC distributed training jobs, covering three scenarios:
- **Queuing-stuck root cause analysis** — quota check, node scheduling
diagnosis, hyper-node availability
- **Failed-job localization** — failure classification, logs/events evidence
chain, root cause identification
- **Cluster health inspection** — training throughput, hang detection,
SanityCheck, restart stability
**Architecture**: PAI-DLC Job (read-only queries) + PAI Studio Resource Diagnosis API (queuing scenario).
0. Dependencies
This skill performs **read-only diagnostics** only. All write operations (create / update / stop jobs, resource discovery, etc.) live in the companion skill `alibabacloud-pai-dlc-job`. The two skills are complementary in responsibility and share a common field contract.
| Prerequisite Skill | Role | When to switch to it | |--------------------|------|----------------------| | `alibabacloud-pai-dlc-job` | Write ops (create/update/stop) + AIWorkSpace resource discovery | Creating / modifying / stopping jobs, or discovering Image / Dataset / CodeSource | | This skill | Read-only diagnostics (logs / events / sanity-check / queuing root cause) | Job already exists — troubleshooting or health inspection |
**Discover and install the prerequisite skill:**
# Discover available skills npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-find-skills # Install the alibabacloud-pai-dlc-job skill itself npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-pai-dlc-job
**Cross-skill field contract:** The `--job-id` / `--pod-id` values this skill consumes are produced verbatim by `alibabacloud-pai-dlc-job` via `list-jobs` / `get-job --cli-query "Pods[0].PodId"` — no transformation needed. `--region` / `--workspace-id` follow the same resolution rules in both skills.
Installation Requirements
> **Pre-check: Aliyun CLI >= 3.3.1 required** > Run `aliyun version` to verify >= 3.3.1. If not installed or version too low, > see [references/cli-installation-guide.md](references/cli-installation-guide.md). > Then [MUST] run `aliyun configure set --auto-plugin-install true`.
> **Note on `--user-agent`:** Every API-invoking `aliyun` command in this skill MUST > include `--user-agent AlibabaCloud-Agent-Skills/alibabacloud-pai-dlc-job-diagnostics`. Client-side helpers > (`aliyun version`, `aliyun configure ...`, `aliyun plugin ...`, > `aliyun <product> --help`) do not invoke remote APIs and therefore do not require > the flag.
aliyun version aliyun configure set --auto-plugin-install true aliyun plugin update aliyun pai-dlc --help aliyun paistudio --help >/dev/null 2>&1 || aliyun plugin install --names aliyun-cli-paistudio aliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-pai-dlc-job-diagnostics" # After session: aliyun configure ai-mode disable
Authentication
> **Pre-check: Alibaba Cloud Credentials Required** > > **Security Rules:** > - **NEVER** read, echo, or print AK/SK values > - **NEVER** ask the user to input AK/SK directly > - **ONLY** use `aliyun configure list` to check credential status > > ```bash > aliyun configure list > ``` > Check the output for a valid profile (AK, STS, or OAuth identity). > > **If no valid profile exists, STOP here.** > 1. Obtain credentials from [Alibaba Cloud Console](https://ram.console.aliyun.com/manage/ak) > 2. Configure credentials **outside of this session** > 3. Return and re-run after `aliyun configure list` shows a valid profile
RAM Permissions
> **[MUST] Permission Failure Handling:** When any command fails due to permission errors: > 1. Read `references/ram-policies.md` for the full permission list > 2. Use `ram-permission-diagnose` skill to guide the user > 3. Pause and wait until the user confirms permissions have been granted
| Product | Permissions | Purpose | |---------|-------------|---------| | pai-dlc | `pai:GetJob`, `pai:GetPodLogs`, `pai:GetJobEvents`, `pai:GetPodEvents`, `pai:ListJobSanityCheckResults` | Job information collection | | paistudio | `paistudio:GetQuotaWorkloadDiagnosis` | Queuing resource diagnosis |
Parameter Confirmation
> **IMPORTANT: Parameter Confirmation** — Before executing any command, > ALL user-customizable parameters (RegionId, JobId, etc.) MUST be confirmed with the user.
| Parameter | Required | Description | |-----------|----------|-------------| | `region` | Yes | Region where the job runs | | `job_id` | Yes | DLC job ID (e.g., `dlcXXX`) |
---
Entry Routing
When a diagnostic request arrives, first call `get-job` to fetch job status, then route by status:
| Job status | Route to scenario | |------------|-------------------| | `Queuing` / `Creating` | → Queuing-stuck root cause analysis | | `Failed` | → Failed-job localization | | `Running` | → Health inspection | | `Stopped` | Inform the user "job was actively stopped", no diagnosis | | `Succeeded` | → Historical review (follow Scenario 3 Execution steps) |
**Edge case — job was queuing but is now Stopped/Succeeded**: If the user describes the job as "stuck in queue" but `get-job` shows `Stopped` or `Succeeded`, still route to Scenario 1 (queuing analysis) but expect the resource diagnosis API to return HTTP 400. Follow the "Fallback on API Failure" procedure in Scenario 1.
Users may also directly request a specific scenario (e.g., "run a health inspection" even wh
Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Other skills on alibabacloud-aiops-skills.
- /alibabacloud-agentbay-aio-skills
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users request to run, execute, or evaluate code (Python, JavaScript, R, Java), including plotting charts, running scripts, or viewing code output. Covers requests like "run this code", "execute
Open skill - /alibabacloud-agentloop-dataset
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API version 2026-05-20. Use when requests concern AgentLoop datasets, data rows, Dataset schemas, embedding fields, semantic search, ExecuteQuery, AgentSpace data, 数据集, 数据写入, 数据查询, 语义检索, or ask
Open skill - /alibabacloud-agentloop-evaluation
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews, saved evaluator and evaluator-skill management, one-shot sample tests, trace or dataset batch runs, polling, and result inspection. Analyze evaluation quality and low-score cases from
Open skill - /alibabacloud-agentloop-experience
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through the bundled SearchContext CLI whenever the user asks or implies that prior work may help. Trigger for requests to check, search, recall, retrieve, look up, review, consult, reference,
Open skill - /alibabacloud-agentloop-management
AgentLoop APM接入 / AI可观测接入 / 应用监控接入 / 自研探针 / 探针安装. Use for Python aliyun-bootstrap (aliyun-instrument), Java AliyunJavaAgent, Golang instgo, Node.js cms_node_sdk, PHP/.NET OpenTelemetry, ack-onepilot, LicenseKey, AgentLoop workspace agentloop-*. Also for LangChain, Dify,
Open skill - /alibabacloud-avatar-video
Use Alibaba Cloud DashScope API and LingMou to generate AI video and speech. Seven capabilities — (1) LivePortrait talking-head (image + audio → video, two-step), (2) EMO talking-head, (3) AA/AnimateAnyone full-body animation (three-step), (4) T2I text-to-image (Wan 2.x, default
Open skill

