Skip to main content
skill CX Codex

alibabacloud-sls-query — Claude Code skill: install and usage

Helps write, optimize, and run index searches, SQL analytics, and SPL pipelines in Alibaba Cloud Simple Log Service through the aliyun CLI.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-query -a claude-code
Open on GitHub

What alibabacloud-sls-query does

The skill translates plain language requests into Alibaba Cloud Simple Log Service queries. It constructs index filters, SQL aggregations, or SPL pipelines, then runs them against your Logstore via the aliyun CLI. Before building a statement, the agent inspects logstore indexing through the get-index call.

This schema inspection prevents invalid queries. When a field lacks indexing or has disabled statistics, the tool avoids aggregations that would fail on the server. You need an updated Aliyun CLI with an active profile and RAM permissions for log reading.

If the Logstore has no index configured, every query call fails immediately, so index setup must happen before running this skill.

What it helps with

  • write index search filters for raw logs
  • aggregate error metrics using SQL
  • verify Logstore index configuration
  • execute log queries via aliyun CLI

Example prompts for the agent

  • Find payment failure logs from the last hour in my Logstore
  • Group log records by HTTP status and count total events
  • Check the index settings for my project and logstore

How to install alibabacloud-sls-query

1Skills CLI (Vercel)

npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-query -a claude-code

2Manually: put the files in place

~/.claude/skills/alibabacloud-sls-query/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/alibabacloud-sls-query/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about alibabacloud-sls-query

How to install alibabacloud-sls-query in Claude Code?

Run npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-query -a claude-code in your terminal.

What does alibabacloud-sls-query do?

It turns log search requests into SLS queries, checks index configurations, and retrieves log data via the aliyun CLI.

What credentials and permissions are required?

You must configure the Aliyun CLI with an active profile and grant RAM permissions for reading logs and index settings.

Similar skills

Everything for Cloud: AWS, Azure, GCP →

From the same set6

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor