一键导入
idmp-attribute
IDMP attribute skill for reading definitions and values, checking history, evaluating expressions, reserving names, and safely writing test data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
IDMP attribute skill for reading definitions and values, checking history, evaluating expressions, reserving names, and safely writing test data.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
根据 IDMP Demo 场景的输出物(调研报告、资产树、面板配置、分析规则等),自动生成 TDengine IDMP 行业场景博客。此技能在 idmp-easyuse 全流程完成后需要输出宣传博客时触发。
IDMP总控编排技能 - 核心枢纽技能。根据用户需求(无论是无文件输入的场景Demo生成,还是带有文件/明确业务数据的具体接入),实现"一键式"自动化编排。静默调度 idmp-sample-data-generator、MCP 可视化工具链和 idmp-analysis-creator 完成全流程(行业调研 -> 数据生成 -> 告警分析 -> 面板创建)。
高度自动化的 IDMP 数据建模与加载工具。支持基于调研文档设计(industry_research.md)或自然语言描述,进行分层资产建模、超级表设计、时序数据模拟及端到端自动化加载与执行。
将 IDMP 系统的元素层级结构导出为标准化的递归嵌套 JSON 文件。输出文件应包含每个元素的 id、name、template_id。当用户需要分析 IDMP 的资产结构、同步资产树或为其它技能准备 IDMP 拓扑信息时触发。
Client-side telemetry reporter for Skill invocations. Sends usage events to telemetry-server when any Skill is activated. Keywords: telemetry, usage report, skill tracking
协助部署 TDGPT 模型,包括环境配置、网络接入、依赖项安装以及模型验证。触发关键词:部署 tdgpt,部署 TDengine GPT,部署大模型,tdgpt 部署。
| name | idmp-attribute |
| description | IDMP attribute skill for reading definitions and values, checking history, evaluating expressions, reserving names, and safely writing test data. |
| metadata | {"author":"TaosData","version":"0.4.0","owner_team":"AI","requires":{"bins":["idmp-cli"]},"cliHelp":"idmp-cli attribute --help"} |
Read ../idmp-shared/SKILL.md first.
Before any write: Follow the 🛑 Destructive op confirmation protocol. Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
| Shortcut | Purpose |
|---|---|
+list | Read attribute definitions before value or history work. |
+get | Read one attribute's current value. |
+data | Read multiple current values in one request. |
+history | Read historical data for one attribute. |
attributes.data-get or data-post only when needed.new-name without --ack-risk before creating an attribute.attribute evaluate-expression create before saving a formula or expression.write-data only when you need controlled test input on a metric-backed attribute.| Context | Why it must be resolved before create or write |
|---|---|
| Owner element | You need the final elementId before you can reserve names, create the attribute, or reread definitions and values. |
| Candidate attribute name | attribute attributes new-name only works after the owner is fixed. |
| Attribute type plan | You need the intended valueType and whether the attribute is only metadata, expression-backed, or a metric-backed writable reference. |
| Write target | Decide whether write-data should target an existing TDengine metric reference rather than the newly created attribute. |
| Verification and cleanup target | Decide how you will prove create success, how you will reread written data, and which temporary attribute must be deleted at the end. |
attribute attributes new-name only needs the owner scope, but attributes-post must use the final reserved name and a real valueType.attribute evaluate-expression create, and the schema path is attribute.evaluate-expression.create; the older guessed attribute.attributes.evaluate-expression path is wrong.attribute.attributes.evaluate-expression path; use idmp-cli attribute evaluate-expression create --dry-run --ack-risk --params for the real request.attribute evaluate-expression create needs a request body with at least dataReferenceType and expression. The live-safe starter is {"dataReferenceType":"Formula","expression":"..."}; attributeId and uomId are optional context helpers, not substitutes for the formula text.attribute write-data create can fail with etda390037 unless the target attribute is backed by writable metric storage.attribute historydata list should use explicit start and end bounds instead of relying on ambient defaults.attributes reread shows the new definition.attrTempId, the generic attribute elements attributes-delete path is expected to reject the delete while the backing template exists.attribute elements attributes --params rereads the new definition under the same owner.data-get, data-post, or bounded historydata list returns the intended attribute data.idmp-cli schema attribute.elements.attributes
idmp-cli attribute elements attributes --params '{"elementId":1}'
idmp-cli schema attribute.attributes.new-name
# new-name is read-only (reserves a name); no --ack-risk required
idmp-cli attribute attributes new-name --params '{"elementId":1}'
idmp-cli schema attribute.elements.attributes-post
idmp-cli attribute elements attributes-post --ack-risk --params '{"elementId":1}' --data '{"name":"probe-attribute","valueType":"Double"}'
idmp-cli schema attribute.evaluate-expression.create
idmp-cli attribute evaluate-expression create --params '{"elementId":1}' --data '{...}' --dry-run --ack-risk
idmp-cli schema attribute.attributes.data-get
idmp-cli attribute attributes data-get --params '{"elementId":1,"attributeId":2}'
idmp-cli schema attribute.historydata.list
idmp-cli attribute historydata list --params '{"elementId":1,"attributeId":2,"current":1,"size":20,"start":1704067200000,"end":1704153600000}'
attributes, do not guess the ID from older notes or scripts.new-name returns a different candidate, use the reserved value instead of forcing the original name.etda390037, switch to a known metric-backed attribute; do not assume the newly created attribute is writable.idmp-cli schema attribute.elements.attributes and idmp-cli attribute elements attributes --params '{"elementId":1}'.idmp-cli attribute attributes new-name --params '{"elementId":1}'.idmp-cli attribute attributes data-get --params '{"elementId":1,"attributeId":2}'.idmp-cli attribute attributes new-name --params '{"elementId":1}', then verify the create path with idmp-cli attribute elements attributes-post --ack-risk --params '{"elementId":1}' --data '{"name":"probe-attribute","valueType":"Double"}'.idmp-cli attribute historydata list --params '{"elementId":1,"attributeId":2,"current":1,"size":20,"start":1704067200000,"end":1704153600000}', then use idmp-cli attribute write-data create --dry-run --ack-risk --params '{"elementId":1}' --data '{"probe":"example"}' only after confirming the target attribute is a writable metric reference and idmp-cli attribute evaluate-expression create --params '{"elementId":1}' --data '{"dataReferenceType":"Formula","expression":"AVG(${attributes['"'"'Current'"'"']})"}' --dry-run --ack-risk already succeeded.