Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aliyun avatar

Alibabacloud Sls Index Config Management

  • 105 installs
  • 208 repo stars
  • Updated August 4, 2026
  • aliyun/alibabacloud-aiops-skills

alibabacloud-sls-index-config-management is a Claude skill that inspects, creates, updates, deletes, generates and optimizes Alibaba Cloud SLS Logstore index configurations via the aliyun CLI.

About

This skill manages index configuration for Alibaba Cloud SLS (Simple Log Service) Logstores. A developer uses it to inspect, create, update or delete a Logstore index, generate an index config from sample logs, or optimize an existing index for a given query workload, throughput and storage cost. All operations run through the aliyun CLI and output both the full JSON config and a human-readable summary.

  • Inspects, creates, updates and deletes SLS Logstore indexes via the aliyun CLI
  • Generates an index config from structured log samples
  • Optimizes an existing index for query/SQL workload, cost and write throughput

Alibabacloud Sls Index Config Management by the numbers

  • 105 all-time installs (skills.sh)
  • Ranked #557 of 1,039 Cloud & Infrastructure skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

alibabacloud-sls-index-config-management capabilities & compatibility

Free skill; requires an Alibaba Cloud account with SLS (billed by Alibaba Cloud).

Capabilities
log index management · index optimization · config generation
Use cases
devops · data analysis
Runs
Runs locally
Pricing
Bring your own API key
From the docs

What alibabacloud-sls-index-config-management says it does

Alibaba Cloud SLS (Simple Log Service) index configuration manager skill.
SKILL.md
generate an index configuration from user-provided structured log samples, and optimize an existing index configuration for given query/SQL workloads, write throughput, and storage cost
SKILL.md
npx skills add https://github.com/aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-index-config-management

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs105
repo stars208
Last updatedAugust 4, 2026
Repositoryaliyun/alibabacloud-aiops-skills

What it does

Manage and optimize Alibaba Cloud SLS Logstore index configurations for query, SQL, cost and write throughput.

Who is it for?

Managing and optimizing SLS Logstore index configurations for query and cost on Alibaba Cloud.

When should I use this skill?

You need to view, build, change, or optimize an SLS Logstore index configuration.

What you get

A Logstore index configuration is created, updated or optimized and returned as complete JSON plus a summary.

By the numbers

  • 3 index scenarios: manage, generate-from-logs, optimize

Files

SKILL.mdMarkdownGitHub ↗

Alibaba Cloud SLS Index Configuration Manager

Scenario Description

Use this skill for SLS Logstore index configuration.

This file only covers trigger-time setup, routing, and cross-scenario safety. Read only the reference document needed for the user's request.

---

Prerequisites

Install Aliyun CLI

Run aliyun version to verify the version is >= 3.3.8. If not installed or outdated, follow references/cli-installation-guide.md to install or update.

Ensure AI Mode Enabled

Before executing any SLS API commands, enable AI-Mode, set User-Agent, and update plugins:

aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-sls-index-config-management"
aliyun plugin update

Check Alibaba Cloud credentials configured

Run aliyun configure list to check if credentials are configured. If no valid profile is shown, STOP here and ask the user to run aliyun configure outside of this session.

Security rules:

  • NEVER read, echo, or print AK/SK values
  • NEVER ask the user to paste AK/SK into the conversation
  • ONLY use aliyun configure list to check credential status

---

RAM Permission Requirements

On Unauthorized error, surface references/ram-policies.md to the user. Do not retry with a different account without explicit confirmation.

---

Routing the Request

After environment and credential checks, classify the user's request and follow the matching reference:

If the user wants to …Go to
View / create / update / delete an index, or change a single field, TTL, max_text_len, full-text on-off, log_reduce, etc.references/manage-index-config.md
Build an index for a Logstore that has none, or rebuild from scratch using user-provided structured log samplesreferences/generate-index-from-logs.md
Adjust an existing index to support a new query / SQL, reduce cost, or improve write throughputreferences/optimize-index-config.md

Mixed requests are common (e.g. "generate an index for these logs and then update it on Logstore X"). Read the relevant scenario docs in order.

---

Global Rules

  • No writes without the scenario reference. Before any write operation, read the relevant reference document and follow its confirmation, full-body, rollback, and timing rules.
  • Use exact SLS CLI names. Product is sls; subcommands and flags are kebab-case. Use references/acceptance-criteria.md only when validating command shape or debugging CLI invocation issues.

Output Format

Every time you present an index configuration to the user — whether from a read (get-index), after a write (create-index / update-index), or during generation/optimization — output both:

1. Complete JSON — the full get-index JSON response (or the equivalent JSON body you are about to submit for a write). Wrap it in a fenced json code block so the user can copy-paste it directly. 2. Human-readable summary

Put the Complete JSON first, then the summary. The summary helps the user understand the config at a glance; the JSON is the authoritative, machine-readable reference they can use for scripting, version control, or future update-index calls.

---

Cleanup

Whether operations succeed or fail, you MUST disable AI-Mode before ending the session:

aliyun configure ai-mode disable

---

Reference Documents

DocumentDescription
references/manage-index-config.mdIndex config format and get / create / update / delete command examples
references/generate-index-from-logs.mdInfer a complete index configuration from user-provided structured log samples
references/optimize-index-config.mdOptimize an existing index for query/SQL workload, cost, and write throughput
references/related-apis.mdGetIndex / CreateIndex / UpdateIndex / DeleteIndex API & CLI reference
related_apis.yamlMachine-readable dependent API metadata for this skill
references/ram-policies.mdMinimum and complete RAM policies for index management
references/acceptance-criteria.mdCLI invocation acceptance tests
references/cli-installation-guide.mdAliyun CLI install, auth modes, profiles

Related skills

Cloud & Infrastructuremonitoringinfra

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.