tdengine-create-analysis
БесплатноБез исполняемых скриптовНе проверенUse when an explicit TDengine mutation request requires creating an analysis from structured element, trigger, output, event, and action context.
от 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:
- Inspect any provided context first; reuse it only when it identifies the exact element and current attribute definitions.
- 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.
- Copy attribute names exactly. They are case-sensitive; never translate,
normalize, or guess a name inside
${attributes['name']}. - 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:
- 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_attributebeforecreate_analysiswithreuse_if_exists:false, then use its returned ID and exact name asattr_idand `at
Установить tdengine-create-analysis в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create 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…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic