Agent skill

Aliyun Arms Query

by cinience in cinience/alicloud-skills

A skill your agent uses when querying distributed traces or application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service).

MITAuto-check passedBusiness, Finance & HR

Install Aliyun Arms Query

skills CLI
$ npx skills add cinience/alicloud-skills --skill aliyun-arms-query -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install cinience/alicloud-skills aliyun-arms-query --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/cinience/alicloud-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/observability/arms/aliyun-arms-query .claude/skills/aliyun-arms-query && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
aliyun-arms-query
GitHub stars
397
Token cost
~1.6k tokens
SKILL.md length
375 words
Files
10 (incl. scripts, references)
Skills in repo
96
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when querying distributed traces or application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service).

  • Works in 5 steps: List traced apps with list_trace_apps.py… → Search traces with time range, service… → Get detail for a specific trace using… → …
  • Querying distributed traces
  • SKILL.md covers Prerequisites, Core Concepts, Quickstart — Search Traces… and Quickstart — Query Metrics…, plus 8 more sections
  • Runs Python scripts from its folder; calls python and python3; reaches api.aliyun.com; needs ALIBABACLOUD_ACCESS_KEY_ID and ALIBABACLOUD_ACCESS_KEY_SECRET

What it does

Aliyun Arms Query is an agent skill from cinience/alicloud-skills. Use when querying distributed traces or application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service). Use for trace search by service/duration/tags, trace detail and method stack retrieval, application listing, and performance metrics queries.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 12 other files, including scripts and reference files (for example `agents/openai.yaml`, `references/api-reference.md` and `references/sources.md`).

It sits in Business, Finance & HR, covering OKRs and executive reporting. It works with Alibaba Cloud and Python. The repository describes itself as: alibaba cloud skills,qwen ,wan and all skills. The licence is MIT.

When your agent uses it

  • Querying distributed traces
  • Application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service)
  • Trace search by service/duration/tags
  • Trace detail and method stack retrieval

Example prompts

  • “/aliyun-arms-query”

Requirements

  • Python 3
  • A credential in ALIBABACLOUD_ACCESS_KEY_SECRET

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. List traced apps with list_trace_apps.py to obtain PID.
  2. Search traces with time range, service name, and optional filters via search_traces.py.
  3. Get detail for a specific trace using its TraceID via get_trace_detail.py.
  4. Inspect method stack for a slow or errored span via get_stack.py (requires TraceID, RpcID, PID).
  5. Query aggregated metrics using PID, metric name, and desired measures/dimensions via query_metrics.py.

What it can do on your machine

Read from SKILL.md and the folder at commit 1818263. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 6 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.aliyun.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • ALIBABACLOUD_ACCESS_KEY_ID
    • ALIBABACLOUD_ACCESS_KEY_SECRET

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Aliyun Arms Query loads about 1.6k tokens when it runs, and up to ~3.5k if it reads all its reference files. Until then it costs about 71 tokens; SKILL.md has 375 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from cinience/alicloud-skills at commit 1818263, republished under its MIT licence (© cinience). 375 words, ~1,589 tokens.

Download SKILL.mdSave it as .claude/skills/aliyun-arms-query/SKILL.md (or your agent's skills folder). This skill also uses 9 other files; get the full folder from GitHub.
name
aliyun-arms-query
description
Use when querying distributed traces or application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service). Use for trace search by service/duration/tags, trace detail and method stack retrieval, application listing, and performance metrics queries.
version
1.0.0

Category: service

ARMS Trace & Metrics Query

Query distributed traces and application performance metrics via ARMS Python SDK.

Prerequisites

  • Install SDK (virtual environment recommended):
bash
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -U alibabacloud_arms20190808 alibabacloud_tea_openapi
  • Configure environment variables:
    • ALIBABACLOUD_ACCESS_KEY_ID
    • ALIBABACLOUD_ACCESS_KEY_SECRET
    • ARMS_REGION_ID (e.g. cn-hangzhou)

Core Concepts

  • Trace query: Search traces by service name, span name, duration, tags, error status. Time range in epoch milliseconds. Supports PID and exclusion filters.
  • Trace detail: Retrieve full span tree for a single TraceID. Supports pagination for large traces.
  • Method stack: Retrieve the method-level call stack for a specific span (requires TraceID, RpcID, and PID).
  • Metrics query: Query predefined metric tables (e.g. appstat.incall) with dimensions, measures, and filters. Requires application PID. Supports ordering.
  • Application PID: Unique app identifier in format xxx@regionId, obtained via ListTraceApps.

