alibabacloud-bailian-m…
Explain, evaluate, demonstrate, provision, and integrate Alibaba Cloud Bailian Managed Agent (CMA / ManagedAgents). Use for Bailian Managed Agent product…
Environment and session preparation skill for LHM schedule migration (non-interactive execution stage). It does three things: (1) Install the lhm-sch-* CLIs as needed; (2) read the **already filled-in** user configuration (business fields must come from the config file;
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill lhm-sch-env --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/lhm-sch-envContext preview
The summary Claude sees to decide when to auto-load this skill.
Environment and session preparation skill for LHM schedule migration (non-interactive execution stage). It does three things: (1) Install the lhm-sch-* CLIs as needed; (2) read the **already filled-in** user configuration (business fields must come from the config file;
name: lhm-sch-env description: | Environment and session preparation skill for LHM schedule migration (non-interactive execution stage). It does three things: (1) Install the lhm-sch-* CLIs as needed; (2) read the **already filled-in** user configuration (business fields must come from the config file; credentials are NOT collected here), validate it, and transcribe it into a temporary session config file that subsequent sub-skills load directly; (3) run environment checks (network connectivity / resource group status / Agent online status). Triggers: validate and transcribe migration configuration, prepare the schedule migration session environment, check LHM API connectivity / DataWorks resource group / service agent status, a credential error surfacing from the aliyun CLI default credential chain, lhm-sch-ds / lhm-sch-read-exec / lhm-sch-deploy command not found, install or uninstall the lhm schedule migration CLIs, confirm whether the current target is staging or production, clean up the session config after migration ends. Do not trigger for: guiding the user to fill in the configuration template (handled by the upper-level entry flow); and concrete migration business operations (creating data sources, exploring/converting workflows, deployment & upload), which are handled by lhm-sch-ds, lhm-sch-read-exec, and lhm-sch-deploy respectively.
The four stages of schedule migration (data source preparation → exploration → conversion → deployment) share the same environment. This skill is the **only** place that handles environment preparation and the session config (credentials themselves are resolved by the aliyun CLI default credential chain):
User-filled lhm_credentials.json ─→ Validation (business fields required) ─→ Session config (temp directory) ─→ Environment check (full) ─→ Sub-skills load it directly
**Responsibility boundaries**:
> **⚠️ CLI Installation Strategy (must be followed)** > > All `lhm-sch-*` CLIs (including this skill's own `lhm-sch-env`) are installed via `uv tool install` as > **non-editable** packages — they cannot detect whether the source code has changed. Therefore, **every > time this skill is invoked, all CLIs required by the current stage must be reinstalled unconditionally** > before running `setup_session.sh`. > > **⚠️ Serial Execution Required (No Parallelism)**: The CLI installation scripts **must be executed serially — one at a time, in any order**. They **cannot be run in parallel or concurrently**. Each `install.sh` script must fully complete before the next one begins. There is **no required ordering** among the scripts; they may be executed in any sequence, but never simultaneously. This prevents race conditions and resource conflicts during package installation.
> ⛔ **Plugin pre-gate — runs before Step 0 (mirrors the LHM dispatcher's Step 2.1 Hard Stop Gate)** > > Every `lhm-sch-*` CLI reaches the service through `aliyun lhm <command>`, which requires the > `aliyun-cli-lhm` plugin (>= 0.1.1). Confirm that `~/.aliyun/plugins/aliyun-cli-lhm/manifest.json` > exists **before** reinstalling any CLI. If it is missing, run the dispatcher's > `scripts/install_lhm_plugin.sh` once and treat a non-zero exit as fatal: report the environment error > verbatim — including its printed installation instructions — and stop. > > On such a failure do **not** proceed to Step 0. Reinstalling the CLIs cannot repair a missing plugin: > they all shell out to `aliyun lhm` and would fail at the first call, so a successful `uv tool install` > is never evidence that the environment is usable. Equally, do **not** ask the user for the source/target > data source name or any other business parameter while the plugin is unavailable — collecting an answer > that cannot be used only wastes a round trip.
**Every invocation must follow this order** (the plugin pre-gate and Step 0 must not be skipped):
# ── Step 0: unconditionally reinstall all CLIs required by the current stage (mandatory every time) ── # stage all (default): install all four CLIs (cd skill/lhm-sch-env && bash install.sh) (cd skill/lhm-sch-ds && bash install.sh) (cd skill/lhm-sch-read-exec && bash install.sh) (cd skill/lhm-sch-deploy && bash install.sh) # If only a specific stage is needed, install only the CLIs it uses: # --stage ds → only lhm-sch-env + lhm-sch-ds # --stage read-exec → only lhm-sch-env + lhm-sch-read-exec # --stage deploy → only lhm-sch-env + lhm-sch-deploy # # ⚠️ --stage also decides which business fields are mandatory: # --stage ds → migration source/target data source names are NOT required (a data-source-only # session never runs the migration chain, so demanding them would falsely report # "session not ready" and push the caller into asking the user for unrelated #
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 (CMA / ManagedAgents). Use for Bailian Managed Agent product…
Alibaba Cloud Parse-X intelligent document parsing and extraction tool. Supports two capabilities: (1) Parse — convert documents, images, and audio/video to…
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),…
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API version 2026-05-20. Use when requests concern AgentLoop datasets, data…
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews, saved evaluator and evaluator-skill management, one-shot sample…
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through the bundled SearchContext CLI whenever the user asks or implies…