/alibabacloud-yunxiao-flow-analysis
Yunxiao Flow Pipeline Troubleshooting and Solutions. Used to diagnose pipeline execution failures and provide fix recommendations. Trigger scenarios: Pipeline build errors, pipeline run failures, host deployment failures, k8s deployment failures, java build errors, python build
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-yunxiao-flow-analysis --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-yunxiao-flow-analysis
Context preview
The summary Claude sees to decide when to auto-load this skill.
Yunxiao Flow Pipeline Troubleshooting and Solutions. Used to diagnose pipeline execution failures and provide fix recommendations. Trigger scenarios: Pipeline build errors, pipeline run failures, host deployment failures, k8s deployment failures, java build errors, python build
SKILL.md
alibabacloud-yunxiao-flow-analysis.SKILL.mdname: alibabacloud-yunxiao-flow-analysis
description: |
Yunxiao Flow Pipeline Troubleshooting and Solutions. Used to diagnose pipeline execution failures and provide fix recommendations.
Trigger scenarios: Pipeline build errors, pipeline run failures, host deployment failures, k8s deployment failures, java build errors, python build errors, node build errors, unit test failures, image build failures, docker deployment failures, pipeline variable substitution errors, pipeline variables replaced with empty values.
Yunxiao Flow Pipeline Troubleshooting
Scenario Description
This skill provides comprehensive troubleshooting and analysis capabilities for Yunxiao Flow pipeline failures. It helps diagnose issues across various pipeline stages, including:
**Covered Pipeline Types:**
- Image Build (Docker)
- Docker Deployment
- Kubernetes Deployment
- VM Deployment
- Function Compute Deployment
- Unit Testing (Python, Maven/Java, Node.js, Golang, PHP)
**Architecture:** Python Scripts → Yunxiao Flow API → Pipeline Execution Logs → Failure Analysis → Solution Recommendations.
Installation
The websocket-client library is required.
Environment Variables
| Environment Variable | Description | Required | |---------------------|-------------|----------| | YUNXIAO_ACCESS_TOKEN | Yunxiao Personal Access Token (format: `pt-xxx`) | Yes |
Authentication
Before executing any commands, ensure you have a valid Yunxiao Personal Access Token configured via environment variable.
export YUNXIAO_ACCESS_TOKEN="pt-xxxxxxxxxxxxx"
**Security Design:**
- Token is read **exclusively** from environment variable `YUNXIAO_ACCESS_TOKEN` — CLI arguments are not supported to prevent exposure in process listings (`ps`/`top`), shell history, and `/proc/*/cmdline`
- Token format is validated (`pt-` prefix) before any network transmission to prevent accidental credential leakage
- All API communication uses HTTPS with TLS encryption
- Scripts have built-in token masking in output, showing only the first 6 and last 6 characters
**Security Rules:**
- **NEVER** read, echo, or print the full token value
- **NEVER** ask the user to input the token directly in the conversation
- **NEVER** hardcode token values in scripts
- **NEVER** pass token via command-line arguments (use environment variable only)
- Tokens should be obtained from Yunxiao Console > Personal Settings > Personal Access Tokens
RAM Permissions
This skill uses token-based authentication for Yunxiao Flow API. Required permissions:
- **Flow Pipeline all modules:** Read-only access
For detailed permission requirements and failure handling, see [references/ram-policies.md](references/ram-policies.md).
> **[MUST] Permission Failure Handling:** When any command or API call fails due to permission errors at any point during execution, follow this process: > 1. Read `references/ram-policies.md` to get the full list of permissions required by this SKILL > 2. Verify that the Yunxiao Personal Access Token has the necessary permissions > 3. Pause and wait until the user confirms that the required permissions have been granted
Parameter Confirmation
> **Important: Parameter Confirmation** — Before executing any command or API call, > all customizable parameters must be confirmed with the user. Never assume or use default values without explicit user approval.
| Parameter | Required/Optional | Description | Default | |-----------|-------------------|-------------|---------| | org-id | Required | Organization ID (24 characters for central org, 32 characters for regional org) | None | | pipeline-id | Required | Pipeline ID | None | | pipeline-runid | Required | Pipeline Run ID | None | | YUNXIAO_ACCESS_TOKEN | Required (environment variable) | Personal Access Token (format: pt-xxx), set via `export YUNXIAO_ACCESS_TOKEN="pt-xxx"` | None | | domain | Optional | API domain (default: openapi-rdc.aliyuncs.com) | openapi-rdc.aliyuncs.com |
Core Workflow
Step 1: Get Pipeline Run Status
> **Note**: All scripts read the token from environment variable `YUNXIAO_ACCESS_TOKEN`. Ensure it is set before running any command.
python3 scripts/yunxiao_flow_get_pipeline_runs.py \
--org-id <org-id> --pipeline-id <pipeline-id> \
--pipeline-runid <pipeline-runid> --domain <domain>
**Analyze the returned JSON:** 1. Check the `status` field (SUCCESS/FAIL/RUNNING/INIT) 2. Traverse `stages` to find the failed stage 3. Find the failed job within the failed stage 4. Find the failed step within the failed job
Step 2: Get Failed Step Logs
python3 scripts/yunxiao_flow_get_job_step_log.py \
--org-id <org-id> --pipeline-id <pipeline-id> --pipeline-runid <pipeline-runid> \
--job-id <job-id> --step-index <step-index> --build-id <build-id> \
--domain <domain> --full-log
Step 3: Get VM Deployment Logs (if applicable)
python3 scripts/yunxiao_flow_get_vm_deploy_machine_log.py \
--org-id <org-id> --pipeline-id <pipeline-id> --pipeline-runid <pipeline-runid> \
--deploy-order-id <deploy-order-id> --machine-sn <machine-sn> \
--domain <domain>
Step 4: Consult Reference Documents for Analysis
Read the corresponding reference documents based on the failure scenario. For detailed guidance, see `references/troubleshooting-guide.md`.
**Must read:** `yunxiao_base.md`, `yunxiao_flow_get_pipeline_runs.md`
Step 5: Analyze and Provide Solutions
After confirming the build cluster and code clone information, output: 1. Pipeline basic information, which must include: build cluster (build cluster name must NOT be obtained from `params.buildNodeGroup`. It **MUST** be obtained from the "Request Runtime Environment" step logs.), build environment, trigger time, status, failed job, failed step, downloaded code source, job workspace (can be viewed from the `PROJECT_DIR` in the Pipeline Cache step) 2. Failed step information 3. Error log summary 4. Root cause analysis 5. Solution recommendations (con
Read more
name: alibabacloud-yunxiao-flow-analysis description: | Yunxiao Flow Pipeline Troubleshooting and Solutions. Used to diagnose pipeline execution failures and provide fix recommendations. Trigger scenarios: Pipeline build errors, pipeline run failures, host deployment failures, k8s deployment failures, java build errors, python build errors, node build errors, unit test failures, image build failures, docker deployment failures, pipeline variable substitution errors, pipeline variables replaced with empty values.
Yunxiao Flow Pipeline Troubleshooting
Scenario Description
This skill provides comprehensive troubleshooting and analysis capabilities for Yunxiao Flow pipeline failures. It helps diagnose issues across various pipeline stages, including:
**Covered Pipeline Types:**
- Image Build (Docker)
- Docker Deployment
- Kubernetes Deployment
- VM Deployment
- Function Compute Deployment
- Unit Testing (Python, Maven/Java, Node.js, Golang, PHP)
**Architecture:** Python Scripts → Yunxiao Flow API → Pipeline Execution Logs → Failure Analysis → Solution Recommendations.
Installation
The websocket-client library is required.
Environment Variables
| Environment Variable | Description | Required | |---------------------|-------------|----------| | YUNXIAO_ACCESS_TOKEN | Yunxiao Personal Access Token (format: `pt-xxx`) | Yes |
Authentication
Before executing any commands, ensure you have a valid Yunxiao Personal Access Token configured via environment variable.
export YUNXIAO_ACCESS_TOKEN="pt-xxxxxxxxxxxxx"
**Security Design:**
- Token is read **exclusively** from environment variable `YUNXIAO_ACCESS_TOKEN` — CLI arguments are not supported to prevent exposure in process listings (`ps`/`top`), shell history, and `/proc/*/cmdline`
- Token format is validated (`pt-` prefix) before any network transmission to prevent accidental credential leakage
- All API communication uses HTTPS with TLS encryption
- Scripts have built-in token masking in output, showing only the first 6 and last 6 characters
**Security Rules:**
- **NEVER** read, echo, or print the full token value
- **NEVER** ask the user to input the token directly in the conversation
- **NEVER** hardcode token values in scripts
- **NEVER** pass token via command-line arguments (use environment variable only)
- Tokens should be obtained from Yunxiao Console > Personal Settings > Personal Access Tokens
RAM Permissions
This skill uses token-based authentication for Yunxiao Flow API. Required permissions:
- **Flow Pipeline all modules:** Read-only access
For detailed permission requirements and failure handling, see [references/ram-policies.md](references/ram-policies.md).
> **[MUST] Permission Failure Handling:** When any command or API call fails due to permission errors at any point during execution, follow this process: > 1. Read `references/ram-policies.md` to get the full list of permissions required by this SKILL > 2. Verify that the Yunxiao Personal Access Token has the necessary permissions > 3. Pause and wait until the user confirms that the required permissions have been granted
Parameter Confirmation
> **Important: Parameter Confirmation** — Before executing any command or API call, > all customizable parameters must be confirmed with the user. Never assume or use default values without explicit user approval.
| Parameter | Required/Optional | Description | Default | |-----------|-------------------|-------------|---------| | org-id | Required | Organization ID (24 characters for central org, 32 characters for regional org) | None | | pipeline-id | Required | Pipeline ID | None | | pipeline-runid | Required | Pipeline Run ID | None | | YUNXIAO_ACCESS_TOKEN | Required (environment variable) | Personal Access Token (format: pt-xxx), set via `export YUNXIAO_ACCESS_TOKEN="pt-xxx"` | None | | domain | Optional | API domain (default: openapi-rdc.aliyuncs.com) | openapi-rdc.aliyuncs.com |
Core Workflow
Step 1: Get Pipeline Run Status
> **Note**: All scripts read the token from environment variable `YUNXIAO_ACCESS_TOKEN`. Ensure it is set before running any command.
python3 scripts/yunxiao_flow_get_pipeline_runs.py \ --org-id <org-id> --pipeline-id <pipeline-id> \ --pipeline-runid <pipeline-runid> --domain <domain>
**Analyze the returned JSON:** 1. Check the `status` field (SUCCESS/FAIL/RUNNING/INIT) 2. Traverse `stages` to find the failed stage 3. Find the failed job within the failed stage 4. Find the failed step within the failed job
Step 2: Get Failed Step Logs
python3 scripts/yunxiao_flow_get_job_step_log.py \ --org-id <org-id> --pipeline-id <pipeline-id> --pipeline-runid <pipeline-runid> \ --job-id <job-id> --step-index <step-index> --build-id <build-id> \ --domain <domain> --full-log
Step 3: Get VM Deployment Logs (if applicable)
python3 scripts/yunxiao_flow_get_vm_deploy_machine_log.py \ --org-id <org-id> --pipeline-id <pipeline-id> --pipeline-runid <pipeline-runid> \ --deploy-order-id <deploy-order-id> --machine-sn <machine-sn> \ --domain <domain>
Step 4: Consult Reference Documents for Analysis
Read the corresponding reference documents based on the failure scenario. For detailed guidance, see `references/troubleshooting-guide.md`.
**Must read:** `yunxiao_base.md`, `yunxiao_flow_get_pipeline_runs.md`
Step 5: Analyze and Provide Solutions
After confirming the build cluster and code clone information, output: 1. Pipeline basic information, which must include: build cluster (build cluster name must NOT be obtained from `params.buildNodeGroup`. It **MUST** be obtained from the "Request Runtime Environment" step logs.), build environment, trigger time, status, failed job, failed step, downloaded code source, job workspace (can be viewed from the `PROJECT_DIR` in the Pipeline Cache step) 2. Failed step information 3. Error log summary 4. Root cause analysis 5. Solution recommendations (con
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

