TDengine IDMP
TAOS Data v0.1.1
Manage TDengine IDMP
From the developer
Declared capabilities
- Read
- Write
Not specified in the available declarations: limitations, pricing & account requirements.
Sources & dates
Developer declarations; not independently tested. Listing last checked Dec 1, 2026. Package observed Nov 30, 2026.
Description
From the marketplace listing
Connect to TDengine IDMP with idmp-cli and use packaged skills to explore elements, inspect schemas, model assets, build dashboards, manage alerts, and run safe operational workflows. Requires idmp-cli and an authenticated IDMP profile.
Language: English · Automatically detected from descriptions.
Changes
No changes recorded yet. Follow this plugin to keep track of future changes.
First seen Nov 17, 2026. Last seen Dec 1, 2026.
Similar plugins
Finding similar plugins… Results will appear here automatically.
Browse plugins →Keywords
Files & skills
File archives
Skill instructions
idmp-ai6.82 KB
---
name: idmp-ai
description: "IDMP AI skill. Use it to confirm AI availability and usable data, inspect chat sessions, generate recommended questions or panels, create analyses or panels from prompts, and distinguish chat recording from draft recommendation usage logging."
metadata:
author: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli ai --help"
---
# ai
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## What this skill covers
- Prove AI availability, AI-visible data, chat-session visibility, and generation boundaries before claiming success.
- Keep generation grounded in a real element scope and hand off to non-AI workflows when the backend is empty or unavailable.
## Recommended reference
- [`references/ai-read-flows.md`](references/ai-read-flows.md)
## Missing context to resolve first
- AI backend availability.
- Record policy.
- Whether the operator wants availability only, recommendations, a draft object, or a recorded chat.
- The target element scope for recommend or create requests.
- Whether `record:true` is acceptable.
## Constrained live behaviors
- On AI draft create endpoints, `record` controls recommendation usage logging; it does not save the draft or create a recorded chat session. Analysis draft generation can create output attributes even with `record:false`; inspect those effects after timeout or failed persistence.
- Treat `datasource available list=false` as a hard stop.
- `idmp-cli datasource available list` is the hard availability gate.
- `recommend` can return an empty array.
- `idmp-cli ai anydata list` measures AI-visible data, not chat history.
- `idmp-cli ai chat sessions` is the safest proof that recorded chat is visible.
- `ai recommend create` and `ai recommend create-post` still need `questionType` values from the backend `QuestionType` enum. Use `GENERAL_QUESTION`, `GEN_PANEL_QUESTION`, or `GEN_ANALYSIS_QUESTION`; do not send intuitive aliases such as `PANEL` or `ANALYSIS`.
- Keep the endpoint path in the evidence: `ai recommend create` calls `/api/v1/ai/panels/recommend`, while `ai recommend create-post` calls `/api/v1/ai/prompts/recommend`.
- Recommendation endpoints can return `[]`; classify that as empty output instead of inventing advice.
- If the backend returns a structured error, surface that error verbatim.
- If recommend fails with `Can't parse the value: PANEL to AiGenPromptType`, classify it as a backend contract mismatch instead of datasource or auth unavailability.
- If recorded chat creation complains about an invalid session, retry with `sessionId:null`.
- AI analysis draft creation can time out even when `datasource available list` and `ai anydata list` are healthy; classify `context deadline exceeded` as backend AI/API latency and hand off to structured analysis workflows instead of mutating the request semantics blindly.
## Execution flow
1. Start with `idmp-cli datasource available list` and stop immediately if availability is false.
2. Use `idmp-cli ai anydata list` to prove the AI backend can see usable data instead of assuming data visibility from availability alone.
3. Read `idmp-cli ai chat sessions` before any recorded chat or follow-up AI write so the session state is grounded in a real reread.
4. Use `idmp-cli ai recommend create-post --ack-risk --data` with the final `questionType` locked to `GENERAL_QUESTION`, `GEN_PANEL_QUESTION`, or `GEN_ANALYSIS_QUESTION`, then classify the result as populated, empty, structured failure, or backend contract mismatch.
5. Use `idmp-cli ai create create --ack-risk --data` or `idmp-cli ai create create-post --ack-risk --data` only when a draft object is requested, then prove the response actually contains a generated object before claiming success. If analysis draft creation times out, stop and hand off to the structured analysis workflow instead of claiming AI unavailability.
## Evidence of completion
- Availability is only compPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-analysis9.27 KB
---
name: idmp-analysis
description: "IDMP analysis skill for listing, searching, reading, resuming, and preparing analysis create flows with path, trigger type, sub-template, and output-attribute checks."
metadata:
author: "TAOS Data"
version: "0.5.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli analysis --help"
---
# analysis
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
**Before any write:** Follow the [🛑 Destructive op confirmation protocol](../idmp-shared/SKILL.md#-destructive-op-confirmation-mandatory). Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+list` | Read analyses under one element. |
| `+search` | Search analyses globally, including an empty-keyword starting point. |
## Recommended references
- [`analysis read flows`](references/analysis-read-flows.md)
- [`../idmp-workflow-analysis-create/SKILL.md`](../idmp-workflow-analysis-create/SKILL.md)
- [`../idmp-workflow-alert-create/SKILL.md`](../idmp-workflow-alert-create/SKILL.md)
## Missing context to resolve first
| Context | Why it must be resolved before create or resume |
| --- | --- |
| Final owner and mode | You need the exact `elementId` or `elementTemplateId` before you can choose the right command family or reserve a name. |
| Business root | Element-mode analysis creates still need `rootElementId` from the business root, even when the real owner moves to a data-bearing leaf. Prove that root with `element elements path` plus `element fullpath get` before you send the create payload. |
| Candidate analysis name | `analysis.analyses.new-name` and `analysis-template.analyses.new-name` require a candidate `name`. |
| Trigger scope | You need to know `applyOnSelf`, child-template scope, and which trigger type is valid after that choice. |
| Output plan | Decide whether to reuse or create output attributes, which `valueType` they need, and whether they land on self or child scope. |
| Runtime target | Decide whether `Ready` is acceptable or whether the final workflow must end in `Running` and therefore needs `resume`. |
## Constrained live behaviors
- Prefer `POST /api/v1/ai/analysis/create` for natural-language analysis or alert intents, then persist the returned draft through the normal create path. Use the structured DTO workflow as the fallback when the draft is unsuitable or persistence fails.
- `analysis.analyses.new-name` and `analysis-template.analyses.new-name` require a candidate `name` and `--ack-risk`; do not call them with only the owner scope.
- In element mode, `rootElementId` comes from the business root rather than the current leaf element.
- Shared environments can force analysis creation onto a data-bearing leaf when `trigger-types list` is empty on the current owner.
- Child scope does not inherit self-scope triggers. When `applyOnSelf=false`, the backend can legitimately expose only `Session` and `Interval`, so do not assume `DataInput` or `Event` will stay available.
- Minimal create payloads need `rootElementId`, `startAfterCreated`, a valid `trigger`, and real `output.attributes[].attrId` values. For current live `ELE_SUBET` flows, child-scope analyses can use owner-element output attributes while `output.elementTemplate.id` continues to point at the child template.
- AI analysis drafts can create output attributes even with `record:false`; inspect existing attributes before retrying after a timeout.
- Analysis create is not complete until `get`, `list`, and, when needed, `resume` prove the backend kept the object in the expected runtime state.
- Current live backends can return success for analysis delete while the generated output attributes remain referenced. Once create, reread, and `resume` prove the analysis itself worked, classify leaked output-attribute cleanup as a backend boundary instead of a wrong create payload.
- If the woPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-annotation4.68 KB
---
name: idmp-annotation
description: "IDMP annotation skill. Use it to read and write element annotations while keeping element annotations separate from event annotations."
metadata:
author: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli annotation --help"
---
# annotation
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## What this skill covers
- Read, create, update, and delete annotations attached to elements.
- Keep element annotations separate from event annotations, which use the `event annotations *` family.
- Use annotation IDs for follow-up changes after the initial list read.
- Use filtered rereads by `content` or time window to prove the exact note you just changed.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+list` | List annotations for one element, optionally filtered by content |
## Recommended reference
- [`Annotation read flows`](references/annotation-read-flows.md)
## Missing context to resolve first
| Context | Why it must be resolved before mutation |
| --- | --- |
| Annotation scope | Decide whether the note belongs to an element or an event before choosing the command family. |
| Owner element | Element annotation create needs the final `elementId`. |
| Target annotation ID | Update and delete need `annotationId`, not the element ID. |
| Verification plan | Decide how you will reread the annotation list after create, update, and delete. |
## Constrained live behaviors
- `annotation annotation create` writes element annotations only; event notes use the `event annotations *` family.
- `annotation annotation update` and `annotation annotation delete` act on `annotationId`, not on the owner element.
- Annotation writes are not complete until `annotation annotation list` reread shows the expected text or confirms deletion.
- `annotation annotation list` supports `content`, time windows, and small page sizes, so use filtered rereads before widening to the full page.
- `annotation annotation list` time-window filters expect epoch milliseconds, even though `annotation annotation update` can return a timestamp string. Convert the returned time before you feed it back into `updateTimeFrom` or `updateTimeTo`.
- Disposable debug notes should be deleted when the workflow ends so shared environments do not accumulate stale annotations.
## Operator workflow
1. Use this skill for element annotations only.
2. If the operator is discussing an event timeline, switch to `event annotations *`.
3. Read the element annotation list first and capture the `annotationId` before any update or delete.
4. `update` and `delete` operate on the annotation record, not on the element itself.
5. Re-read with a `content` filter first, then widen to the unfiltered first page if needed, to confirm the final text and timestamps.
6. When you need an `updateTime*` filter after `update`, normalize the returned timestamp to epoch milliseconds before the reread.
## Key commands
```bash
idmp-cli schema annotation.annotation.list
idmp-cli annotation annotation list --params '{"elementId":123,"current":1,"size":20}'
idmp-cli annotation annotation list --params '{"elementId":123,"content":"copilot note","current":1,"size":1}'
idmp-cli schema annotation.annotation.create
idmp-cli annotation annotation create --ack-risk --data '{...}'
idmp-cli schema annotation.annotation.update
idmp-cli annotation annotation update --ack-risk --data '{...}'
idmp-cli schema annotation.annotation.delete
idmp-cli annotation annotation delete --ack-risk --params '{"annotationId":456}'
```
## Exception paths
- The list is empty: treat that as “no annotations yet,” not as a product failure.
- Reads return 404 or permission errors: verify the `elementId` and the current user’s access level.
- Update or delete fails unexpectedly: confirm you passed `annotationId`, not `elementId`.
- The operator expected event notes: switch to `event annotaPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-attribute7.59 KB
---
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: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli attribute --help"
---
# attribute
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
**Before any write:** Follow the [🛑 Destructive op confirmation protocol](../idmp-shared/SKILL.md#-destructive-op-confirmation-mandatory). Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| [`+list`](references/idmp-attribute-list.md) | Read attribute definitions before value or history work. |
| [`+get`](references/idmp-attribute-get.md) | Read one attribute's current value. |
| [`+data`](references/idmp-attribute-data.md) | Read multiple current values in one request. |
| [`+history`](references/idmp-attribute-history.md) | Read historical data for one attribute. |
## Recommended references
- [`references/idmp-attribute-evaluate-expression.md`](references/idmp-attribute-evaluate-expression.md)
## Product-style workflow
1. Read definitions with `attributes`.
2. Read current values with `data-get` or `data-post` only when needed.
3. Run `new-name` without `--ack-risk` before creating an attribute.
4. Run `attribute evaluate-expression create` before saving a formula or expression.
5. Use `write-data` only when you need controlled test input on a metric-backed attribute.
## Missing context to resolve first
| 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. |
## Constrained live behaviors
- `attribute attributes new-name` only needs the owner scope, but `attributes-post` must use the final reserved name and a real `valueType`.
- The expression-preview command family is `attribute evaluate-expression create`, and the schema path is `attribute.evaluate-expression.create`; the older guessed `attribute.attributes.evaluate-expression` path is wrong.
- Older checks may still mention the guessed `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.
- A newly created generic attribute is not automatically a TDengine metric reference. `attribute write-data create` can fail with `etda390037` unless the target attribute is backed by writable metric storage.
- In strict live validation, `attribute historydata list` should use explicit `start` and `end` bounds instead of relying on ambient defaults.
- Attribute create is not complete until `attributes` reread shows the new definition.
- Template-derived attributes are not generic scratch objects. If an attribute still has `attrTempId`, the generic `attribute elements attributes-delete` path is expected to reject the delete while the backing tPreview of the first 4,000 characters. Read full instructions →
Referenced files: 5 — file references are metadata, not package contents.
idmp-dashboard6.27 KB
---
name: idmp-dashboard
description: "IDMP dashboard skill for listing dashboards, reading details, updating layout and order, templating stable dashboards, and keeping dashboard lifecycle separate from panel lifecycle."
metadata:
author: "TAOS Data"
version: "0.6.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli dashboard --help"
---
# dashboard
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
**Before any write:** Follow the [🛑 Destructive op confirmation protocol](../idmp-shared/SKILL.md#-destructive-op-confirmation-mandatory). Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+list` | List dashboards under one element. |
| `+search` | Search dashboards globally. |
| `+templates` | List dashboard templates available to one element. |
## Recommended reference
- [`dashboard read flows`](references/dashboard-read-flows.md)
- [`../idmp-workflow-panel-build/SKILL.md`](../idmp-workflow-panel-build/SKILL.md)
## Missing context to resolve first
| Context | Why it must be resolved before create or update |
| --- | --- |
| Owner element | You need the final `elementId` before you can list, get, create, reorder, or template dashboards. |
| Candidate dashboard name | `dashboard.dashboards.new-name` requires both `elementId` and a proposed `name`. |
| Panel placement plan | Decide which panel IDs should appear in the dashboard and whether panel creation must happen first. |
| Refresh owner | Dashboard refresh belongs in `dashboard.params`, so you need to know whether the dashboard shell owns refresh behavior. |
| Verification target | Decide whether the final proof is layout readback, panel membership, ordering, template readiness, or all of them. |
## Constrained live behaviors
- `dashboard.dashboards.new-name` requires a candidate `name`; do not call it with only the owner scope.
- `refreshInterval` belongs in `dashboard.params`, not in a top-level field.
- Creating a panel does not add it to a dashboard automatically; dashboard membership is a separate update path.
- `make-top` only changes ordering. It does not replace layout edits or dashboard content updates.
- Deleting or editing a dashboard does not delete the underlying panels by itself.
- Removing a panel from a dashboard must be verified by rereading the dashboard layout and the standalone panel inventory; a dashboard update does not delete the panel object.
- After membership changes, reread both the dashboard and the standalone panel inventory before you conclude the change is complete.
## Evidence of completion
- A dashboard create is only complete when `dashboard dashboards get` or `dashboard dashboards list` returns the new shell with the intended owner.
- A layout or membership update is only complete when both the dashboard reread and the standalone panel inventory reflect the intended state.
- Ordering work is only complete when a reread shows the new position; `make-top` does not stand in for broader layout proof.
## Product behavior to preserve
- Read `list` first, then `get`, before changing a dashboard.
- Use `new-name` with a candidate `name` before creating a dashboard shell.
- `refreshInterval` belongs in `dashboard.params`, not in a top-level field.
- Creating a panel does not add it to a dashboard; dashboard membership is managed separately.
- Deleting or changing a dashboard does not delete the underlying panels by itself.
- After removing a panel from `dashboard.panels`, reread both the dashboard and the panel inventory before you conclude the layout change is complete.
## Key commands
```bash
idmp-cli schema dashboard.dashboards.list
idmp-cli dashboard dashboards list --params '{"elementId":123}'
idmp-cli schema dashboard.dashboards.get
idmp-cli dashboard dashboards get --params '{"elementId":123,"dashboardId":456}'
idmp-cli dashboard dashboards searcPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-data5.87 KB
---
name: idmp-data
description: "IDMP data import/export skill. Use it to inspect exportable root elements, review import/export records, download artifacts, and distinguish package export, artifact download, and import flows."
metadata:
author: "TAOS Data"
version: "0.5.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli data --help"
---
# data
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## What this skill covers
- Discover which top-level elements are available for package import/export.
- Review import/export records before downloading artifacts or investigating failures.
- Distinguish package export, artifact download, package import, and single import/export operations.
- Use records as the operator’s source of truth for status, filenames, and error messages.
- Accept both valid export outcomes: a record-backed artifact or a ZIP archive streamed directly to stdout.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+roots` | List first-level elements visible to import/export |
| `+records` | List import/export records |
| `+download` | Download the artifact for a known record |
## Recommended reference
- [`Data import/export read flows`](references/data-read-flows.md)
## Missing context to resolve first
| Context | Why it must be resolved before import or export |
| --- | --- |
| Workflow type | Package export, package import, and datasource CSV import are different mutation chains. |
| Scope | You need the final `elementIds`, `elementTemplateIds`, or datasource scope before the write. |
| Expected artifact | Exports can either stream a ZIP directly to stdout or create a record that later exposes `fileName`. |
| Datasource context | CSV import needs a validated `connectionId`, `dbName`, and table or stable names from earlier reads. |
| Verification window | Decide when and how you will reread `data records list` after the write. |
## Constrained live behaviors
- Package export, package import, and datasource CSV import must not share guessed payloads or filenames.
- `data records list` is the authoritative confirmation after every write; a quick success response is not the final state.
- `data download get` must use the real record artifact name as the `name` path parameter, not a guessed path.
- A successful export can end in two valid ways: ZIP bytes on stdout or a later record-backed artifact with `fileName`.
- High-impact import or export work should start with schema inspection or `--dry-run` before the real write.
- If a probe import creates assets you do not want to keep, cleanup belongs to the owning asset workflow, not to record deletion.
## Operator workflow
1. Start with `first-level-elements` before any export or import decision.
2. Read `records` before downloading an artifact, reviewing a failure, or confirming the generated filename.
3. Use `import-and-export export` for package creation, `download get` only when a record exposes `fileName`, and `import-and-export import` or `single-import create` for uploads.
4. Expect exports and imports to be long-running or asynchronous; the CLI response alone is not the final confirmation.
5. If export already streamed ZIP bytes to stdout, treat that stream as the artifact and still re-check `records` for audit history.
6. Re-check `records` after every write to confirm status, artifact name, and failure details.
## Key commands
```bash
idmp-cli schema data.first-level-elements.list
idmp-cli data first-level-elements list
idmp-cli schema data.records.list
idmp-cli data records list
idmp-cli schema data.import-and-export.export
idmp-cli data import-and-export export --ack-risk --data '{"elementIds":[123]}'
idmp-cli schema data.download.get
idmp-cli data download get --params '{"name":"export.zip"}'
idmp-cli schema data.import-and-export.import
# `data.import-and-export.import` is multipart/form-data in the current schema.
# Inspect the schema output first and build thePreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-datasource4.42 KB
---
name: idmp-datasource
description: "IDMP datasource skill. Use it to list and inspect connections, verify connectivity before deeper metadata reads, and diagnose database or table visibility issues instead of stopping at the connection list."
metadata:
author: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli datasource --help"
---
# datasource
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## What this skill covers
- Inspect datasource connections, redacted connection details, connectivity probes, database and table discovery, and column metadata.
- Keep read-first metadata diagnosis separate from mutating import workflows.
## Recommended reference
- [`references/datasource-read-flows.md`](references/datasource-read-flows.md)
## Missing context to resolve first
- Credential source.
- Verification rereads.
- Which datasource connection or environment is in scope.
- Which database, table, or stable must be traced.
- Whether the operator wants metadata only or a full model-to-source mapping explanation.
## Constrained live behaviors
- `datasource connections get` can return redacted secrets.
- `datasource check list` is the safe health probe.
- `datasource columninfo create` is a write-like metadata probe.
- Connection reads can be redacted and still be usable for diagnosis.
- Connectivity probes validate reachability, not schema correctness.
- Metadata walks should stay ordered: connection -> connectivity -> databases -> tables -> columns.
- Source-to-model explanations must use the real mapped fields, not guessed TDengine column names.
## Execution flow
1. Start with `idmp-cli datasource connections list`, then lock the exact connection through `connections get`.
2. Run `idmp-cli datasource check list` before deeper diagnosis so connection-health boundaries are explicit.
3. Use `idmp-cli datasource connectivity create --ack-risk --data` only after the target connection is fixed; treat it as live reachability proof, not schema proof.
4. Walk `dbnames -> tablenames -> columninfo` in order so every metadata claim stays grounded in the same database and table scope.
5. Finish by comparing the discovered source fields against the real model mapping rather than guessed TDengine column names.
## Evidence of completion
- A connection diagnosis is only complete when the connection reread and the health probe refer to the same connection ID.
- A metadata claim is only complete when the same database and table survive the `dbnames -> tablenames -> columninfo` chain.
- Redacted connection reads are still valid evidence; never treat masked secrets as missing data.
## Key commands
1. `idmp-cli datasource connections list` to find the target connection.
2. `idmp-cli datasource connections get --params` to inspect the selected connection object.
3. `idmp-cli datasource check list` to read built-in datasource health summaries.
4. `idmp-cli datasource connectivity create --ack-risk --data` to probe live reachability.
5. `idmp-cli datasource dbnames list --params` to enumerate databases.
6. `idmp-cli datasource tablenames list --params` to enumerate tables or stables.
7. `idmp-cli datasource columninfo create --ack-risk --params` to lock the final metadata shape.
## Exception paths
- If connectivity fails, stop before interpreting missing tables as modeling problems.
- If column metadata is missing, show the exact database and table boundary that failed.
- Never unredact or log credentials from a connection read.
## Validation scenarios
### 1. Connection discovery
Start with `idmp-cli datasource connections list`, then pick one connection for deeper reads. The next step should always be a targeted `get`.
### 2. Redaction-aware connection read
Use `idmp-cli datasource connections get --params` and accept masked secrets. Diagnosis can continue without exposing credentials.
### 3. Built-in health check
Run `idmp-cli datasource check list` aPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-element6.71 KB
---
name: idmp-element
description: "IDMP element skill for locating elementId, resolving business-root paths, browsing children, and preparing downstream analysis or panel work."
metadata:
author: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli element --help"
---
# element
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
**Before any write:** Follow the [🛑 Destructive op confirmation protocol](../idmp-shared/SKILL.md#-destructive-op-confirmation-mandatory). Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| [`+list`](references/idmp-element-list.md) | Browse elements under the current `parentId`. |
| [`+get`](references/idmp-element-get.md) | Confirm one element after search or path lookup. |
| [`+tree`](references/idmp-element-tree.md) | Inspect child nodes and tree structure. |
| [`+search`](references/idmp-element-search.md) | Find elements by keyword, root, or parent filters. |
## What this skill solves
- Find a reliable `elementId` before downstream create or update work.
- Resolve the full path so `rootElementId` comes from the business root, not from the current leaf element. Proof: pair `element elements path` with `element fullpath get` and confirm the root is a first-level owner or an explicitly confirmed ancestor.
- Reverse-check a resolved path with `by-path` before handing it to another workflow.
- Read child templates before hierarchy-based analysis or panel work.
- Discover the current shared first-level root from live reads instead of assuming a historical `demo` tree is still present.
- Distinguish plain container create from template-backed create before downstream analysis, panel, or alert workflows.
## Element create paths
- `element.elements.create` is for plain container elements. Use it when you need a parent node without template-backed metrics.
- `element.new.create` is for template-backed elements. Use it when the payload needs `templateId` and `keywordValues`.
- If the template is keyword-backed, confirm the upstream source table already exists before treating the new element as data-bearing.
## Evidence of completion
- A container create is only complete after `element elements get` or `element elements list` rereads the new node under the intended parent.
- A path-resolution task is only complete after `element elements path`, `element fullpath get`, and `element by-path list` agree on the same root-to-leaf record.
- A template-backed create is only complete after reread proves the final template binding and keyword values survived the write.
## Key commands
```bash
idmp-cli schema element.elements.search
idmp-cli element elements search --params '{"keyword":"Chaoyang","current":1,"limitSize":20}'
idmp-cli schema element.elements.path
idmp-cli element elements path --params '{"elementId":123}'
idmp-cli schema element.fullpath.get
idmp-cli element fullpath get --params '{"rootElementId":100,"elementId":123}'
idmp-cli schema element.by-path.list
idmp-cli element by-path list --params '{"elementPath":"Utilities/Beijing/Chaoyang/Device-A"}'
idmp-cli schema element.elements.sub-templates
idmp-cli element elements sub-templates --params '{"elementId":123}'
idmp-cli schema element.elements.create
idmp-cli element elements create --dry-run --ack-risk --data '{"name":"sandbox-parent","parentElementId":123,"referenceType":"ParentChild"}'
idmp-cli schema element.new.create
idmp-cli template +keywords 456
idmp-cli element new create --dry-run --ack-risk --data '{"parentElementId":123,"referenceType":"ParentChild","templateId":456,"keywordValues":{"<TEMPLATE_KEY>":"<existing-source-keyword-value>"},"force":true}'
```
## Recommended sequence
```bash
idmp-cli element elements search --params '{"keyword":"Chaoyang","current":1,"limitSize":20}'
idmp-cli element elements path --paraPreview of the first 4,000 characters. Read full instructions →
Referenced files: 4 — file references are metadata, not package contents.
idmp-event5.54 KB
---
name: idmp-event
description: "IDMP event skill for listing, searching, confirming, resending, annotating, and reading event context through the real unacknowledged-event workflow."
metadata:
author: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli event --help"
---
# event
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
**Before any write:** Follow the [🛑 Destructive op confirmation protocol](../idmp-shared/SKILL.md#-destructive-op-confirmation-mandatory). Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+list` | List events with paging and element filters. |
| `+search` | Search events globally. |
| `+count` | Read the count of unacknowledged events. |
| `+get` | Read one event in detail. |
## Recommended references
- [`event read flows`](references/event-read-flows.md)
- [`../idmp-workflow-alert-create/SKILL.md`](../idmp-workflow-alert-create/SKILL.md)
- [`../idmp-workflow-alert-debug/SKILL.md`](../idmp-workflow-alert-debug/SKILL.md)
## Missing context to resolve first
| Context | Why it must be resolved before mutation |
| --- | --- |
| Failure boundary | Decide whether you are debugging missing event generation, missing delivery, or both. |
| Event scope | You need an `eventId`, an `analysisId`, or a narrow enough search scope to avoid acting on the wrong event. |
| Operator intent | Confirm whether acknowledgement, resend, or annotation is actually allowed in this session. |
| Verification window | Decide which reread window and filters will prove the event was found, acknowledged, or retried. |
## Constrained live behaviors
- `status=Unack` alone is not always reliable in shared environments; when you already know the producer analysis, reread events with `analysisId` before deciding the event is missing.
- Capture event detail and context before you run `confirm` or `resend`; both commands have operator-visible side effects.
- `resend` retries delivery only. It does not acknowledge or recreate the event.
- A successful `resend` does not guarantee a fresh top-level notification-history row. Delivery history is detail-based, can lag, and can be throttled by the event's minimum notification interval.
- Shared environments can surface stale events whose `event events items` call fails because the linked analysis was already deleted; try a fresher event before assuming the CLI path is wrong.
- Create alert rules from [`../idmp-workflow-alert-create/SKILL.md`](../idmp-workflow-alert-create/SKILL.md), not from this event read workflow.
## Product behavior to preserve
- Start with the unacknowledged-event path: count, list/search, detail, context, confirm or resend, then annotations.
- Treat confirm and batch confirm as the real acknowledgement workflow.
- Use `items` to inspect event context before retrying notifications.
- Use `annotations` to keep operator notes with the event.
- Create alert rules from alert workflows, not from the event read workflow.
## Key commands
```bash
idmp-cli schema event.count.list
idmp-cli event count list
idmp-cli schema event.events.list
idmp-cli event events list --params '{"current":1,"size":20}'
idmp-cli event events search --params '{"keyword":"overcurrent","current":1,"size":20}'
idmp-cli event events get --params '{"eventId":123}'
idmp-cli event events items --params '{"eventId":123}'
idmp-cli event events confirm --ack-risk --params '{"eventId":123}'
idmp-cli event events confirm --dry-run --ack-risk --params '{"eventId":123}'
idmp-cli event batch confirm --ack-risk --data '[123,456]'
idmp-cli event batch confirm --dry-run --ack-risk --data '[123,456]'
idmp-cli event events resend --dry-run --ack-risk --params '{"eventId":123}'
idmp-cli event annotations list --params '{"eventId":123}'
```
## Exception and failure handling
- If an event disappears fPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-notification7.98 KB
---
name: idmp-notification
description: "IDMP notification skill. Use it to inspect global notification config, contact points, templates, delivery history, template-level rules, and test-send behavior."
metadata:
author: "TAOS Data"
version: "0.3.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli notification --help"
---
# notification
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
**Before any write:** Follow the [🛑 Destructive op confirmation protocol](../idmp-shared/SKILL.md#-destructive-op-confirmation-mandatory). Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
## What this skill covers
- Read global notification configuration, contact points, default contact point, and templates.
- Read delivery history and message details for troubleshooting.
- Distinguish global infrastructure from element or element-template notify rules.
- Use `try-send` only when a real test notification is acceptable.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+config` | Show notification config |
| `+contacts` | List notification contact points |
| `+default` | Show the default contact point |
| `+details` | List notification delivery details |
| `+rules` | List notification rules for one element template |
## Recommended reference
- [`Notification read flows`](references/notification-read-flows.md)
- [`../idmp-workflow-alert-create/SKILL.md`](../idmp-workflow-alert-create/SKILL.md)
- [`../idmp-workflow-alert-debug/SKILL.md`](../idmp-workflow-alert-debug/SKILL.md)
## Missing context to resolve first
| Context | Why it must be resolved before side effects |
| --- | --- |
| Scope type | Decide whether you are reading global notification infrastructure, element-scoped notify rules, or template-scoped notify rules. |
| Owner scope | If the task touches notify rules, you need the exact `elementId` or `elementTemplateId` first. |
| Delivery intent | Decide whether you only need history and config reads or whether a real `try-send` side effect is allowed. |
| Template ID source | If you do not already know a template `id`, start with the generated template-list command `notification notification templates`. |
| Rule target | Decide which contact point, template, severity, and resend policy the final rule should cover. |
| Verification window | Decide how you will reread delivery history after resend or `try-send`. |
## Constrained live behaviors
- Element-scoped investigations use `notification notify-rules list`; template-scoped investigations use `notification notify-rules list-get`.
- `notification template get` does have a generated list companion, but it lives under the awkward path `notification notification templates`. Use that list before you guess a template ID.
- `try-send` is a real notification side effect when it runs without `--dry-run`, and it should run only when the operator explicitly accepts that validation.
- If the task only needs a safe payload preview on a real event, prefer `try-send --dry-run --ack-risk`; treat that as validation of command shape, not proof that delivery completed.
- `notification page list` is backed by message-detail pages, not by raw resend attempts. A resend can update an existing detail row and append records under it instead of creating a new top-level page row.
- Delivery history can lag behind resend or `try-send`, so reread `notification page list` instead of assuming the first response is final.
- Delivery retries can also be throttled by the event's minimum notification interval, so “no obvious new row yet” is not always a send failure.
- Global notification config and contact points can be healthy even when no rule binds the target event template or severity.
- If the task is really about creating or repairing alert delivery bindings, switch to [`../idmp-workflow-alert-create/SKILL.md`](../idmp-workflow-alert-create/SKILL.md) or [`../idmp-woPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-openapi-explorer4.76 KB
---
name: idmp-openapi-explorer
description: "IDMP OpenAPI explorer skill. Use it to inspect schema paths, required inputs, and generated commands; fall back to raw API only after schema and generated commands are exhausted."
metadata:
author: "TAOS Data"
version: "0.3.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli schema --help"
---
# OpenAPI Explorer
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## What this skill covers
- Find the exact `service.resource.method` for an IDMP operation.
- Inspect required path, query, and body inputs before execution.
- Prefer generated commands for validation, paging, and risk handling.
- Use raw API only as a controlled fallback.
## Recommended reference
- [`OpenAPI explorer`](references/openapi-explorer.md)
## Missing context to resolve first
| Context | Why it must be resolved before a raw or generated write |
| --- | --- |
| Target operation | You need the exact `service.resource.method` or raw API path before you can trust the payload shape. |
| Owner scope | Path or query IDs such as `elementId`, `elementTemplateId`, or `eventId` must be fixed before mutation. |
| Generated-command availability | Decide whether a structured command already exists before falling back to raw API. |
| Verification target | Decide which follow-up read will prove the write actually matched the intended scope. |
| Risk level | Decide whether the operation is safe for preview only or for a real `--ack-risk` execution. |
## Constrained live behaviors
- For writes, inspect schema first, preview with `--dry-run`, execute with `--ack-risk`, and verify by reading the result back.
- Prefer generated commands whenever they exist; raw API is the controlled fallback, not the default path.
- A schema path that looks close is not good enough for mutation; confirm the exact path and required body before sending the write.
- Raw API success is not proof of correctness unless the equivalent generated-command scope and reread match.
## Operator workflow
1. Start with the nearest domain skill first, such as element, attribute, analysis, panel, dashboard, event, notification, or a workflow skill.
2. Use `idmp-cli schema` or `idmp-cli schema search` to identify the exact schema path, risk level, and required fields.
3. Prefer generated commands after the schema check so validation, paging, and risk prompts stay intact.
4. Use raw API only when no generated command covers the case or when low-level request confirmation is necessary.
5. For writes, inspect schema first, preview with `--dry-run`, execute with `--ack-risk`, and verify by reading the result back.
## Key commands
```bash
idmp-cli schema
idmp-cli schema search element
idmp-cli schema element.elements.list
idmp-cli schema attribute.historydata.list
idmp-cli element elements list --params '{"parentId":123}'
idmp-cli attribute historydata list --params '{"elementId":1,"attributeId":2,"current":1,"size":20,"start":1704067200000,"end":1704153600000}'
idmp-cli api GET /api/v1/elements --params '{"parentId":123}'
idmp-cli api POST /api/v1/elements/batch/attributes/data --data '{"elementIds":[123],"attributeNames":["temperature"]}'
idmp-cli api POST /api/v1/elements/batch/attributes/data --ack-risk --dry-run --data '{"elementIds":[123],"attributeNames":["temperature"]}'
```
## Exception paths
- `schema search` returns no match: broaden the search term, inspect the adjacent domain, and only then consider raw API.
- A generated command exists but validation fails: fix the inputs using `idmp-cli schema ...` instead of switching immediately to raw API.
- The panel verify split is unclear: `panel verify create` only accepts the time-range body with `from` and `to` via plain `--data`; owner params such as `elementId` and full panel DTO fields belong on `panel.panels.query` / `panel.panels.create`, while `panel verify create-post` is reserved for the advanced-query DTO.
- A paginated read looks incomplePreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-panel8.42 KB
---
name: idmp-panel
description: "IDMP panel skill for listing panels, reading details, creating and validating panel queries, and separating panel lifecycle from dashboard placement."
metadata:
author: "TAOS Data"
version: "0.5.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli panel --help"
---
# panel
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
**Before any write:** Follow the [🛑 Destructive op confirmation protocol](../idmp-shared/SKILL.md#-destructive-op-confirmation-mandatory). Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+list` | List panels under one element. |
| `+search` | Search panels globally. |
| `+templates` | List panel templates available to one element. |
## Recommended references
- [`panel read flows`](references/panel-read-flows.md)
- [`../idmp-workflow-panel-build/SKILL.md`](../idmp-workflow-panel-build/SKILL.md)
## Missing context to resolve first
| Context | Why it must be resolved before create or verify |
| --- | --- |
| Owner element | You need the final `elementId` for list, get, naming, create, and every verification call. |
| Candidate panel name | `panel.panels.new-name` requires both `elementId` and a proposed `name`. |
| Verification mode | Decide whether this panel should generate SQL at all, and whether you need plain `query` and `sqls` checks or advanced-query verification. |
| Dashboard placement target | Decide whether the panel remains standalone or must be inserted into a dashboard before the workflow counts as complete. |
| Refresh owner | Decide whether refresh belongs on the panel shell or the dashboard shell so `refreshInterval` lands in the right `params` block. |
## Constrained live behaviors
- Prefer `POST /api/v1/ai/panels/create` for natural-language panel requests, then persist the returned draft through `panel.panels.create`. Use the structured panel DTO workflow only as fallback when the draft is unsuitable or persistence fails.
- `panel.panels.new-name` requires a candidate `name`; do not call it with only the owner scope.
- Text and manual panels can legitimately return `generated SQL is empty`, so `query` is inapplicable for those panel types.
- `panel verify create` validates only the time-range payload with `from` and `to`; use plain `--data`, not `--params`, and do not send `elementId`.
- `panel.panels.query` and `panel.panels.create` use the panel DTO shape. `panel.panels.sqls` uses the same DTO together with owner `--params`.
- `panel verify create-post` is only for advanced-query payloads. Keep `uuid`, `advancedQueryType`, `querySqls`, and the advanced query fields inside that single DTO.
- If a child-scope no-code DTO collapses to self scope on reread or returns empty-body `400`, capture the working SQL and switch to the advanced fallback instead of treating the first attempt as a total panel failure.
- If the backend returns HTTP 400 with an empty body on panel query, verify, or create, assume a DTO-shape mismatch first and recheck the typed schema output before retrying.
- `refreshInterval` belongs in `params` on the object that owns refresh behavior, not in an arbitrary top-level field.
- Creating a panel does not place it into a dashboard automatically; a separate dashboard update is still required.
## Evidence of completion
- A panel create is only complete when `panel panels get` rereads the persisted object with the intended owner, name, and params.
- A query-backed panel is only complete when the same DTO succeeds through `panel.panels.query` or `panel.panels.sqls`.
- An advanced fallback is only complete when reread shows `enableAdvanced=true` and the advanced DTO still validates. For child-scope workflows, this advanced fallback still counts as first-attempt success when the no-code payload collapsed but the verified SQL stayed correct.
- Dashboard Preview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-shared8.59 KB
---
name: idmp-shared
description: "Shared IDMP CLI rules for choosing element mode vs template mode, resolving business-root rootElementId, acknowledging risky writes, and verifying results."
metadata:
author: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli --help"
---
# Shared IDMP CLI rules
## 🛑 Destructive op confirmation (mandatory)
Before executing any `DELETE`, non-readonly `POST` / `PUT` / `PATCH`, `--ack-risk` command, or local destructive helper (`config remove` / `profile remove` / `auth logout --clear`), the agent MUST print the 4 items below and then **wait for an explicit user `yes`** before running the command:
1. **Target** — resource type + id + name + owning element / template / profile.
2. **Action** — HTTP method + path + `schemaPath` + param summary (mask secrets).
3. **Reason** — why this operation is needed (trace it back to the user's request; if it is a rollback of a failed previous step, say so).
4. **Blast radius** — dependent analyses / panels / dashboards / alerts / notifications; whether the action is reversible; whether sub-objects are deleted transitively; cross-profile impact.
Read-only commands (`get`, `list`, `search`, `path`, `tree`, `new-name`, `*-search`, `*-query`, `forecast`) do not require this confirmation. For detailed wording and the ready-to-use template, see `references/idmp-safety-rules.md`.
## Two working modes
| Mode | CLI families | Use when |
| --- | --- | --- |
| element mode | `idmp-cli element ...`, `attribute ...`, `analysis ...`, `panel ...`, `dashboard ...`, `event ...` | The target is a real element, live data, a live dashboard, or a live event. |
| template mode | `idmp-cli template ...`, `attr-template ...`, `analysis-template ...`, `panel-template ...` | The target is a reusable template, template attribute, or template analysis. |
Pick the mode first. Do not mix `elementId` and `elementTemplateId`.
## Preflight
```bash
idmp-cli config init --server http://your-idmp:6042 --username admin@example.com
idmp-cli doctor --offline
idmp-cli auth check
idmp-cli auth list
idmp-cli doctor
```
If login is required:
```bash
printf '%s\n' "$IDMP_E2E_PASSWORD" | idmp-cli auth login --username "$IDMP_E2E_USERNAME" --password-stdin
```
## Recommended shared references
- [`preflight checklist`](references/preflight-checklist.md)
- [`expression rules`](references/expression-rules.md)
- [`chart-type guide`](references/chart-type-guide.md)
- [`error recovery`](references/error-recovery.md)
## Missing context to resolve first
| Context | Why it must be explicit |
| --- | --- |
| Working mode | Every create and update path depends on choosing `element mode` or `template mode` first. |
| Owner | You need the final `elementId` or `elementTemplateId` before you can discover names, trigger types, or related objects. |
| Business root | Element-mode writes often need a higher `rootElementId` from `element path`, even when the real write must move to a leaf owner. Treat `rootElementId` as the business-root ancestor, not as a synonym for the final leaf owner. |
| Candidate name seed | `analysis.analyses.new-name`, `panel.panels.new-name`, and `dashboard.dashboards.new-name` all need a proposed `name`; do not call them with only the owner ID. |
| Scope details | Decide `applyOnSelf`, child-template scope, and whether the workflow targets a real data-bearing leaf before any mutating request. |
| Verification target | Decide which `get`, `list`, runtime state, event, or delivery reread will prove that the workflow really finished. |
## Constrained live behaviors
- Treat every write as incomplete until a follow-up `get`, `list`, runtime check, or delivery reread proves the backend kept the change.
- Do not assume a historical `demo` root exists. Start from the currently visible first-level root that owns the shared leaf fixtures, then create any temporary middle-scope owners under that real tree.
- If `trigger-types liPreview of the first 4,000 characters. Read full instructions →
Referenced files: 6 — file references are metadata, not package contents.
idmp-template5.5 KB
---
name: idmp-template
description: "IDMP template skill for reading element templates, template attributes, sub-templates, trigger types, and create-safe names without mixing template mode with live element mode."
metadata:
author: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli template --help"
---
# template
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
**Before any write:** Follow the [🛑 Destructive op confirmation protocol](../idmp-shared/SKILL.md#-destructive-op-confirmation-mandatory). Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+list` | List element templates. |
| `+get` | Read one element template in detail. |
| `+attributes` | Read attribute templates under one element template. |
| `+levels` | Inspect available levels for path-style templates. |
| `+keywords` | Read naming keyword guidance for the template family. |
## Recommended reference
- [`template read flows`](references/template-read-flows.md)
- [`../idmp-workflow-analysis-create/SKILL.md`](../idmp-workflow-analysis-create/SKILL.md)
## Missing context to resolve first
| Context | Why it must be resolved before template-side create work |
| --- | --- |
| Final template owner | You need the exact `elementTemplateId` before you can read attributes, sub-templates, trigger types, or create-safe names. |
| Trigger scope | Decide `applyOnSelf` and whether a child template must be selected before you reuse trigger-type results. |
| Candidate analysis name | `analysis-template.analyses.new-name` requires a proposed `name`. |
| Template output plan | Decide whether template attributes are reused or created fresh and which `valueType` they should carry. |
## Constrained live behaviors
- Do not mix template commands with live element commands; template mode and element mode use different owners and endpoints.
- If `applyOnSelf=false`, reread `sub-templates` first and then refresh trigger types with the chosen child template scope.
- `analysis-template.analyses.new-name` requires a candidate `name` and `--ack-risk`; `attr-template attributes new-name` only needs the owner scope.
- `attr-template attributes new-name` does not require `--ack-risk`; reserve the name first, then use the later write path for the actual risk gate.
- If the task must create a live analysis or alert under a real element, switch back to the element-mode workflows rather than forcing template endpoints.
## Evidence of completion
- A template lookup is only complete when the reread shows the intended `elementTemplateId`, keyword family, or trigger scope.
- A template-side name reservation is only complete when the later create path keeps the same suggested name.
- A child-scope decision is only complete when `sub-templates` and the final trigger-type reread still agree on the same template branch.
## Template-mode rules
- Use template commands only; do not substitute live element commands.
- Read attribute templates, sub-templates, and trigger types before building template-side analysis or attribute changes.
- Trigger type choices change when `applyOnSelf` changes.
- Use `new-name` before creating template attributes or template analyses.
## Key commands
```bash
idmp-cli schema template.elements.list
idmp-cli template elements list --params '{"current":1,"size":20}'
idmp-cli schema template.elements.get
idmp-cli template elements get --params '{"elementTemplateId":123}'
idmp-cli schema attr-template.elements.attributes
idmp-cli attr-template elements attributes --params '{"elementTemplateId":123}'
idmp-cli schema template.elements.sub-templates
idmp-cli template elements sub-templates --params '{"elementTemplateId":123}'
idmp-cli analysis-template trigger-types list --params '{"elementTemplateId":123,"applyOnSelf":false}'
idmp-cli analysis-template analysPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-uom5.81 KB
---
name: idmp-uom
description: "IDMP unit-of-measure skill. Use it to inspect UOM classes, class-scoped units, free UOM lookup, search, and conversion, while keeping `get` and `get-get` clearly separated."
metadata:
author: "TAOS Data"
version: "0.3.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli uom --help"
---
# uom
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## What this skill covers
- Read UOM classes and the units that belong to them.
- Search for units before modeling or import mapping.
- Distinguish the free/global UOM read from the class-scoped UOM read.
- Use single-row and multi-row conversion batches to confirm compatible units before writing model definitions.
## Recommended shortcuts
| Shortcut | Purpose |
|----------|---------|
| `+classes` | List UOM classes |
| `+class` | Read one UOM class |
| `+search` | Search UOMs |
| `+get` | Read one UOM in the common class-scoped flow |
## Recommended reference
- [`UOM read flows`](references/uom-read-flows.md)
## Missing context to resolve first
| Context | Why it must be resolved before conversion or modeling work |
| --- | --- |
| Lookup mode | Decide whether the target is a class lookup, a free/global UOM read, or a class-scoped UOM read. |
| Target unit family | Search terms can be fuzzy, so you need the intended unit name, abbreviation, or class before you trust an ID. |
| Conversion direction | Decide the exact `fromUomId`, `toUomId`, and whether the batch is expected to stay in one compatible class. |
| Verification target | Decide whether proof should come from class inventory, exact `get`, class-scoped `get-get`, or a successful conversion result. |
## Constrained live behaviors
- `uom search` is unit-oriented rather than class-oriented. Do not rely on class labels or family words alone—whether they are English or localized labels—to prove that a unit family is missing. Search appears to work best with exact unit names and abbreviations.
- Use `uomclasses list` and `uomclasses get` to discover class IDs before you rely on `uom get-get`.
- `uom get` is the free/global read. `uom get-get` needs both `uomClassId` and `uomId`.
- `convert` is batch-wide and all-or-nothing: one invalid or incompatible row can fail the full request.
- Treat exact unit name or abbreviation matches as stronger evidence than fuzzy search hits when modeling depends on the result.
## Execution flow
1. Start with `uomclasses` so the operator understands the class context before choosing a unit.
2. Use `uom get` for the free/global UOM read when only a standalone `uomId` is known.
3. Use `uom get-get` for the class-scoped read when both `uomClassId` and `uomId` are known.
4. When `search` returns near-matches, prefer an exact unit name or abbreviation match before you choose IDs for `get`, `get-get`, or `convert`.
5. Use `search` and `convert` before attribute modeling, import mapping, or cross-unit comparisons.
6. Treat `convert` as all-or-nothing for one batch: one invalid UOM ID or incompatible pair can fail the full request with a structured `400`.
7. Re-check the class and IDs whenever a lookup or conversion result looks inconsistent.
## Evidence of completion
- A lookup is only complete when `uom get` or `uom get-get` returns the exact target row you intended to inspect.
- A class-discovery task is only complete when `uomclasses list` or `uomclasses get` exposes the matching family, even if fuzzy `search` is empty.
- A conversion task is only complete when the structured result reflects the requested `fromUomId`, `toUomId`, and numeric output.
## Key commands
```bash
idmp-cli schema uom.uomclasses.list
idmp-cli uom uomclasses list
idmp-cli schema uom.uomclasses.get
idmp-cli uom uomclasses get --params '{"uomClassId":264033646}'
idmp-cli schema uom.uom.search
idmp-cli uom uom search --params '{"keyword":"kWh","limitSize":20}'
idmp-cli schema uom.uom.get
idmp-cli uom uom get --params '{"uomId":1753955006Preview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-user-access4.41 KB
---
name: idmp-user-access
description: "IDMP user-access skill. Use it to inspect users, roles, permission groups, assignable roles, and granted roles while keeping current-user reads separate from admin paginated user lists."
metadata:
author: "TAOS Data"
version: "0.4.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli user --help"
---
# user / role / permission
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## What this skill covers
- Read current-user context, paginated admin user views, roles, permission groups, and safe authorization previews.
- Keep current-user inspection separate from directory-wide admin surfaces.
## Recommended reference
- [`references/user-access-read-flows.md`](references/user-access-read-flows.md)
## Missing context to resolve first
- Admin visibility.
- Permission group seed.
- Whether the request is about the current user, a directory user, a role, or a permission scope.
- Whether the operator only needs a dry-run preview or a real mutation.
- Which scope, group, or role ID is already known.
## Constrained live behaviors
- `user users list` returns the current-user object.
- `permission users assignable` and `permission roles list-get` can return structured 403.
- `role roles create` requires a non-empty `permissionGroupIds` list.
- `user users list` is the current-user surface; `user page list` is the paginated directory view.
- Role and permission reads can succeed even when grant previews are permission-bound.
- Keep `--dry-run --ack-risk` on grant previews until the operator explicitly wants a real mutation.
## Execution flow
1. Start with `idmp-cli user users list` to separate current-user context from directory-wide admin views.
2. Use `idmp-cli user page list --params` only when the task really needs admin directory scope.
3. Pair role detail with `idmp-cli permission groups list` before any grant preview or temporary role create.
4. Keep authorization work on `permission policy grant-post --dry-run --ack-risk --params` until the operator explicitly wants a real mutation.
5. If a temporary role must be created, reread it and pair the create with a delete cleanup step in the same workflow.
## Evidence of completion
- A current-user answer is only complete when it comes from `user users list`, not from a guessed admin directory row.
- A permission boundary is still valid evidence when the backend returns a structured 403 for assignable or granted-role reads.
- A temporary-role workflow is only complete when both the reread and the delete cleanup succeed.
## Key commands
1. `idmp-cli user users list` for the current-user shape.
2. `idmp-cli user page list --params` for the admin directory view.
3. `idmp-cli user users get --params` to inspect a specific user.
4. `idmp-cli role roles get --params` to inspect one role deeply.
5. `idmp-cli permission groups list` to enumerate reusable permission bundles.
6. `idmp-cli permission policy grant-post --dry-run --ack-risk --params` to preview authorization safely.
7. `idmp-cli role roles create --ack-risk --data` when a temporary custom role is really needed.
8. `idmp-cli role roles delete --ack-risk --params` to remove that temporary role after verification.
## Exception paths
- If paginated admin reads are forbidden, do not infer that the current-user surface is also broken.
- Stop at dry-run when the operator has not explicitly requested a real grant.
- Clean up any temporary custom role you create.
## Validation scenarios
### 1. Current-user shape
Use `idmp-cli user users list` first. This should answer “who am I” questions without requiring admin directory access.
### 2. Admin directory view
Use `idmp-cli user page list --params` for scoped directory inspection. Treat permission failures here as directory-boundary evidence, not a total auth failure.
### 3. Role and permission-group context
Pair `idmp-cli role roles get --params` with `idmp-cli permission groups list`Preview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-workflow-alert-create7.03 KB
---
name: idmp-workflow-alert-create
description: "IDMP alert creation workflow. Prepare the event template, create the Event-trigger analysis, and treat reread plus Running as success without actively triggering alerts."
metadata:
author: "TAOS Data"
version: "0.7.2"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli analysis --help"
---
# workflow: alert create
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## Recommended references
- [`references/alert-create.md`](references/alert-create.md)
- [`../idmp-workflow-analysis-create/SKILL.md`](../idmp-workflow-analysis-create/SKILL.md)
## Missing context to resolve first
- Whether the alert intent is natural-language friendly enough for AI-first analysis drafting.
- Candidate analysis name.
- Whether downstream notification routing is in scope after create success.
- Notify target when routing is in scope.
- AI alert prompt seed.
- `idmp-cli ai create create --ack-risk --data '{"elementId":123,"prompt":"alert when ...","record":true}'`
- `idmp-cli event-template events get --params '{"id":789}'`
- `idmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-alert"}'`
- Trigger source.
- Non-leaf proof boundary.
- Whether the operator wants only create success or an extra downstream-debug pass later.
## Constrained live behaviors
- `try-send` is not part of create success.
- Write-chain boundary.
- Prefer AI draft-first create for the Event-trigger analysis when the operator starts from natural language; fall back to the structured alert chain when the AI draft is unsuitable or persistence fails.
- `event-template events get` uses `id`.
- `analysis.analyses.new-name` needs a candidate `name` and `--ack-risk`.
- Create or resume the analysis before you write the notify rule.
- If `analysis trigger-types list` for `applyOnSelf=false` does not include `Event`, stop instead of forcing child-scope alert creation.
- Trigger types gate create eligibility; they do not require a real event during create proof.
- Keep `escalationInterval` aligned with the actual notify-rule DTO.
- Create success means the analysis is created, reread, and `Running`.
- Do not write source attributes or replay history just to prove alert creation.
- Real event materialization and notification delivery are optional downstream diagnostics, not part of create success.
## Execution flow
1. Prepare the template side with `idmp-cli event-template events list`, `idmp-cli event-template events get --params`, and `idmp-cli event-template events create --ack-risk` only when no reusable template exists.
2. For natural-language alert requests, try AI draft-first create for the analysis portion with `idmp-cli ai create create --ack-risk --data '{"elementId":123,"prompt":"alert when ...","record":true,"deepThinking":false,"deviceDocument":false}'`, then persist the returned draft through `idmp-cli analysis analyses create --ack-risk --params` after removing `id` and injecting `rootElementId`.
3. If the AI draft does not preserve the required event template, severity, scope, or output bindings, fall back to the current structured alert flow.
4. Reserve the analysis name with `idmp-cli analysis analyses new-name --ack-risk --params`, then prove scope support with `idmp-cli analysis trigger-types list --params`.
5. Create the missing output attribute only if required by using `idmp-cli attribute elements attributes-post --ack-risk --params`.
6. Create and reread the alert analysis via `idmp-cli analysis analyses create --ack-risk --params` and `idmp-cli analysis analyses get --params`.
7. Resume the analysis with `idmp-cli analysis analyses resume --ack-risk --params`. Success means `analysis analyses get` reread plus `analysis analyses resume` reaching `Running`.
8. If downstream routing is explicitly in scope after the analysis is already `Running`, inspect or add notify-rule coverage with `idmp-cli notification notify-rules list --paPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-workflow-alert-debug3.19 KB
---
name: idmp-workflow-alert-debug
description: "IDMP alert debugging workflow. Walk the operator chain from event count and detail to context, acknowledgement, resend, annotations, notify rules, and delivery history."
metadata:
author: "TAOS Data"
version: "0.5.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli event --help"
---
# workflow: alert debug
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## Recommended references
- [`references/alert-debug.md`](references/alert-debug.md)
- [`../idmp-event/SKILL.md`](../idmp-event/SKILL.md)
## Missing context to resolve first
- Failure boundary.
- Reread window.
- Event scope.
- Notify-rule scope.
- Whether the complaint is “no event opened” or “event opened but delivery failed”.
## Constrained live behaviors
- `confirm` and `resend` have side effects.
- `status=Unack` is the safest default when the operator needs an open event.
- Prefer `analysisId` when correlating an event back to alert creation.
- Notification history can lag behind resend.
- A linked analysis was already deleted in some valid debug branches.
- Capture event evidence before any acknowledge or resend action.
## Execution flow
1. Start with `idmp-cli event count list` and `idmp-cli event events list --params` to decide whether the failure is missing events or missing delivery.
2. Use `idmp-cli event events get --params` and `idmp-cli event events items --params` to lock a single event and its payload.
3. Only after evidence is captured should you consider `idmp-cli event events confirm --ack-risk --params` or `idmp-cli event events resend --ack-risk --params`.
4. Read `idmp-cli notification config list` to confirm the notification side is configured.
5. Finish with `idmp-cli notification page list --params` to inspect delivery history after the event-side review.
## Exception paths
- If no event exists, stop and hand off to alert creation or analysis diagnosis.
- If delivery history is empty right after resend, call out history lag before declaring failure.
- Any temporary debug artifact must be deleted before you leave the workflow.
## Validation scenarios
### 1. Event exists and explains the alert
Use `idmp-cli event events list --params`, then `idmp-cli event events get --params`. The result should prove the alert opened and what the event currently says.
### 2. Delivery failure with no mutation
Use `idmp-cli notification config list` and `idmp-cli notification page list --params` without changing event state. This path is for diagnosis only.
### 3. Acknowledge and resend with evidence captured
Only after reading `idmp-cli event events items --params` should you use `idmp-cli event events confirm --ack-risk --params`. Mutation is never the first debugging step.
### 4. Temporary debug annotation lifecycle
If you add any temporary note while debugging, plan its cleanup explicitly. The workflow is still incomplete until the temporary artifact is removed.
### 5. No event exists
Start with `idmp-cli event count list` and `idmp-cli event events list --params`. If both prove there is no event, stop and report the upstream boundary. Reread `notification page list` after resend only when resend was actually executed.
Referenced files: 1 — file references are metadata, not package contents.
idmp-workflow-analysis-create6.49 KB
---
name: idmp-workflow-analysis-create
description: "IDMP analysis creation workflow. Resolve mode, owner, trigger types, output attributes, creation payload, post-create verification, resume, and cleanup."
metadata:
author: "TAOS Data"
version: "0.8.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli analysis --help"
---
# workflow: analysis create
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## Recommended references
- [`references/analysis-create.md`](references/analysis-create.md)
- [`../idmp-analysis/SKILL.md`](../idmp-analysis/SKILL.md)
## Missing context to resolve first
- Whether the request is natural-language friendly enough for AI-first create.
- Candidate analysis name.
- Runtime expectation.
- AI create prompt seed.
- `idmp-cli ai create create --ack-risk --data '{"elementId":123,"prompt":"demo analysis prompt","record":true}'`
- `idmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-analysis"}'`
- `idmp-cli analysis-template analyses new-name --ack-risk --params '{"elementTemplateId":456,"name":"demo-analysis"}'`
- `analysis.analyses.new-name` and `analysis-template.analyses.new-name` require a proposed `name` value and `--ack-risk`.
- Live middle-owner proof plan.
- Whether the workflow is leaf self, middle self, or child aggregation.
## Constrained live behaviors
- Prefer AI draft-first create for natural-language requests: `POST /api/v1/ai/analysis/create` first, then persist the returned draft through `analysis analyses create`.
- The AI draft request body follows `ai.create.create`: keep `prompt`, `record`, `deepThinking`, and `deviceDocument` explicit, plus either `elementId` or `elementTemplateId`.
- Minimal payloads fail in live environments.
- Create success does not guarantee `Running`.
- `new-name` for analyses requires a candidate `name` and `--ack-risk`.
- `rootElementId` is not the current element ID.
- A plain container plus ad-hoc attributes does not unlock self trigger types.
- `element.elements.create` and `element.new.create` do different jobs.
- Keep `startAfterCreated`, `rootElementId`, and output `valueType` explicit in the create payload.
- Trigger-type preflight decides whether the requested scope is valid before any create.
- AI create drafts can contain temporary output attributes or an `id`; remove the draft `id`, inject `rootElementId`, and clean draft-created attributes if persistence fails.
- If AI draft creation fails with a timeout such as `context deadline exceeded`, classify that first attempt as backend AI/API latency and fall back to the structured payload path without mutating the business intent.
- In the current live backend, analysis delete can return success while output attributes remain referenced. Treat cleanup after a proven create or running reread as best-effort instead of a hard create failure.
## Execution flow
1. Use `idmp-cli element elements get --params` and `idmp-cli element elements path --params` to lock the owner and business root.
2. Read dependencies with `idmp-cli attribute elements attributes --params` and `idmp-cli analysis analyses list --params`.
3. For natural-language requests, try AI draft-first create with `idmp-cli ai create create --ack-risk --data '{"elementId":123,"prompt":"...","record":true,"deepThinking":false,"deviceDocument":false}'`, then persist the returned draft through `idmp-cli analysis analyses create --ack-risk --params` after removing `id` and setting `rootElementId`.
4. If the AI draft is unsuitable, persistence fails, or the backend returns a structured AI failure, fall back to the current structured path: reserve/validate with `idmp-cli analysis analyses new-name --ack-risk --params`, `idmp-cli analysis trigger-types list --params`, and `idmp-cli attribute elements attributes-post --ack-risk --params` if the output attribute does not exist.
5. Create and reread through `idmp-cli analysis analyses create --ack-risk --params` aPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-workflow-asset-bootstrap3.94 KB
---
name: idmp-workflow-asset-bootstrap
description: "IDMP asset bootstrap workflow. Read roots, paths, templates, attribute templates, UOMs, datasources, and record visibility before any modeling or ingestion write."
metadata:
author: "TAOS Data"
version: "0.5.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli element --help"
---
# workflow: asset bootstrap
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## Recommended references
- [`references/asset-bootstrap.md`](references/asset-bootstrap.md)
- [`../idmp-element/SKILL.md`](../idmp-element/SKILL.md)
## Missing context to resolve first
- The visible business root or path the operator wants to model against.
- Whether the goal is leaf-only context, middle-owner context, or source-ingestion context.
- Whether a reusable template family is already known.
## Constrained live behaviors
- Root discovery must be real-environment evidence, not a guessed `demo` tree.
- Template and sub-template checks come before any modeling assumption.
- UOM and datasource checks prove measurement semantics and ingestion visibility, not object mutability.
- If a downstream workflow temporarily creates a middle-owner hierarchy and the async delete task later lands in `FAILED`, treat that as a backend cleanup boundary after the reread proof instead of a reason to keep retrying destructive cleanup loops.
## Execution flow
1. Use `idmp-cli element elements list --params`, `idmp-cli element elements path --params`, `idmp-cli element fullpath get --params`, and `idmp-cli element by-path list --params` to lock the visible root and chosen owner.
2. Use `idmp-cli template elements list --params` and `idmp-cli element elements sub-templates --params` to confirm the template family behind that scope.
3. Use `idmp-cli attr-template elements attributes --params` to inspect measurement-ready attribute templates before proposing analysis or panel work.
4. Use `idmp-cli uom uomclasses list` and `idmp-cli uom uom search --params` to verify measurement semantics.
5. Use `idmp-cli datasource connections list`, `idmp-cli data first-level-elements list`, and `idmp-cli data records list` to confirm ingestion visibility.
## Exception paths
- If visible roots are empty, classify the issue as auth, permission, or environment scope before continuing.
- If the chosen root exposes the wrong template family, stop and pick a different owner instead of forcing later workflows.
- If ingestion traces are invisible, do not promise downstream import or alert success.
- If previous temporary hierarchy cleanup tasks failed but the owner is still readable, classify the environment as reusable with a cleanup caveat instead of pretending the root inventory changed.
## Validation scenarios
### 1. Unknown environment bootstrap
Start with `idmp-cli element elements list --params` and `idmp-cli element elements path --params`. The goal is to prove the current visible root before anything else.
### 2. Model-ready but ingestion-unknown environment
Use `idmp-cli attr-template elements attributes --params` to prove template readiness, then `idmp-cli datasource connections list` to confirm ingestion visibility separately.
### 3. Root list is empty
Stop after `idmp-cli element elements list --params` returns nothing useful. The next step is auth or permission diagnosis, not a guessed bootstrap answer.
### 4. Template mismatch on the chosen root
Use `idmp-cli template elements list --params` and `idmp-cli element elements sub-templates --params` to show the mismatch. Switch owners instead of inventing template compatibility.
### 5. Post-write reread
If a previous operator already created temporary objects, reread with `idmp-cli data first-level-elements list` and `idmp-cli data records list` before claiming the environment is reusable. If the objects are still readable only because an async delete task previously failed, record that as a backend cleanup caveat instead of retrPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
idmp-workflow-data-import-export3.12 KB
---
name: idmp-workflow-data-import-export
description: "IDMP data import and export workflow. Separate package import or export from datasource CSV import, read first, write carefully, and reread records after every write."
metadata:
author: "TAOS Data"
version: "0.6.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli data --help"
---
# workflow: data import export
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## Recommended references
- [`references/data-import-export.md`](references/data-import-export.md)
- [`../idmp-data/SKILL.md`](../idmp-data/SKILL.md)
## Missing context to resolve first
- Workflow type.
- Artifact expectation.
- Whether the operator needs package export, package import, or datasource CSV import.
- Which root or artifact record is already known.
- Whether the expected artifact is record-backed or streamed directly to stdout.
## Constrained live behaviors
- Accept both valid export branches.
- Always reread records after every write.
- Package import/export and datasource CSV import are different command families.
- `download get` only works after a record-backed artifact exists.
- Some export branches stream ZIP content directly; in that branch the streamed file is the final artifact.
## Execution flow
1. Start with `idmp-cli data first-level-elements list` and `idmp-cli data records list` to prove the visible roots and current artifact history.
2. Use `idmp-cli data import-and-export export --ack-risk --data` only after the root and export mode are clear.
3. Reread `idmp-cli data records list` before trying `idmp-cli data download get --params`.
4. Inspect `idmp-cli schema data.import-and-export.import` before any package import.
5. Treat `idmp-cli schema datasource.csv.create` as the separate datasource CSV chain, and keep `idmp-cli datasource csv create --ack-risk --params` out of package import/export payloads.
## Exception paths
- If no export record exists, stop before `download get` and explain whether the branch streamed a ZIP directly.
- If the operator asked for CSV import but only described package import, stop and rescope instead of mixing workflows.
- After every mutation, reread records so the artifact history is explicit.
## Validation scenarios
### 1. Package export with branch detection
Run `idmp-cli data import-and-export export --ack-risk --data`, then reread `idmp-cli data records list`. The result must say whether the branch is record-backed or stdout-ZIP.
### 2. Package import after schema inspection
Read `idmp-cli schema data.import-and-export.import` first. Only then is a package import payload discussion valid.
### 3. Datasource CSV import
Use `idmp-cli schema datasource.csv.create` to keep CSV import separate from package import/export. Do not reuse package DTO guidance here.
### 4. ZIP-stdout branch versus record-backed branch
Try `idmp-cli data download get --params` only after rereading records. If no record exists, record that stdout branch explicitly.
### 5. Wrong chain detected before write
If the request mixes export and CSV import, stop early. Reread `data records list` after every export, import, or CSV write.
Referenced files: 1 — file references are metadata, not package contents.
idmp-workflow-datasource-diagnose3.68 KB
---
name: idmp-workflow-datasource-diagnose
description: "IDMP datasource diagnosis workflow. Read the connection, probe connectivity, inspect databases and metadata, compare model mappings, and reread after every probe or write."
metadata:
author: "TAOS Data"
version: "0.6.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli datasource --help"
---
# workflow: datasource diagnose
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## Recommended references
- [`references/datasource-diagnose.md`](references/datasource-diagnose.md)
- [`../idmp-datasource/SKILL.md`](../idmp-datasource/SKILL.md)
## Missing context to resolve first
- Credential source.
- Verification rereads.
- The target connection, database, or table that the operator thinks is broken.
- Whether the complaint is reachability, metadata visibility, or model mismatch.
- Which element or template mapping should be compared back to source metadata.
## Constrained live behaviors
- Do not copy `connections get` into `connectivity create`.
- `datasource check list` for the built-in TDengine listener.
- After any write-like probe or import, reread.
- Read the connection object before probing reachability.
- Additional properties and metadata are evidence; they do not replace a live connectivity probe.
- Metadata diagnosis stays ordered: connection -> probe -> db -> table -> column -> model mapping.
## Execution flow
1. Read `idmp-cli datasource connections list` and `idmp-cli datasource connections get --params` before any probe.
2. Use `idmp-cli datasource additional-properties list-get --params` to capture datasource-side context.
3. Reread `idmp-cli datasource check list` and then run `idmp-cli datasource connectivity create --ack-risk --data` to separate summary health from live reachability.
4. Use `idmp-cli datasource dbnames list --params`, `idmp-cli datasource tablenames list --params`, and `idmp-cli datasource columninfo create --ack-risk --params` to lock the metadata boundary.
5. Compare that metadata with `idmp-cli attr-template elements attributes --params`, and use `idmp-cli datasource csv create --ack-risk --params` only when the diagnosis includes a write-like CSV probe.
6. Reread `idmp-cli data records list` if the diagnosis also touches import or export traces.
## Exception paths
- If the connectivity probe fails, fall back to `datasource check list` plus metadata reads before interpreting missing tables as schema bugs.
- If metadata exists but the model does not match, report the exact column or mapping mismatch.
- If record traces are absent, say whether the gap is ingestion history or datasource visibility. Capture whether the root cause is connectivity.
## Validation scenarios
### 1. Listener health confirmation
Start with `idmp-cli datasource connections list` and `idmp-cli datasource connections get --params`. Only then run `idmp-cli datasource check list`.
### 2. Redacted-payload connectivity failure isolation
Use `idmp-cli datasource connectivity create --ack-risk --data` after a redaction-aware connection read. Reachability failures should not trigger secret hunting.
### 3. Metadata versus model mismatch
Pair `idmp-cli datasource columninfo create --ack-risk --params` with `idmp-cli attr-template elements attributes --params`. The result should name the exact mapping mismatch.
### 4. Table discovery failure
Walk `idmp-cli datasource dbnames list --params` and `idmp-cli datasource tablenames list --params` in order. The failing step should become the reported boundary.
### 5. CSV import trace during diagnosis
If the datasource complaint touches ingestion, reread `idmp-cli data records list`. Keep record-trace evidence separate from connectivity evidence.
Referenced files: 1 — file references are metadata, not package contents.
idmp-workflow-panel-build6.54 KB
---
name: idmp-workflow-panel-build
description: "IDMP panel build workflow. Resolve owner, reserve names, create panel objects, verify query and SQL output, place panels into dashboards, and clean up safely."
metadata:
author: "TAOS Data"
version: "0.7.1"
owner_team: "AI"
requires:
bins:
- idmp-cli
cliHelp: "idmp-cli panel --help"
---
# workflow: panel build
**Read [`../idmp-shared/SKILL.md`](../idmp-shared/SKILL.md) first.**
## Recommended references
- [`references/panel-build.md`](references/panel-build.md)
- [`../idmp-panel/SKILL.md`](../idmp-panel/SKILL.md)
## Missing context to resolve first
- Whether the request is natural-language friendly enough for AI-first panel drafting.
- Candidate panel name.
- Placement plan.
- AI create prompt seed.
- `idmp-cli ai create create-post --ack-risk --data '{"elementId":123,"prompt":"demo panel prompt","record":true}'`
- `idmp-cli panel panels new-name --params '{"elementId":123,"name":"demo-panel"}'`
- Candidate dashboard name.
- `idmp-cli dashboard dashboards new-name --params '{"elementId":123,"name":"demo-dashboard"}'`
- Hierarchy persistence plan.
- Whether the goal is leaf self, middle self, child aggregation, or a text/manual panel.
## Constrained live behaviors
- Prefer AI draft-first create for natural-language panel requests: `POST /api/v1/ai/panels/create` first, then persist the returned draft through `panel.panels.create`.
- `panel verify create` is the time-range-only validator and does not take owner `--params`.
- `panel verify create-post` validates advanced SQL entries.
- Creating a panel does not place it into a dashboard.
- `panel.params` owns the panel time range.
- `dashboard.params` owns dashboard refresh settings.
- For query-backed panels, if generated SQL is empty, stop before persistence. For panels with no SQL query by design, such as text panels, verify saved content and type instead.
- Every advanced fallback must keep a valid `advancedQueryType`.
- `panel.panels.query` and `panel.panels.create` use the panel DTO shape.
- Keep `checked` boolean and `dimensions` as an array of strings.
- Standard child-scope roundtrips can collapse back to self scope.
- Persist the advanced fallback only after reread shows `enableAdvanced=true`; save that SQL with `enableAdvanced=true`. A verified advanced fallback still counts as first-attempt success for child-scope panel work.
- Empty-body `400` responses usually mean the payload shape is wrong.
- AI panel drafts can include an `id`; remove it before persistence. If the AI draft collapses child scope, loses required placement fields, or fails to persist, fall back to the existing structured workflow.
## Execution flow
1. Lock the owner and current shells with `idmp-cli element elements get --params`, `idmp-cli panel panels list --params`, and `idmp-cli dashboard dashboards list --params`.
2. For natural-language requests, try AI draft-first create with `idmp-cli ai create create-post --ack-risk --data`, then persist the returned draft through `idmp-cli panel panels create --ack-risk --params` after removing `id`.
3. If the AI draft is unsuitable, persistence fails, or reread/query proves the draft collapsed scope, fall back to the current structured panel path.
4. Reserve names with `idmp-cli panel panels new-name --params` and `idmp-cli dashboard dashboards new-name --params` when the AI path is skipped or unsuitable.
5. Create or inspect the dashboard shell through `idmp-cli dashboard dashboards create --ack-risk --params` when placement is required.
6. Create the panel object with `idmp-cli panel panels create --ack-risk --params`, then reread with `idmp-cli panel panels get --params`.
7. For panels with no SQL query by design, such as text panels, verify the saved content and type on reread and skip query/SQL validation. For query-backed panels, validate query behavior in three separate branches: use `idmp-cli panel panels query --ack-risk --params` and `idmp-cli panel panels sqls --ackPreview of the first 4,000 characters. Read full instructions →
Referenced files: 1 — file references are metadata, not package contents.
Package details
Publisher declarations from the archived package. These are separate from our research and the live service's terms.
- Package license
- MIT
- Package author
- TAOS Data
- Keywords
- See keywords
Declared capabilities
- Read
- Write
Package observed Nov 30, 2026.
Technical details
- First seen
- Nov 17, 2026 · 06:00 UTC
- Last seen
- Dec 1, 2026 · 00:00 UTC
- Collection status
- Collected
plugins_6aed3278a3848191925fc74753ecbe72
Download plugin data (JSON)Plugin details: freshly prepared. Prepared . Refreshed when plugin data changes or after 6 hours. Your account and Follow status are live.