← 返回 Skills 市场
sdk-team

Alibabacloud Yunxiao Flow Analysis

作者 alibabacloud-skills-team · GitHub ↗ · v0.0.1-beta.1 · MIT-0
cross-platform ⚠ suspicious
34
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install alibabacloud-yunxiao-flow-analysis
功能描述
Yunxiao Flow Pipeline Troubleshooting and Solutions. Used to diagnose pipeline execution failures and provide fix recommendations. Trigger scenarios: Pipelin...
使用说明 (SKILL.md)

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 No (if not provided via --token parameter, it will be read from this environment variable)

Authentication

Before executing any commands, ensure you have a valid Yunxiao Personal Access Token. Token priority:

  1. Command-line argument --token
  2. Environment variable YUNXIAO_ACCESS_TOKEN
# Method 1: Configure via environment variable (recommended)
export YUNXIAO_ACCESS_TOKEN="pt-xxxxxxxxxxxxx"

# Method 2: Pass via script command-line argument
# --token pt-xxxxxxxxxxxxx

Security Rules:

  • NEVER read, echo, or print the full token value (scripts have built-in masking, showing only the first 6 and last 6 characters)
  • NEVER ask the user to input the token directly in the conversation
  • NEVER hardcode token values in scripts
  • 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

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
token Optional (environment variable recommended) Personal Access Token (format: pt-xxx), can be provided via --token argument or environment variable YUNXIAO_ACCESS_TOKEN None
domain Optional API domain (default: openapi-rdc.aliyuncs.com) openapi-rdc.aliyuncs.com

Core Workflow

Step 1: Get Pipeline Run Status

Note: The --token \x3Ctoken> in the following commands can be provided via environment variable YUNXIAO_ACCESS_TOKEN. If the environment variable is set, the --token argument can be omitted.

python3 scripts/yunxiao_flow_get_pipeline_runs.py \
  --org-id \x3Corg-id> --pipeline-id \x3Cpipeline-id> \
  --pipeline-runid \x3Cpipeline-runid> --token \x3Ctoken> --domain \x3Cdomain>

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 \x3Corg-id> --pipeline-id \x3Cpipeline-id> --pipeline-runid \x3Cpipeline-runid> \
  --job-id \x3Cjob-id> --step-index \x3Cstep-index> --build-id \x3Cbuild-id> \
  --token \x3Ctoken> --domain \x3Cdomain> --full-log

Step 3: Get VM Deployment Logs (if applicable)

python3 scripts/yunxiao_flow_get_vm_deploy_machine_log.py \
  --org-id \x3Corg-id> --pipeline-id \x3Cpipeline-id> --pipeline-runid \x3Cpipeline-runid> \
  --deploy-order-id \x3Cdeploy-order-id> --machine-sn \x3Cmachine-sn> \
  --token \x3Ctoken> --domain \x3Cdomain>

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 (configuration changes, parameter adjustments, operational steps)

Success Verification Method

For verification steps, see references/verification-method.md

Cleanup

No resource cleanup required. This skill only performs read operations for analysis purposes.

Best Practices

  1. Always validate org-id length to determine organization type (24 chars = central org, 32 chars = regional org)
  2. Check build cluster type from "Request Runtime Environment" step logs, not from params.buildNodeGroup
  3. Read base reference documents first: Read yunxiao_base.md and yunxiao_flow_get_pipeline_runs.md before scenario-specific files
  4. Extract build cluster information from log patterns:
    • Default: [Build Cluster Info] >> Cluster Name : Yunxiao China Hong Kong Build Cluster
    • VPC: [Build Cluster Info] >> Cluster Name : Hangzhou VPC Build Cluster
    • Private: [Runner Group Info]: >> RunnerGroupName : xxxxx
  5. Verify code clone information: Check branch name and commit SHA before analysis
  6. Match failure scenarios to corresponding reference documents in the troubleshooting guide table

Reference Document Links

