# alibabacloud-sls-data-agent

alibabacloud-sls-data-agent — a skill for Claude Code connects SLS DataAgent to Alibaba Cloud Simple Log Service. Turns plain-language queries into log analysis, aggregations, and dashboard summaries.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 111 installs · ★ 300 repo stars
- Author: aliyun
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/storage/sls/alibabacloud-sls-data-agent/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/alibabacloud-sls-data-agent

## What it does

The skill invokes `scripts/call_sls_data_agent.py`, dispatching tasks to the SLS DataAgent OpenAPI with responses delivered over SSE streams. Queries route either to a designated digital employee (falling back to `apsara-ops`) or to specialized sub-skills handling SQL and SPL authoring.

Executions can take several minutes due to multi-step backend analysis, subject to a 30-minute timeout ceiling. Maintaining conversational context requires passing the session thread id via `--thread` in subsequent prompts. The `--pipe` flag is mandatory during invocation to ensure proper delimiter framing for parsed answers.

Running the tool requires packages from `scripts/requirements.txt`, defined `SLS_DATA_AGENT_PROJECT` and `SLS_DATA_AGENT_REGION` environment values, and valid Alibaba Cloud authentication resolved via CLI profiles or environment credentials. Execution halts immediately if target project parameters are missing.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-data-agent -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/alibabacloud-sls-data-agent/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/alibabacloud-sls-data-agent/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-data-agent -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/alibabacloud-sls-data-agent/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-data-agent -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/alibabacloud-sls-data-agent/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install aliyun/alibabacloud-aiops-skills skills/storage/sls/alibabacloud-sls-data-agent
```

2. **Manually: put the files in place**
- File: `.github/skills/alibabacloud-sls-data-agent/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-data-agent -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/aliyun/alibabacloud-aiops-skills --path skills/storage/sls/alibabacloud-sls-data-agent
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/alibabacloud-sls-data-agent/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-data-agent -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/storage/sls/alibabacloud-sls-data-agent/SKILL.md

## When to use it
- generate SQL or SPL queries for Alibaba Cloud logstores
- extract metric trends and aggregate anomalies from raw logs
- produce structured analysis reports from plain language questions
- configure charts and dashboard layouts for log visualization

## Example prompts
- Query the app-logs logstore for 5xx status codes during the last 30 minutes
- Generate an SPL query to filter failed authentication attempts in SLS
- Continue investigation on thread thread-abc123-xyz breaking down latency by region

## Similar
- [dbt-data-transformation](https://affpapa.org/en/nevibecode/skills/dbt-data-transformation.md) — skill · 443 installs
- [bigquery-data-analytics](https://affpapa.org/en/nevibecode/plugins/bigquery-data-analytics.md) — plugin · ★ 53 repo stars
- [data-scientist](https://affpapa.org/en/nevibecode/agents/qdhenry-data-scientist.md) — subagent · ★ 1357 repo stars
- [data-analyst](https://affpapa.org/en/nevibecode/skills/data-analyst.md) — skill · 2700 installs
- [querying-posthog-data](https://affpapa.org/en/nevibecode/skills/querying-posthog-data.md) — skill · 890 installs
- [data-analysis](https://affpapa.org/en/nevibecode/skills/akillness-data-analysis.md) — skill · 601 installs

From the same set: [aliyun/alibabacloud-aiops-skills](https://affpapa.org/en/nevibecode/by/aliyun/alibabacloud-aiops-skills.md) — 66 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
