/idmp-plugin:idmp-sharedfrom idmp-plugin
Shared IDMP CLI rules for choosing element mode vs template mode, resolving business-root rootElementId, acknowledging risky writes, and verifying results.
Ships in idmp-plugin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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:
schemaPath + param summary (mask secrets).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.
| 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.
idmp-cli config init --server http://your-idmp:6042 --username [email protected]
idmp-cli doctor --offline
idmp-cli auth check
idmp-cli auth list
idmp-cli doctor
If login is required:
printf '%s\n' "$IDMP_E2E_PASSWORD" | idmp-cli auth login --username "$IDMP_E2E_USERNAME" --password-stdin
| 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. |
get, list, runtime check, or delivery reread proves the backend kept the change.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.trigger-types list is empty on the current owner, move the create flow to a data-bearing leaf element and keep the business root as rootElementId.new-name only with the correct payload shape. Analyses, panels, and dashboards need both the owner and a candidate name; attribute new-name only needs the owner scope. analysis.analyses.new-name is a POST reserve call and still requires --ack-risk, while panel/dashboard/attribute new-name commands remain readonly.event.events.list --params '{"analysisId":...}' is more reliable than filtering only by status=Unack in a noisy shared environment.Ready, alerts can need fill-history, and notification history can lag behind resend or new-event creation.id, owner scope, reserved name, and expected status bits.list reread or a structured not-found get.element elements path plus element fullpath get before you reuse rootElementId.search, list, or path.get, attributes, analyses list, or the relevant list endpoint.new-name, sub-templates, trigger-types, and any contact-point or event-template prerequisites.--dry-run, and add --ack-risk for non-read-only generated commands.get or list; resume the object if the product expects a running state.rootElementId comes from the business root in the element path, not from the current leaf element. The leaf owner and the business root are separate write inputs.applyOnSelf=false means the configuration depends on child-template or hierarchical scope; read sub-templates and trigger-types first.new-name before creating attributes, analyses, panels, or dashboards when that helper exists, and provide the correct payload shape for that helper.idmp-cli api only when no structured command is sufficient.idmp-cli schema element.elements.sub-templates
idmp-cli schema analysis.analyses.create
idmp-cli schema attribute.elements.attributes-post
idmp-cli element elements search --params '{"keyword":"beijing","current":1,"limitSize":20}'
idmp-cli element elements path --params '{"elementId":123}'
idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}'
idmp-cli auth check or idmp-cli doctor fails, stop mutating work until the session and connectivity are healthy again.elementId (or the reverse), switch modes instead of forcing the request.rootElementId; resolve the path first. An unclear path is one where element elements path, element fullpath get, and element by-path list do not round-trip to the same root-to-leaf chain.get or list does not show the change, treat the workflow as incomplete and re-read before sending another mutation.Only use:
IDMP_E2E_ENABLEDIDMP_BASE_URLIDMP_E2E_USERNAMEIDMP_E2E_PASSWORDidmp-cli doctor --offline.idmp-cli auth check.idmp-cli schema element.elements.search and idmp-cli schema template.elements.get.idmp-cli element elements path --params '{"elementId":123}'.idmp-cli schema analysis.analyses.create followed by idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}'.references/chart-type-guide.md (opens in a new tab)references/error-recovery.md (opens in a new tab)references/expression-rules.md (opens in a new tab)references/idmp-agent-quick-start.md (opens in a new tab)references/idmp-safety-rules.md (opens in a new tab)references/preflight-checklist.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
23 skills in this plugin
/idmp-aiIDMP 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./idmp-analysisIDMP analysis skill for listing, searching, reading, resuming, and preparing analysis create flows with path, trigger type, sub-template, and output-attribute checks./idmp-annotationIDMP annotation skill. Use it to read and write element annotations while keeping element annotations separate from event annotations./idmp-attributeIDMP attribute skill for reading definitions and values, checking history, evaluating expressions, reserving names, and safely writing test data./idmp-dashboardIDMP dashboard skill for listing dashboards, reading details, updating layout and order, templating stable dashboards, and keeping dashboard lifecycle separate from panel lifecycle./idmp-dataIDMP 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.npx claudepluginhub taosdata/agent-skills --plugin idmp-plugin