Quickstart — Search Traces (Python SDK)

python
import os, time
from alibabacloud_arms20190808.client import Client
from alibabacloud_arms20190808 import models
from alibabacloud_tea_openapi.models import Config

config = Config(
    access_key_id=os.environ["ALIBABACLOUD_ACCESS_KEY_ID"],
    access_key_secret=os.environ["ALIBABACLOUD_ACCESS_KEY_SECRET"],
    region_id=os.environ.get("ARMS_REGION_ID", "cn-hangzhou"),
)
config.endpoint = f'arms.{config.region_id}.aliyuncs.com'
client = Client(config)

end_ms = int(time.time() * 1000)
start_ms = end_ms - 15 * 60 * 1000

request = models.SearchTracesByPageRequest(
    region_id=config.region_id,
    start_time=start_ms,
    end_time=end_ms,
    service_name="my-app",
    min_duration=500,
    page_number=1,
    page_size=20,
)
response = client.search_traces_by_page(request)
for trace in response.body.page_bean.trace_infos:
    print(f"{trace.trace_id}  {trace.duration}ms  {trace.service_name}")

Quickstart — Query Metrics (Python SDK)

python
request = models.QueryMetricByPageRequest(
    region_id=config.region_id,
    metric="appstat.incall",
    start_time=start_ms,
    end_time=end_ms,
    interval_in_sec=60000,
    measures=["rt", "count", "error"],
    dimensions=["rpc"],
    filters=[models.QueryMetricByPageRequestFilters(key="pid", value="xxx@cn-hangzhou")],
    current_page=1,
    page_size=10,
)
response = client.query_metric_by_page(request)
for item in response.body.data.items:
    print(item)

Script Catalog

Search traces
bash
python skills/observability/arms/aliyun-arms-query/scripts/search_traces.py \
  --service-name my-app \
  --last-minutes 15

Optional args: --region, --operation-name, --min-duration, --service-ip, --pid, --error-only, --tag KEY=VALUE (repeatable), --exclusion-filter KEY=VALUE (repeatable), --page, --page-size, --reverse.

Get trace detail
bash
python skills/observability/arms/aliyun-arms-query/scripts/get_trace_detail.py \
  --trace-id 1c34ffee16xxxxxxxx

Optional args: --region, --start, --end, --page, --page-size.

Query metrics
bash
python skills/observability/arms/aliyun-arms-query/scripts/query_metrics.py \
  --metric appstat.incall \
  --pid "xxx@cn-hangzhou" \
  --last-minutes 30

Optional args: --region, --measures (comma-separated), --dimensions (comma-separated), --interval, --page, --page-size, --order-by, --order ASC|DESC.

List traced applications
bash
python skills/observability/arms/aliyun-arms-query/scripts/list_trace_apps.py

Optional args: --region, --app-type TRACE|EBPF, --resource-group-id.

Get span method stack
bash
python skills/observability/arms/aliyun-arms-query/scripts/get_stack.py \
  --trace-id 1c34ffee16xxxxxxxx \
  --rpc-id 0.1 \
  --pid "xxx@cn-hangzhou"

Optional args: --region, --span-id, --start, --end.

Common Metric Names

MetricDescription
appstat.incallInbound call stats (RT, count, error) per endpoint
appstat.outcallOutbound call stats (HTTP, RPC, DB)
appstat.sqlSQL execution stats
appstat.exceptionException stats
appstat.hostHost-level metrics (CPU, memory, load)

Common measures: rt (response time), count (request count), error (error count). Common dimensions: rpc (endpoint), type (call type), exceptionClass.

Show full SKILL.md (131 more words)Show less

Workflow

  1. List traced apps with list_trace_apps.py to obtain PID.
  2. Search traces with time range, service name, and optional filters via search_traces.py.
  3. Get detail for a specific trace using its TraceID via get_trace_detail.py.
  4. Inspect method stack for a slow or errored span via get_stack.py (requires TraceID, RpcID, PID).
  5. Query aggregated metrics using PID, metric name, and desired measures/dimensions via query_metrics.py.

AccessKey Priority

  1. Environment variables: ALIBABACLOUD_ACCESS_KEY_ID / ALIBABACLOUD_ACCESS_KEY_SECRET
  2. Shared credentials file: ~/.alibabacloud/credentials (profile default)

API Discovery

  • Product code: ARMS
  • API version: 2019-08-08
  • Metadata: https://api.aliyun.com/meta/v1/products/ARMS/versions/2019-08-08/api-docs.json

Validation

bash
mkdir -p output/aliyun-arms-query
for f in skills/observability/arms/aliyun-arms-query/scripts/*.py; do
  python3 -m py_compile "$f"
done
echo "py_compile_ok" > output/aliyun-arms-query/validate.txt

Pass criteria: command exits 0 and output/aliyun-arms-query/validate.txt is generated.

Output And Evidence

  • Save artifacts, command outputs, and API response summaries under output/aliyun-arms-query/.
  • Include key parameters (region, PID, TraceID, time range) in evidence files for reproducibility.

References

  • API reference: references/api-reference.md
  • Source list: references/sources.md

© cinience, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 9 other files (scripts, references) in skills/observability/arms/aliyun-arms-query of cinience/alicloud-skills.

  • SKILL.md
  • agents/openai.yaml
  • references/api-reference.md
  • references/sources.md
  • scripts/_common.py
  • scripts/get_stack.py
  • scripts/get_trace_detail.py
  • scripts/list_trace_apps.py
  • scripts/query_metrics.py
  • scripts/search_traces.py

Open the folder on GitHubat commit 1818263

Compare with similar skills

Aliyun Arms Query next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Aliyun Arms Query compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aliyun Arms Query this skillcinience/alicloud-skills397—~1.6kAutomated safety check: PassMIT
Process Mapperalirezarezvani/claude-skills28k—~2.2kAutomated safety check: PassMIT
Fund Operationsdavepoon/buildwithclaude3.6k—~1.1kAutomated safety check: PassMIT
Product Strategistalirezarezvani/claude-skills28k2 repos~1.8kAutomated safety check: PassMIT
Polymarket Tennislivetennisapi/livetennisapi-mcp152—~3kAutomated safety check: PassMIT
Alibabacloud Ecs Sec Userspacealiyun/alibabacloud-ecs-troubleshoot-skills148—~2.6kAutomated safety check: NotesApache-2.0

Similar skills

  • Process Mapper

    alirezarezvani/claude-skills

    A skill your agent uses when a BizOps lead, COO, or process-improvement owner needs to document an end-to-end business process (procurement, employee onboarding, incident handoff…

    28k GitHub stars~2.2k tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Fund Operations

    davepoon/buildwithclaude

    Compute fund KPIs (TVPI, DPI, IRR, MOIC), model carried interest and management fees, and generate LP quarterly update narratives.

    3.6k GitHub stars~1.1k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Product Strategist

    alirezarezvani/claude-skills

    OKR cascade toolkit for product leaders: generates aligned company-to-team OKRs from five strategy types and scores how well they line up.

    28k GitHub starsUsed in 2 repos~1.8k tokens
    Product & Project ManagementAuto-check passed
  • Polymarket Tennis

    livetennisapi/livetennisapi-mcp

    Build observe-only Polymarket and Kalshi tennis market tooling on the polymarket-tennis Python package (MIT) plus the Live Tennis API free tier.

    152 GitHub stars~3k tokensUpdated 3 days ago
    Business, Finance & HRAuto-check passed
  • Alibabacloud Ecs Sec Userspace

    aliyun/alibabacloud-ecs-troubleshoot-skills

    Linux 用户态安全入侵检测与取证工具,专为 AI Agent 设计。自动判断服务器是否被入侵, 提供完整证据链和可执行修复建议。51 个安全分析器覆盖进程/网络/认证/持久化/Rootkit/ 恶意软件/内存取证/容器逃逸等 12 类检测维度,10 个数据采集器全面采集系统状态, 映射 103+ MITRE ATT&CK 技术,支持 standalone/docker/k8s 三种部署模式。

    148 GitHub stars~2.6k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check: notes
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Business, Finance & HRAuto-check passed

More from cinience/alicloud-skills

All 96 skills in this repo
  • Aliyun Skill Creator

    cinience/alicloud-skills

    A skill your agent uses when creating, migrating, or optimizing skills for this alicloud-skills repository.

    397 GitHub stars~2.8k tokensUpdated 2 mo ago
    Auto-check passed
  • Alicloud Acs Agent Sandbox

    cinience/alicloud-skills

    Bootstrap, create, connect to, operate, secure, scale, upgrade, troubleshoot, inspect, and tear down Alibaba Cloud Container Compute Service (ACS) Agent Sandbox environments.

    397 GitHub stars~2.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Alicloud Acs Cluster

    cinience/alicloud-skills

    Create, inspect, connect to, inventory, and delete Alibaba Cloud Container Compute Service (ACS) clusters through the official CS OpenAPI.

    397 GitHub stars~1.7k tokensUpdated 2 mo ago
    Auto-check passed
  • Aliyun Adb Mysql

    cinience/alicloud-skills

    A skill your agent uses when managing Alibaba Cloud AnalyticDB for MySQL (ADB) via OpenAPI/SDK, including the user needs AnalyticDB resource lifecycle and configuration operations, status checks, or…

    397 GitHub stars~708 tokensUpdated 2 mo ago
    Auto-check passed
  • Aliyun Aicontent Generate

    cinience/alicloud-skills

    A skill your agent uses when managing Alibaba Cloud AIContent (AiContent) via OpenAPI/SDK, including the user needs AI content generation or content workflow operations in Alibaba Cloud, including…

    397 GitHub stars~734 tokensUpdated 2 mo ago
    Auto-check passed
  • Aliyun Aimiaobi Generate

    cinience/alicloud-skills

    A skill your agent uses when managing Alibaba Cloud Quan Miao (AiMiaoBi) via OpenAPI/SDK, including the user asks for Alibaba Cloud MiaoBi content operations, including listing resources…

    397 GitHub stars~724 tokensUpdated 2 mo ago
    Auto-check passed

Questions about Aliyun Arms Query

What does Aliyun Arms Query do?

A skill your agent uses when querying distributed traces or application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service). Aliyun Arms Query is an agent skill from cinience/alicloud-skills. Use when querying distributed traces or application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service).

When should I use Aliyun Arms Query?

Aliyun Arms Query fits situations like: querying distributed traces; application metrics in Alibaba Cloud ARMS (Application Real-Time Monitoring Service); trace search by service/duration/tags; trace detail and method stack retrieval.

How do I install Aliyun Arms Query in Claude Code?

Run `npx skills add cinience/alicloud-skills --skill aliyun-arms-query -a claude-code`. Or copy the skill folder (skills/observability/arms/aliyun-arms-query in cinience/alicloud-skills) into .claude/skills/aliyun-arms-query in your project. Claude Code loads it when a task matches its description.

How do I install Aliyun Arms Query in Codex?

Run `npx skills add cinience/alicloud-skills --skill aliyun-arms-query -a codex`. Or copy the skill folder (skills/observability/arms/aliyun-arms-query in cinience/alicloud-skills) into .agents/skills/aliyun-arms-query in your project. Codex loads it when a task matches its description.

Can I use Aliyun Arms Query in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add cinience/alicloud-skills --skill aliyun-arms-query -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aliyun-arms-query, .gemini/skills/aliyun-arms-query, .github/skills/aliyun-arms-query and .opencode/skills/aliyun-arms-query in your project.

What does Aliyun Arms Query need to run?

Going by SKILL.md and its folder, Aliyun Arms Query needs Python for the scripts in its folder, the command-line tools its instructions call (python and python3) and credentials named ALIBABACLOUD_ACCESS_KEY_ID and ALIBABACLOUD_ACCESS_KEY_SECRET. Our summary lists: Python 3; A credential in ALIBABACLOUD_ACCESS_KEY_SECRET.

Does Aliyun Arms Query access the network?

SKILL.md names 1 domain. In commands or code: api.aliyun.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Aliyun Arms Query safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Aliyun Arms Query use?

Aliyun Arms Query is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aliyun Arms Query use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.9k tokens, read only when the agent opens those files.

What are the alternatives to Aliyun Arms Query?

Skills that share tags, products or a category with Aliyun Arms Query: Process Mapper (alirezarezvani/claude-skills, 28k stars), Fund Operations (davepoon/buildwithclaude, 3.6k stars), Product Strategist (alirezarezvani/claude-skills, 28k stars) and Polymarket Tennis (livetennisapi/livetennisapi-mcp, 152 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aliyun Arms Query?

cinience (a GitHub user) maintains it in cinience/alicloud-skills, which has 397 GitHub stars. The repository holds 96 skills in this directory. The repository was last updated on August 11, 2026.

Source: cinience/alicloud-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.