# alibabacloud-sls-sdk-guidance

Explains how to install and use Alibaba Cloud SLS logging SDKs in each language, and which one fits a given scenario.

Skill by Alibaba Cloud. Category: Shipping and ops.

## Install

Project (for this project only):

```sh
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-sdk-guidance
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

Global (for every project on this machine):

```sh
npx skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-sls-sdk-guidance -g
```

Works with: Claude Code, Codex CLI, Cursor, Antigravity, Copilot CLI, opencode.

## Tags

- Runs on your computer: It runs as a program on your machine, with your access.

## Security audits

- Gen Agent Trust Hub: Pass
- Socket: Pass
- Snyk: Pass

Installs: 111. Installs counted by skills.sh. [Open on skills.sh](https://www.skills.sh/aliyun/alibabacloud-aiops-skills/alibabacloud-sls-sdk-guidance)

## Source

[Open the source](https://github.com/aliyun/alibabacloud-aiops-skills/tree/HEAD/skills/storage/sls/alibabacloud-sls-sdk-guidance). Checked 2026-10-10. This summary may contain AI-generated text, so it can be wrong. Check the source before you rely on it.

## SKILL.md

````markdown
---
name: alibabacloud-sls-sdk-guidance
description: Provide Alibaba Cloud SLS / Aliyun Log SDK installation, quickstart, usage guidance, and SDK selection advice across languages. Use when users ask how to install or use SLS SDKs, choose an SDK for a scenario, write logs, consume logs, query logs, or integrate application logs with Producer, Consumer, or logging framework Appender libraries.
---

# Workflow

1. Read `references/route.md` first.
2. Identify the user's primary intent: install, write logs, consume logs, or query logs.
3. Pick exactly one scenario file from `references/scenarios/` unless the user explicitly asks for comparison across multiple scenarios.
4. Follow references from the scenario file to the relevant SDK `index.md`.
5. Read SDK-level `write-logs.md` or `consume-logs.md` only when the scenario points to it or the user asks for concrete code.
6. Do not scan unrelated SDK directories.
7. When recommending an SDK, explain why it fits and mention when it should not be used.
8. For version-sensitive installation commands, avoid inventing exact latest versions. Use package-manager commands that resolve latest versions, or use version placeholders for Maven/Gradle production examples.
````

- Previous: [alibabacloud-polardbx-ai-assistant](https://syn4pse.dev/terminal/alibabacloud-polardbx-ai-assistant.md)
- Next: [alibabacloud-ecs-patch-management](https://syn4pse.dev/terminal/alibabacloud-ecs-patch-management.md)
- [Terminal](https://syn4pse.dev/terminal.md)
- [Suggest a change](mailto:terminal@syn4pse.dev?subject=Terminal%20suggestion)
