alibabacloud-pai-dlc-job
Alibaba Cloud PAI-DLC (Deep Learning Containers) job management skill. Covers: distributed training job CRUD, monitoring (logs and events), and GPU sanity check. Triggers: "DLC", "PAI-DLC", "create-job", "list-jobs", "get-job", "stop-job", "update-job", "get-pod-logs", "get-job-events", "get-pod-events", "list-job-sanity-check-results".
What this skill does
# PAI-DLC Deep Learning Job Management Manage deep learning training jobs on Alibaba Cloud PAI-DLC (Platform for AI - Deep Learning Containers) service. ## Scenario Description PAI-DLC is a distributed training service provided by Alibaba Cloud's AI Platform PAI, supporting: - **Job Creation and Execution** — Create distributed training jobs for TensorFlow, PyTorch, XGBoost, and other frameworks - **Job Monitoring** — Get job status, logs, events, and monitoring metrics - **Compute Health Check** — Check health status of GPU and other compute devices - **Job Management** — Update and stop jobs **Architecture**: PAI Workspace + DLC Job + Computing Resources (ECS public pay-as-you-go or Lingjun dedicated quota) + AIWorkSpace catalog (images / datasets / code sources / quotas / workspaces). ## Installation Requirements > **Pre-check: Aliyun CLI >= 3.3.1 required** > Run `aliyun version` to verify version >= 3.3.1. If not installed or version is too low, > see [references/cli-installation-guide.md](references/cli-installation-guide.md) for > installation instructions. > Then [Required] run `aliyun configure set --auto-plugin-install true` to enable > automatic plugin installation. > **Note on `--user-agent`:** Every API-invoking `aliyun` command in this skill MUST > include `--user-agent AlibabaCloud-Agent-Skills/alibabacloud-pai-dlc-job`. Client-side helpers > (`aliyun version`, `aliyun configure ...`, `aliyun plugin ...`, > `aliyun <product> --help`) do not invoke remote APIs and therefore do not require > the flag. > **Network timeout & retry (rule `--help` doesn't enforce):** `aliyun` CLI > defaults to 10s connect / 10s read with no retry. For long-running flows > (large list, slow region) explicitly raise via global flags > `--connect-timeout 15 --read-timeout 30 --retry-count 2`. Never rely on the > default for user-confirmed high-risk calls (`stop-job` / `delete-*`). ```bash aliyun version aliyun configure set --auto-plugin-install true aliyun pai-dlc --help aliyun aiworkspace --help >/dev/null 2>&1 || aliyun plugin install --names aliyun-cli-aiworkspace aliyun plugin update aliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-pai-dlc-job" # After session: aliyun configure ai-mode disable ``` ## Environment Variables This skill does not require any custom environment variables. Credentials are handled by the Alibaba Cloud CLI configuration (see Authentication below). Optionally: | Variable | Required | Purpose | |----------|----------|---------| | `ALIBABA_CLOUD_PROFILE` | Optional | Selects a non-default `aliyun configure` profile | | `ALIBABA_CLOUD_REGION_ID` | Optional | Default region when `--region` is omitted (still recommended to pass `--region` explicitly) | Do NOT export `ALIBABA_CLOUD_ACCESS_KEY_ID` / `ALIBABA_CLOUD_ACCESS_KEY_SECRET` from within this session; configure them outside (`aliyun configure` or shell profile). ## Authentication Configuration > **Pre-check: Alibaba Cloud Credentials Required** > > **Security Rules:** > - **NEVER** read, echo, or print AK/SK values (e.g., `echo $ALIBABA_CLOUD_ACCESS_KEY_ID` is FORBIDDEN) > - **NEVER** ask the user to input AK/SK directly in the conversation or command line > - **NEVER** use `aliyun configure set` with literal credential values > - **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** (via `aliyun configure` in terminal > or environment variables in shell profile) > 3. Return and re-run after `aliyun configure list` shows a valid profile ## RAM Permissions > **[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. Use `ram-permission-diagnose` skill to guide the user through requesting the necessary permissions > 3. Pause and wait until the user confirms that the required permissions have been granted For detailed permission list, see [references/ram-policies.md](references/ram-policies.md). **Required Permissions Overview:** | Operation | Required Permission | |-----------|---------------------| | Create Job | `pai:CreateJob` | | List Jobs | `pai:ListJobs` | | Get Job Details | `pai:GetJob` | | Get Pod Logs | `pai:GetPodLogs` | | Get Job Events | `pai:GetJobEvents` | | Update Job | `pai:UpdateJob` | | Stop Job | `pai:StopJob` | | AIWorkSpace Resource Discovery | `paiworkspace:ListWorkspaces` / `paiimage:ListImages,GetImage` / `paidataset:ListDatasets,GetDataset` / `paicodesource:ListCodeSources,GetCodeSource` | > **AIWorkSpace authorization note:** `Image` / `DataSourceId` / `CodeSourceId` / > `WorkspaceId` field values for `create-job` come from the > AIWorkSpace resource-discovery APIs. `--resource-id` (QuotaId) is manually provided by the user. > RAM users MUST hold the corresponding > AIWorkSpace-namespaced permissions listed above (do not abbreviate as `aiworkspace:*`). ## Parameter Confirmation > **Authoritative parameter reference is `aliyun pai-dlc <cmd> --help`** (must-read > before every call). This skill only documents what `--help` does **not** tell > you: cross-field rules, cross-product dependencies, hidden behaviors, business > labels, and reject patterns. Whenever a rule below contradicts `--help`, the > reason is stated inline. > > **Confirm before call:** all user-customizable values (region, names, CIDR, > specs, etc.) MUST be confirmed with the user — never assume defaults. ### Hard rules that override `--help` | Rule | Why this skill overrides `--help` | |------|-----------------------------------| | `--workspace-id` is **always required** | `--help` marks it optional, but server silently falls back to the user's **default workspace** if omitted → job often lands in the wrong workspace. Always confirm with user. | | `--job-specs[].Image` MUST be a verbatim `ImageUri` from `aiworkspace list-images` | Cross-product contract; `--help` only describes the field type. See §7.6 red line. | | `--data-sources[].DataSourceId` from `aiworkspace list-datasets`; `--code-source.CodeSourceId` from `list-code-sources` | Cross-product discovery; `--help` cannot point you to the source product. | | `--resource-id` (QuotaId) is **manually supplied** | No CLI discovery step. | ### Cross-field mutual exclusion (`--help` cannot catch these) - `EcsSpec` ⇄ `ResourceConfig` — within a single TaskSpec, pick exactly one. - `Uri` ⇄ `DataSourceId` — within `--data-sources[]`. - `Uri` ⇄ `CodeSourceId` — within `--code-source`. ### `--job-type` — Worker `Type` hints per framework `--help` lists the 9 legal enum values verbatim. What `--help` doesn't tell you is which `JobSpecs[].Type` roles each framework expects: | `--job-type` | Valid `JobSpecs[].Type` roles | |---|---| | `TFJob` | `Chief` / `PS` / `Worker` / `Evaluator` / `GraphLearn` | | `PyTorchJob` | `Worker` (+ optional `Master`, auto-promoted) | | `MPIJob` | `Worker` + `Master` | | `XGBoostJob` / `OneFlowJob` / `ElasticBatchJob` | `Worker` + optional `Master` | | `RayJob` | `Worker` | | `SlurmJob` / `DataJuicerJob` | framework-specific roles | > **Case-sensitive, no aliases.** `tensorflow`, `pytorch`, `tf-job`, `Pytorch`, > `PYTORCH_JOB`, `Custom`, `CustomJob` — all rejected. > > **No `Custom` enum.** For single-container custom workloads, map to > `PyTorchJob` (most permissive role set). > > **Locked after create:** `JobType` cannot be changed via `update-job`. Full field reference: see [references/related-apis.md](references/related-apis.md). ## Core Workflows ### 7.1 Resource Selection Decision Guide Befo
Related in Cloud & DevOps
appbuilder-action-scaffolder
IncludedCreate, implement, deploy, and debug Adobe Runtime actions with consistent layout, validation, and error handling. Use this skill whenever the user needs to add actions to an App Builder project, understand action structure (params, response format, web/raw actions), configure actions in the manifest, use App Builder SDKs (State, Files, Events, database), deploy and invoke actions via CLI, debug action issues, or implement patterns such as webhook receivers, custom event providers, journaling consumers, large payload redirects, action sequence pipelines, and Asset Compute workers. Also trigger when users mention serverless functions in Adobe context, action logging, IMS authentication for actions, or cron-style scheduled actions.
orchestrating-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. Use this skill when the user needs a multi-step Data Cloud pipeline, cross-phase troubleshooting, or data space and data kit management. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase sf data360 workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching phase-specific skill), the task is STDM/session tracing/parquet telemetry (use observing-agentforce), standard CRM SOQL (use querying-soql), or Apex implementation (use generating-apex).
github-project-automation
IncludedAutomate GitHub repository setup with CI/CD workflows, issue templates, Dependabot, and CodeQL security scanning. Includes 12 production-tested workflows and prevents 18 errors: YAML syntax, action pinning, and configuration. Use when: setting up GitHub Actions CI/CD, creating issue/PR templates, enabling Dependabot or CodeQL scanning, deploying to Cloudflare Workers, implementing matrix testing, or troubleshooting YAML indentation, action version pinning, secrets syntax, runner versions, or CodeQL configuration. Keywords: github actions, github workflow, ci/cd, issue templates, pull request templates, dependabot, codeql, security scanning, yaml syntax, github automation, repository setup, workflow templates, github actions matrix, secrets management, branch protection, codeowners, github projects, continuous integration, continuous deployment, workflow syntax error, action version pinning, runner version, github context, yaml indentation error
sf-datacloud
IncludedSalesforce Data Cloud product orchestrator for connect→prepare→harmonize→segment→act workflows. TRIGGER when: user needs a multi-step Data Cloud pipeline, asks to set up or troubleshoot Data Cloud across phases, manages data spaces or data kits, or wants a cross-phase `sf data360` workflow. DO NOT TRIGGER when: work is isolated to a single phase (use the matching sf-datacloud-* skill), the task is STDM/session tracing/parquet telemetry (use sf-ai-agentforce-observability), standard CRM SOQL (use sf-soql), or Apex implementation (use sf-apex).
fabric-cli
IncludedUse this skill for Fabric.so CLI workflows with the `fabric` terminal command: diagnose/install/login, search or browse a Fabric library, save notes/links/files, create folders, ask the Fabric AI assistant, manage tasks/workspaces, generate shell completion, check subscription usage, produce JSON output, and use Fabric as persistent agent memory. Do not use for Microsoft Fabric/Azure/Power BI `fab`, Daniel Miessler's Fabric framework, Python Fabric SSH, Fabric.js, or textile/fashion fabric.
lark
IncludedLark/Feishu CLI skills: lark-cli operations for docs, markdown, sheets, base, calendar, im, mail, task, okr, drive, wiki, slides, whiteboard, apps, approval, attendance, contact, vc, minutes, event. Use when the user needs to operate Lark/Feishu resources via lark-cli, send messages, manage documents, spreadsheets, calendars, tasks, OKRs, deploy web pages, or any Feishu/Lark workspace operations.