Reference Document Description
troubleshooting-guide.md Complete troubleshooting guide (org types, knowledge base selection, build cluster identification)
yunxiao_base.md Yunxiao fundamentals (org types, API versions, PAT, pipeline concepts)
yunxiao_flow_get_pipeline_runs.md Pipeline runs API field documentation
flow_git_clone.md Code clone error troubleshooting
flow_build_docker.md Docker image build troubleshooting
flow_build_nodeJs.md Node.js build troubleshooting
flow_build_python.md Python build troubleshooting
flow_customEnvironmentBuild.md Custom environment build error troubleshooting
flow_build_java.md Java build troubleshooting
flow_deploy_docker.md Docker deployment troubleshooting
flow_deploy_kubectl.md Kubernetes deployment troubleshooting
flow_deploy_vm.md VM deployment troubleshooting
flow_deploy_fc.md Function Compute deployment troubleshooting
flow_test_python.md Python unit test troubleshooting
flow_test_maven.md Maven/Java unit test troubleshooting
flow_test_nodeJS.md Node.js unit test troubleshooting
flow_test_golang.md Golang unit test troubleshooting
flow_test_php.md PHP unit test troubleshooting
flow_variables.md Pipeline variable configuration
flow_workspace_runtime.md Workspace and runtime environment troubleshooting
related-commands.md Complete list of all script commands

Tools

Script Function
yunxiao_flow_get_pipeline_runs.py Get pipeline run information
yunxiao_flow_get_job_step_log.py Get step execution logs
yunxiao_flow_get_vm_deploy_order.py Get VM deployment order details
yunxiao_flow_get_vm_deploy_machine_log.py Get VM deployment machine logs
webTerminal.py Connect to container environment debug terminal
安全使用建议
Install only if you are comfortable giving the agent Yunxiao pipeline read access and, when debug mode is enabled, potential live terminal access to build environments. Prefer using the log/API tools first; do not provide a terminalUrl unless you explicitly want live inspection, and review every proposed terminal command and output because it may reveal secrets, source code, or environment variables.
能力标签
requires-oauth-tokenrequires-sensitive-credentials
能力评估
Purpose & Capability
The read-only Yunxiao API scripts for pipeline status, logs, deployment orders, and machine logs fit the stated troubleshooting purpose, but the included webTerminal.py connects to a live container/build-machine terminal and permits commands such as cat, find, env, grep, and which, expanding the skill beyond passive analysis.
Instruction Scope
The main skill says cleanup is unnecessary because it only performs read operations, yet multiple reference files instruct the agent to request a terminalUrl, connect to the build machine, and execute shell commands for troubleshooting or verification. This is a material scope mismatch.
Install Mechanism
Installation is limited to a Python dependency, websocket-client, and no persistence or auto-start behavior was found. The terminal client disables TLS certificate verification for its WebSocket connection, which weakens connection assurance.
Credentials
A Yunxiao token and log-reading API access are proportionate for CI/CD troubleshooting, but live terminal access to build environments can expose source code, environment variables, credentials, and deployment context. The artifact relies mostly on documentation and a client-side command allowlist rather than strong containment.
Persistence & Privilege
No durable background process, privilege escalation, or local persistence was found. The high-impact privilege concern is temporary interactive access to remote build environments when a terminalUrl is provided.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install alibabacloud-yunxiao-flow-analysis
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /alibabacloud-yunxiao-flow-analysis 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.0.1-beta.1
Initial beta release of Yunxiao Flow pipeline troubleshooting skill. - Diagnose and analyze failures across pipeline build, deployment, testing, and runtime stages. - Provides step-by-step instructions for log retrieval and failure diagnosis (Docker, k8s, VM, Java/Python/Node builds, etc.). - Offers solution recommendations based on log and API analysis. - Requires explicit user confirmation for all customizable parameters before execution. - Strong security guidelines for handling access tokens (never echo or print full token). - Links to a comprehensive set of reference troubleshooting documents for various failure scenarios.
元数据
Slug alibabacloud-yunxiao-flow-analysis
版本 0.0.1-beta.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Alibabacloud Yunxiao Flow Analysis 是什么?

Yunxiao Flow Pipeline Troubleshooting and Solutions. Used to diagnose pipeline execution failures and provide fix recommendations. Trigger scenarios: Pipelin... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 34 次。

如何安装 Alibabacloud Yunxiao Flow Analysis?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install alibabacloud-yunxiao-flow-analysis」即可一键安装,无需额外配置。

Alibabacloud Yunxiao Flow Analysis 是免费的吗?

是的,Alibabacloud Yunxiao Flow Analysis 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Alibabacloud Yunxiao Flow Analysis 支持哪些平台?

Alibabacloud Yunxiao Flow Analysis 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Alibabacloud Yunxiao Flow Analysis?

由 alibabacloud-skills-team(@sdk-team)开发并维护,当前版本 v0.0.1-beta.1。

💬 留言讨论