Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

tdengine-create-analysis

БесплатноБез исполняемых скриптовНе проверен

Use when an explicit TDengine mutation request requires creating an analysis from structured element, trigger, output, event, and action context.

infometaот infometa★ 475 звёзд на GitHub

Об этом скилле

TDengine Create Analysis

Tool Routing

When this skill is loaded, create_analysis is the required creation route. Use this skill to discover the public inputs, build the complete structured request, and call create_analysis directly. Do not call add_analysis first, use it to draft parameters, or retry with it after a structured validation error. add_analysis is only for callers that do not have this skill loaded and therefore need the server-side AI to interpret an unstructured request.

Use this skill when a deterministic analysis definition can be built from public MCP discovery. The workflow is:

discover target and attributes -> read live schema -> choose one trigger
-> read the matching references -> validate IDs and expressions
-> resolve output targets and create derived attributes when required
-> call create_analysis once -> require persisted: true

Analysis Versus Panel

An analysis is a persisted stream-computing task. It is not a dashboard panel and it must not be created for a request that only asks to display a trend, statistic, or chart. For a display request, use create_panel and omit trigger_type, trigger, output, and analysis window fields. Never call create_analysis as a helper while creating an ordinary panel.

The trigger names are easy to confuse with panel terminology:

Public value Frontend meaning Required field
Interval sliding/data-arrival trigger trigger.sliding
Period fixed scheduled trigger trigger.periodTime

Map recurring language to trigger types before building parameters:

User intent Required trigger type
Every N minutes, calculate, average, or aggregate Interval
Every X minutes, calculate over the previous Y Interval
Daily at 08:00 or at the top of every hour Period
On each newly arrived data row DataInput

Interval is the public replacement for the deprecated Sliding discriminator. Use trigger.sliding only for the execution cadence. When the calculation must cover a fixed lookback Y, set output.rollup_window.enabled=true and put Y in output.rollup_window.interval; Java creation does not read a window from the trigger object. A rollup interval does not turn an Interval trigger into Period. Do not emit Period unless the user explicitly asks for calendar/scheduled execution.

Read trigger-types.md for the nine working branches and their boundaries. Read output-event-actions.md for output, child-template, partition-tag, event, rollup, and action rules. Use examples.md as complete public request templates.

Discover with public MCP resources and tools such as idmp://hierarchy, idmp://element-templates, idmp://event-templates, idmp://analysis-algorithms, get_element_context, list_element_attributes, list_events, get_event, and public search tools. Read the live create_analysis input schema before building a request.

Follow this discovery order before choosing a trigger:

  1. Inspect any provided context first; reuse it only when it identifies the exact element and current attribute definitions.
  2. Fill missing context with public discovery calls. Determine whether the target is a leaf or intermediate element and whether the analysis applies to itself or a discovered child template.
  3. Copy attribute names exactly. They are case-sensitive; never translate, normalize, or guess a name inside ${attributes['name']}.
  4. Confirm that the selected trigger is available for that target shape before constructing output fields.

Resolve positive element_id, positive root_element_id, exact names, and public template IDs. Build exactly one trigger branch. Typed output, event, and actions fields use snake_case. The trigger object is a separate compatibility contract: use its exact field names from the live schema and trigger-types.md. Do not infer alternate spellings. Do not invent IDs, copy private generation objects, or call private endpoints.

Output Target Selection

Treat expression attributes as read sources and output targets as write destinations. For example, ${attributes['Current']} reads the source metric, while output.attributes[].attr_id identifies the attribute whose data reference will be replaced with the analysis result. Confusing these roles can silently turn a raw metric into a derived metric.

Choose the output target before any mutation:

  1. When the user asks for a new, derived, calculated, or output attribute, or requests a calculated result without naming an existing destination, create a separate attribute with a calculation-specific business name. After all other request fields have been validated, you must call create_attribute before create_analysis with reuse_if_exists:false, then use its returned ID and exact name as attr_id and `at
Полный SKILL.md на GitHub

Установить tdengine-create-analysis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/examples.mdreferences/output-event-actions.mdreferences/trigger-types.md

FAQ

Что делает скилл tdengine-create-analysis?

Use when an explicit TDengine mutation request requires creating an analysis from structured element, trigger, output, event, and action context.

Как установить скилл tdengine-create-analysis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл tdengine-create-analysis запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить tdengine-create-analysis с