/alibabacloud-emas-apm-remotelog
EMAS APM Remote Log (TLog) CLI Skill. Use for remote log retrieval, task management, and log query operations via Alibaba Cloud CLI. Triggers: "EMAS APM", "remote log", "tlog", "log retrieval", "log collection", "get-tlog-device-list", "create-tlog-task", "search-tlog", "mobile
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-emas-apm-remotelog --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-emas-apm-remotelog
Context preview
The summary Claude sees to decide when to auto-load this skill.
EMAS APM Remote Log (TLog) CLI Skill. Use for remote log retrieval, task management, and log query operations via Alibaba Cloud CLI. Triggers: "EMAS APM", "remote log", "tlog", "log retrieval", "log collection", "get-tlog-device-list", "create-tlog-task", "search-tlog", "mobile
SKILL.md
alibabacloud-emas-apm-remotelog.SKILL.mdname: alibabacloud-emas-apm-remotelog
description: |
EMAS APM Remote Log (TLog) CLI Skill. Use for remote log retrieval, task management, and log query operations via Alibaba Cloud CLI.
Triggers: "EMAS APM", "remote log", "tlog", "log retrieval", "log collection", "get-tlog-device-list", "create-tlog-task", "search-tlog", "mobile app log".
EMAS APM Remote Log (TLog) CLI Skill
Scenario Description
This skill enables remote log retrieval (TLog) operations for mobile applications managed by Alibaba Cloud EMAS APM (Application Performance Monitoring). It provides a complete workflow to:
1. **Resolve target devices** by device ID, user nickname, user ID, or custom ID 2. **Create remote log retrieval tasks** to trigger log collection from end-user devices 3. **Track task progress** including overall task status and per-device collection status 4. **Query log details** by device and time window with level and keyword filtering 5. **Query actively submitted logs** for user-initiated log uploads
**Architecture**: EMAS Console + Mobile App (with TLog SDK) + EMAS APM Service + Alibaba Cloud CLI (`emas-appmonitor` plugin)
**Key Components**:
- **Device Side**: Mobile apps integrated with EMAS TLog SDK (Android/iOS)
- **Server Side**: EMAS APM backend service for task dispatch and log storage
- **Client Side**: Alibaba Cloud CLI with `aliyun-cli-emas-appmonitor` plugin for API operations
Installation
**Pre-check: Alibaba Cloud CLI >= 3.3.3 required**
aliyun version
# If not installed or version too low (script served by Alibaba Cloud official CDN over HTTPS):
curl -fsSL --connect-timeout 10 --max-time 120 https://aliyuncli.alicdn.com/setup.sh | bash
aliyun version
> **Security note** — the one-liner above pipes a remote script directly into `bash`. The script is hosted on Alibaba Cloud's official CDN (`aliyuncli.alicdn.com`) and served over HTTPS, so transit is authenticated. However, if your environment requires inspecting installer scripts before execution (security-hardened CI, regulated workloads, multi-tenant hosts), use the safer two-step flow in [references/cli-installation-guide.md](references/cli-installation-guide.md#safer-installation-flow) — download → inspect → execute. Do **not** run this command with elevated privileges (e.g. as root); the installer does not require it.
**Pre-check: Alibaba Cloud CLI plugin update required**
aliyun configure set --auto-plugin-install true
aliyun plugin update
**Install EMAS APM Plugin**
aliyun plugin install --names aliyun-cli-emas-appmonitor
aliyun plugin list | grep emas-appmonitor # Verify version >= 0.3.1
> For detailed installation instructions, see [references/cli-installation-guide.md](references/cli-installation-guide.md)
AI-Mode Lifecycle Management
> **[MUST] AI-Mode** — AI-mode is required for Agent Skill execution. > Run the following commands before any CLI invocation: > ```bash > aliyun configure ai-mode enable > aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-emas-apm-remotelog" > ``` > **[MUST] Disable AI-Mode at EVERY exit point** — Before delivering the final response for ANY reason, always disable AI-mode first. > ```bash > aliyun configure ai-mode disable > ```
Credential Verification
> **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 > > **Data Safety**: Do not save real AccessKeys in command-line parameters, scripts, or logs. Authentication is fully delegated to CLI profiles.
RAM Policy
> **Required Permissions**: See [references/ram-policies.md](references/ram-policies.md) for the complete list of RAM permissions required by each API. > > **Quick Reference**: > > | Permission | API | > |------------|-----| > | `apm:GetTlogDeviceList` | Query available devices | > | `apm:GetTlogDeviceInfo` | Get device details | > | `apm:CreateTlogTask` | Create log retrieval task | > | `apm:GetTlogTaskInfo` | Query task status | > | `apm:GetTlogTaskCollections` | Query device collection status | > | `apm:SearchTlog` | Query log details | > | `apm:GetTlogCollectList` | Query active submission records | > > **System Policies**: `AliyunEMASFullAccess` or `AliyunEMASReadOnlyAccess` > > **[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
Parameters Requiring User Confirmation
> **IMPORTANT: Parameter Confirmation** — Before executing any command or API call, > ALL user-customizable parameters (e.g., AppKey, OS type, device identifiers, > task names, time windows, etc.) MUST be confirmed with the user. Do NOT assume or use > default values without explicit user approval. > > **[MUST] RegionId is fixed** — EMAS APM service is ONLY available in `cn-shanghai`. > Always pass `--region cn-shanghai` regardless of the credential's defa
Read more
name: alibabacloud-emas-apm-remotelog description: | EMAS APM Remote Log (TLog) CLI Skill. Use for remote log retrieval, task management, and log query operations via Alibaba Cloud CLI. Triggers: "EMAS APM", "remote log", "tlog", "log retrieval", "log collection", "get-tlog-device-list", "create-tlog-task", "search-tlog", "mobile app log".
EMAS APM Remote Log (TLog) CLI Skill
Scenario Description
This skill enables remote log retrieval (TLog) operations for mobile applications managed by Alibaba Cloud EMAS APM (Application Performance Monitoring). It provides a complete workflow to:
1. **Resolve target devices** by device ID, user nickname, user ID, or custom ID 2. **Create remote log retrieval tasks** to trigger log collection from end-user devices 3. **Track task progress** including overall task status and per-device collection status 4. **Query log details** by device and time window with level and keyword filtering 5. **Query actively submitted logs** for user-initiated log uploads
**Architecture**: EMAS Console + Mobile App (with TLog SDK) + EMAS APM Service + Alibaba Cloud CLI (`emas-appmonitor` plugin)
**Key Components**:
- **Device Side**: Mobile apps integrated with EMAS TLog SDK (Android/iOS)
- **Server Side**: EMAS APM backend service for task dispatch and log storage
- **Client Side**: Alibaba Cloud CLI with `aliyun-cli-emas-appmonitor` plugin for API operations
Installation
**Pre-check: Alibaba Cloud CLI >= 3.3.3 required**
aliyun version # If not installed or version too low (script served by Alibaba Cloud official CDN over HTTPS): curl -fsSL --connect-timeout 10 --max-time 120 https://aliyuncli.alicdn.com/setup.sh | bash aliyun version
> **Security note** — the one-liner above pipes a remote script directly into `bash`. The script is hosted on Alibaba Cloud's official CDN (`aliyuncli.alicdn.com`) and served over HTTPS, so transit is authenticated. However, if your environment requires inspecting installer scripts before execution (security-hardened CI, regulated workloads, multi-tenant hosts), use the safer two-step flow in [references/cli-installation-guide.md](references/cli-installation-guide.md#safer-installation-flow) — download → inspect → execute. Do **not** run this command with elevated privileges (e.g. as root); the installer does not require it.
**Pre-check: Alibaba Cloud CLI plugin update required**
aliyun configure set --auto-plugin-install true aliyun plugin update
**Install EMAS APM Plugin**
aliyun plugin install --names aliyun-cli-emas-appmonitor aliyun plugin list | grep emas-appmonitor # Verify version >= 0.3.1
> For detailed installation instructions, see [references/cli-installation-guide.md](references/cli-installation-guide.md)
AI-Mode Lifecycle Management
> **[MUST] AI-Mode** — AI-mode is required for Agent Skill execution. > Run the following commands before any CLI invocation: > ```bash > aliyun configure ai-mode enable > aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-emas-apm-remotelog" > ``` > **[MUST] Disable AI-Mode at EVERY exit point** — Before delivering the final response for ANY reason, always disable AI-mode first. > ```bash > aliyun configure ai-mode disable > ```
Credential Verification
> **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 > > **Data Safety**: Do not save real AccessKeys in command-line parameters, scripts, or logs. Authentication is fully delegated to CLI profiles.
RAM Policy
> **Required Permissions**: See [references/ram-policies.md](references/ram-policies.md) for the complete list of RAM permissions required by each API. > > **Quick Reference**: > > | Permission | API | > |------------|-----| > | `apm:GetTlogDeviceList` | Query available devices | > | `apm:GetTlogDeviceInfo` | Get device details | > | `apm:CreateTlogTask` | Create log retrieval task | > | `apm:GetTlogTaskInfo` | Query task status | > | `apm:GetTlogTaskCollections` | Query device collection status | > | `apm:SearchTlog` | Query log details | > | `apm:GetTlogCollectList` | Query active submission records | > > **System Policies**: `AliyunEMASFullAccess` or `AliyunEMASReadOnlyAccess` > > **[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
Parameters Requiring User Confirmation
> **IMPORTANT: Parameter Confirmation** — Before executing any command or API call, > ALL user-customizable parameters (e.g., AppKey, OS type, device identifiers, > task names, time windows, etc.) MUST be confirmed with the user. Do NOT assume or use > default values without explicit user approval. > > **[MUST] RegionId is fixed** — EMAS APM service is ONLY available in `cn-shanghai`. > Always pass `--region cn-shanghai` regardless of the credential's defa
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

