aliyun/alibabacloud-aiops-skills/alibabacloud-sls-index-config-management
Claude Code and agent skill by aliyun/alibabacloud-aiops-skills
- community
Checking that the SKILL.md file is still in the repository.
Alibaba Cloud SLS (Simple Log Service) index configuration manager skill. Use this skill to help users inspect, create, update, or delete a Logstore index, 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 — all through the aliyun CLI. Triggers: "SLS 索引", "索引配置", "create index", "update index", "delete index", "generate index", "optimize index", "全文索引", "字段索引", "log index config", "aliyun sls index".
Install
npx vskill@latest install aliyun/alibabacloud-aiops-skills/alibabacloud-sls-index-config-managementSKILL.md
The same SKILL.md was published earlier as aliyun/alibabacloud-aiops-skills/alibabacloud-sls-index-config-management.
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
These checks apply when executing cloud operations; log-sample generation can run offline.
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.
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 listto 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.
Observability
Run scripts/user_agent.py once per session to generate the UA, then reuse it for all cloud API commands, including request-only dry runs:
Example generated UA:
Routing the Request
Follow the reference matching the user's request:
| If the user wants to … | Go to | |
|---|---|---|
View / create / update / delete an index, or change a field, TTL, max_text_len, full-text, automatic index discovery, 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 samples | references/generate-index-from-logs.md | |
| Adjust an existing index to support a new query / SQL, reduce cost, or improve write throughput | references/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.
- Preserve discovered indexes. Keep
line.auto_text_keysunchanged on updates unless explicitly requested otherwise; see automatic index discovery. - 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.
Reference Documents
| Document | Description | |
|---|---|---|
| references/manage-index-config.md | Index config format and get / create / update / delete command examples | |
| references/generate-index-from-logs.md | Infer a complete index configuration from user-provided structured log samples | |
| references/optimize-index-config.md | Optimize an existing index for query/SQL workload, cost, and write throughput | |
| references/related-apis.md | GetIndex / CreateIndex / UpdateIndex / DeleteIndex API & CLI reference | |
| related_apis.yaml | Machine-readable dependent API metadata for this skill | |
| references/ram-policies.md | Minimum and complete RAM policies for index management | |
| references/acceptance-criteria.md | CLI invocation acceptance tests | |
| references/cli-installation-guide.md | Aliyun CLI install, auth modes, profiles |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/storage/sls/alibabacloud-sls-index-config-management/SKILL.md
Popularity
- Repository stars
- 216
- Repository forks
- 27
- 7-day trend score
- 27
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aliyun/alibabacloud-aiops-skills/alibabacloud-sls-index-config-management)