alibabacloud-sls-data-agent-qa
Use the semantic definitions in SLS Source Models or Context Models to identify fields, metrics and business definitions, query and analyze log data, and…
от sdk-team350 установок в других каталогах
Установить alibabacloud-sls-data-agent-qa в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
SLS Data Agent QA
Use the semantic definitions in SLS Source Models or Context Models to explore models, establish data selection criteria, execute queries and validate their results, and answer the user's business questions.
Prerequisites
Requires Python 3.10+ and Alibaba Cloud credentials.
See Python runtime for dependency installation and endpoint configuration.
Model concepts
- Source Model: A factual model organized by SLS Project, containing semantic definitions and query data sources for modeled logs.
- Context Model: A business model that organizes relevant definitions from modeled Logstores in one or more Projects for business analysis, managed under its own model name.
| Model content | Description |
|---|---|
| Schema | Logstore description and field definitions: field names, types and business meanings |
| Overview details | Business descriptions and analysis guidance for a Logstore, which may include data selection rules, differences in business definitions, applicable conditions and limitations |
| Metrics | Metric definitions: names, business meanings and calculation logic |
| Terms | Business term definitions, which may include matching or calculation logic |
| Example queries (Context Model only) | Predefined questions and queries |
| Query data sources | Physical storage locations and mappings from Schemas to those locations, used to determine where queries run |
Model content is organized into Elements. Semantic Elements, such as Schemas and metrics, contain definitions of the same type. Each definition is a Member, such as a field or a metric.
1. Establish the analysis goal and explore the model
Identify the analysis goal, the subjects to analyze and existing constraints from the user's business question. Preserve model names/UUIDs, Projects/Logstores, time ranges and other constraints supplied by the user or context. Explore the model to confirm business definitions and data sources, progressively developing and refining answer branches as evidence becomes available.
An answer branch is a unit of evidence that can be validated independently and supports one finding. Use separate branches for distinct findings; multiple queries or data sources needed for the same finding remain in one branch. Construct queries, validate evidence and record data sources for each branch, then combine the findings into the answer.
Typical scenarios:
- Metrics or statistics: each branch addresses an independent question, such as a metric calculation, trend analysis or data comparison.
- Investigating an observation or its cause: develop branches from discovered clues, with each branch investigating a specific issue.
Model selection
Explicit user choices take precedence over context defaults. If the model choice is unclear or information conflicts, ask the user to clarify; do not select another model or resource on your own.
| Model | Selection criteria and guidance |
|---|---|
| Source Model | When the user explicitly selects a Source Model, or no model has been selected but a current Project/Logstore is available, read Exploring a Source Model and reading definitions. |
| Context Model | When a Context Model name/UUID is provided, or the user explicitly requests a business model, read Exploring a Context Model and reading definitions. |
Exploration and clarification
Follow the preparation steps for the selected model, read relevant definitions as needed and determine the actual query location based on the analysis goal and information gaps. During exploration:
- Before deriving data selection criteria or deciding what to investigate, read the original overview details for the relevant Logstore, if present, to understand its business context, data selection rules and limitations.
- When business definitions or analysis scope require a user decision, explain the options and their differences using verified information and ask the user to choose.
2. Construct queries and gather supporting evidence as needed
2.1 Construct queries
For each answer branch, construct queries from the user's question and the relevant model definitions already obtained. Check what is being measured, the business definitions and the applicable scope.
- Reuse existing logic: When an applicable example query or metric exists, use its data selection and calculation logic to assemble the query.
- Construct a query: Otherwise, write the query from confirmed definitions.
Query structure
A complete query has the form <search-prefix> | <SQL-statement>. The default search prefix is *, and SQL reads the current Logstore through FROM log. When SQL analysis is unnecessary, the query contains only the search prefix.
Specify the log time range through command parameters; do not repeat the same range as a __time__ filter in the search prefix or SQL.
**Mapping metrics and
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл alibabacloud-sls-data-agent-qa?
Use the semantic definitions in SLS Source Models or Context Models to identify fields, metrics and business definitions, query and analyze log data, and answer business questions. Not for inspecting or managing models themselves.
Как установить скилл alibabacloud-sls-data-agent-qa?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл alibabacloud-sls-data-agent-qa запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…