idmp-structure-exporter

idmp-structure-exporter is a skill for Claude Code, Codex from taosdata/agent-skills. It costs 74 tokens per session (1,902 once invoked), scanned A, original, MIT.

An exporter for IDMP, a system that represents assets and their parent-child structure. It retrieves a selected part of that structure and saves it as nested JSON containing each element's ID, name, and template ID.

In plain words
What is it for?
Use it to export a named root and its descendants, or to choose the root from sample data. The result can support asset analysis, synchronization, or other IDMP data-processing tasks.
Why use it?
It prevents different tools from having to interpret the same asset hierarchy separately. It also lets developers refresh or limit the exported tree instead of handling the whole system every time.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to export a named root and its descendants, or to choose the root from sample data. The result can support asset analysis, synchronization, or other IDMP data-processing tasks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taosdata/agent-skills/idmp-structure-exporter
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add taosdata/agent-skills --skill idmp-structure-exporter
Clone the repo
git clone --depth 1 https://github.com/taosdata/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for idmp-structure-exporter

README.md
[![agentmods](https://agentmods.dev/badge/skills/taosdata/agent-skills/idmp-structure-exporter/github.svg)](https://agentmods.dev/skills/taosdata/agent-skills/idmp-structure-exporter)
Your own site
<a href="https://agentmods.dev/skills/taosdata/agent-skills/idmp-structure-exporter"><img src="https://agentmods.dev/badge/skills/taosdata/agent-skills/idmp-structure-exporter/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for idmp-structure-exporter

Your own site · 80×15
<a href="https://agentmods.dev/skills/taosdata/agent-skills/idmp-structure-exporter"><img src="https://agentmods.dev/badge/skills/taosdata/agent-skills/idmp-structure-exporter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,902 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00074 $0.01902
Opus 5 $0.00037 $0.00951
Sonnet 5 $0.00015 $0.00380
Haiku 4.5 $0.00007 $0.00190

Measured 10d ago against content hash b304bdd0efaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

idmp-structure-exporter scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/export_idmp_tree.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/idmp-structure-exporter/SKILL.md · 176 lines

How it starts

The opening of the file, as written. The whole thing — 176 lines — stays where its author put it; the contents beside it link to each section on GitHub.

IDMP 资产树导出工具

将 IDMP 系统的元素层级结构导出为标准化的递归嵌套 JSON 文件,供其他技能(如 idmp-sample-data-generator、分析技能)进行程序化读取,解决多技能协作中对资产树认知不统一的问题。

输入要求

参数 是否必需 说明
state.json 路径 推荐 包含 idmp-login 字段的状态文件,由 idmp-easyuse 初始化生成
输出路径 ✅ 必传 导出 JSON 的目标路径,默认文件名 idmp_tree_structure.json
--root-name 二选一 按名称过滤,仅导出指定根节点及其子树
--sample-data 二选一 指定 sample_data.json,自动从中提取 info.name 作为根节点过滤条件
--update 可选 更新模式:从已有输出文件中提取根节点名称并重新拉取最新结构
--api-key 可选 直接使用 API Key 进行鉴权,优先级高于用户名/密码;今优先从 state.jsonidmp-login.api_key 读取
IDMP 登录信息 降级备用 若无 state.json 且无 API Key,从 login_info.txt 或用户输入获取 host、user、password

常见陷阱(Gotchas)

以下规则是 Agent 在没有明确提示时最容易出错的地方,执行前必须阅读。

严禁导出全系统资产树

  • 由其他技能调用时,必须通过 --root-name--sample-data 参数限定导出范围。
  • 仅当用户明确要求"导出全部资产"时,才可省略过滤参数。

脚本路径必须动态定位

  • 本技能的脚本相对位置固定为本 SKILL.md 同级的 scripts/export_idmp_tree.py
  • 执行前必须先定位本 SKILL.md 的绝对路径,并以此推导 SKILL_DIR,严禁硬编码绝对路径。

state.json 与 API Key 优先于直接登录参数

  • 只要存在 state.json,必须通过 --state 参数传入。
  • 脚本会自动从 state.jsonidmp-login.api_key 字段读取 API Key,有则跳过登录流程。
  • 无 API Key 时,降级使用 host/user/password 登录。

输出文件不得覆盖已有有效结果

  • 若输出路径已存在文件,默认应追加时间戳以示区分,或在 --update 模式下原地更新。

执行流程

Telemetry (MUST)

调用 skill-telemetry,传入 name=idmp-structure-exporter version=0.3.0 author=Wang Zhe。 失败不阻塞,但必须尝试。详见 skill-telemetry


第一步:环境检查与登录信息确认

1.1 定位技能脚本目录

本技能脚本相对位置固定(<skill_dir>/scripts/export_idmp_tree.py),但安装路径因环境而异。执行前必须先定位本 SKILL.md 的绝对路径,再以此推导 SKILL_DIR

# 找到本 SKILL.md 的位置,其所在目录即为 SKILL_DIR
SKILL_DIR="$(dirname "$(realpath "<本SKILL.md的绝对路径>")")" 
ls "$SKILL_DIR/scripts/export_idmp_tree.py"

若文件不存在,立即停止并告知用户。

1.2 确定登录凭据来源

按以下优先级获取 IDMP 登录信息:

优先级 来源 说明
1(最高) state.json 中的 idmp-login.api_key 字段 API Key 鉴权,无需登录流程
2 state.json 中的 idmp-login 字段(user/pass) idmp-easyuse 初始化时生成
3 用户指定的登录信息 包含 host、user、password
4(最低) 直接向用户询问 仅在上述三种来源均不可用时执行

Read the full file on GitHub · 176 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 176 lines · 74 tokens per session scan A b304bdd0efaf

Subscribe to this mod's changes

idmp-structure-exporter is a skill published in the GitHub repository taosdata/agent-skills (3 stars, last pushed 3d ago), licensed MIT. It adds 74 tokens to every session and 1,902 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens