IDMP分析スキル(医薬品情報の一覧表示・検索・読み取り・再開・準備を行うためのツール) このスキルは、分析フロー(処理の流れ)を作成する際に、以下の要素をチェックして構成します: - パス(処理経路) - トリガータイプ(動作を開始させる条件) - サブテンプレート(補助となる処理ひな形) - 出力属性チェック(結果データの検証)
IDMP analysis skill for listing, searching, reading, resuming, and preparing analysis create flows with path, trigger type, sub-template, and output-attribute checks.
まず ../idmp-shared/SKILL.md をお読みください。
何かを書き込む前に: 🛑 破壊的操作の確認プロトコル に従ってください。読み取り専用のコマンドはここでも読み取り専用ですが、削除・書き込み・更新の処理は共有の確認ゲートが必要です。
| ショートカット | 用途 |
|---|---|
+list |
1つの要素に含まれる分析を読み取ります |
+search |
すべての分析をグローバル検索します(キーワードなしで始めることも可能) |
| コンテキスト | 作成または再開の前に必ず解決が必要な理由 |
|---|---|
| 最終的な所有者とモード | 適切なコマンドファミリーを選択したり名前を予約したりするには、正確な elementId または elementTemplateId が必要です |
| ビジネスルート | 実際の所有者がデータを含む下位要素に移動した場合でも、要素モードの分析作成には rootElementId(ビジネスルートから)が必要です。element elements path と element fullpath get を使ってこのルートを確認してから作成ペイロードを送信してください |
| 候補となる分析名 | analysis.analyses.new-name と analysis-template.analyses.new-name には候補となる name(名前)が必要です |
| トリガーの範囲 | applyOnSelf(自身に適用するか)、子テンプレートの範囲、その後に有効なトリガータイプを知る必要があります |
| 出力計画 | 出力属性を再利用するか新規作成するか、どの valueType(値の型)が必要か、自身または子スコープのどちらに配置するかを決定してください |
| ランタイム対象 | Ready(準備完了)で十分か、またはワークフローは Running(実行中)で終了する必要があり resume(再開)が必要かを決定してください |
POST /api/v1/ai/analysis/create を優先的に使用し、返されたドラフトを通常の作成パスを通じて保存してください。構造化されたDTO(データ転送オブジェクト)ワークフローは、ドラフトが不適切な場合または保存が失敗した場合のフォールバックとして使用しますanalysis.analyses.new-name と analysis-template.analyses.new-name には候補となる name と --ack-risk(リスク承認フラグ)が必要です。所有者スコープだけで呼び出さないでくださいrootElementId は現在の下位要素ではなく、ビジネスルートから取得しますtrigger-types list が空の場合、分析作成はデータを含む下位要素に強制されることがありますapplyOnSelf=false の場合、バックエンド(サーバー側)が Session と Interval のみを公開する可能性があるため、DataInput または Event が利用可能なままであると仮定しないでくださいrootElementId、startAfterCreated、有効な trigger、実際の output.attributes[].attrId 値が必要です。現在のライブ ELE_SUBET フローの場合、子スコープの分析は所有者要素の出力属性を使用でき、output.elementTemplate.id は引き続き子テンプレートを指しますget、list、必要に応じて resume がバックエンドがオブジェクトを予想されたランタイム状態に保持したことを証明するまで完了しませんresume が分析自体が機能したことを証明した後、漏れた出力属性のクリーンアップをバックエンドの境界として分類し、作成ペイロードが間違っているとは考えないでください../idmp-workflow-alert-create/SKILL.md に切り替えてくださいcreate の再読み込みで保存されたオブジェクトに同じ名前が表示される場合にのみ有用ですanalysis analyses get と analysis analyses list が同じ id、所有者スコープ、予想される状態ビットを表示する場合にのみ完了しますReady で停止せず、resume 後に再読み込みして実行時状態が実際に変わったことを確認してくださいrootElementId が書き込みパスの一部だった場合は、element elements path と element fullpath get の証拠を作成証明に保持してくださいpath、attributes、sub-templates、trigger-types、new-name を読み取ってくださいanalysis.analyses.new-name と analysis-template.analyses.new-name には候補となる name と --ack-risk が必要です。所有者スコープだけで呼び出さないでくださいrootElementId を必要とします../idmp-workflow-analysis-create/SKILL.md に記載されるべきもので、特にペイロードが output.attributes[] を含む必要がある場合ですapplyOnSelf と、子スコープの場合は選択されたテンプレートに依存しますresume してくださいidmp-cli schema analysis.analyses.list
idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}'
idmp-cli schema analysis.analyses.get
idmp-cli analysis analyses get --params '{"elementId":123,"id":456}'
idmp-cli schema analysis.analysis.search
idmp-cli analysis analysis search --params '{"keyword":"voltage","current":1,"size":20}'
idmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-analysis"}'
idmp-cli analysis trigger-types list --params '{"elementId":123,"applyOnSelf":true}'
idmp-cli analysis trigger-types list --params '{"elementId":123,"applyOnSelf":false,"elementTemplateId":456}'
idmp-cli schema analysis.analyses.resume
idmp-cli analysis analyses resume --ack-risk --params '{"elementId":123,"id":456}'
applyOnSelf や子テンプレートが変わった後に trigger-types list が変わった場合は、以前のトリガー選択を破棄して再読み込みしてくださいSession または Interval のみを表示する場合は、それらのトリガーファミリーの周りで分析を再設計するか、自身スコープに戻してください。Event や DataInput を無理に使用しないでくださいrootElementId が判明するまで分析を作成しないでください。「解決」を element elements path と element fullpath get が同じ第1レベル所有者に同意することと見なしてくださいattribute elements attributes-delete が出力属性が分析によって参照されていることを報告する場合は、既に作成または実行中証明をキャプチャした後、それをバックエンドクリーンアップ境界として分類してください。一般的なクリーンアップループの再試行を停止してくださいget が予期しない状態を表示する場合は、list で確認してから resume を使用し、別の作成を送信しないでくださいid を再利用しないでくださいidmp-cli schema analysis.analyses.list と idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}' を使用して所有者リストを読み取りますidmp-cli analysis analyses get --params '{"elementId":123,"id":456}' を使用して1つの分析を詳細に読み取りますidmp-cli analysis analysis search --params '{"keyword":"voltage","current":1,"size":20}' でグローバル検索可能性を確認しますidmp-cli element elements path --params '{"elementId":123}' と idmp-cli element fullpath get --params '{"rootElementId":100,"elementId":123}' を使用してビジネスルート証明チェーンを解決してから、idmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-analysis"}' と idmp-cli analysis trigger-types list --params '{"elementId":123,"applyOnSelf":false,"elementTemplateId":456}' で作成前提条件を検証しますidmp-cli analysis analyses create --dry-run --ack-risk --params '{"elementId":123}' --data '{...}' を使用して書き込みパスをプレビューおよび検証してから、idmp-cli analysis analyses get --params '{"elementId":123,"id":456}'、idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}'、idmp-cli analysis analyses resume --dry-run --ack-risk --params '{"elementId":123,"id":456}' でランタイムブランチを証明しますRead ../idmp-shared/SKILL.md first.
Before any write: Follow the 🛑 Destructive op confirmation protocol. Read-only commands stay read-only here, but delete / write / patch flows still require the shared yes-gate.
| Shortcut | Purpose |
|---|---|
+list |
Read analyses under one element. |
+search |
Search analyses globally, including an empty-keyword starting point. |
analysis read flows../idmp-workflow-analysis-create/SKILL.md../idmp-workflow-alert-create/SKILL.md| 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. |
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.rootElementId comes from the business root rather than the current leaf element.trigger-types list is empty on the current owner.applyOnSelf=false, the backend can legitimately expose only Session and Interval, so do not assume DataInput or Event will stay available.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.get, list, and, when needed, resume prove the backend kept the object in the expected runtime state.resume prove the analysis itself worked, classify leaked output-attribute cleanup as a backend boundary instead of a wrong create payload.../idmp-workflow-alert-create/SKILL.md instead of treating it as a generic read or create flow.create reread shows the same name on the persisted object.analysis analyses get and analysis analyses list show the same id, owner scope, and expected state bits.Ready; reread after resume and confirm the runtime state actually changed.rootElementId was part of the write path, keep the element elements path and element fullpath get evidence with the create proof.path, attributes, sub-templates, trigger-types, and new-name before create or edit.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.rootElementId from the business root, not the current element.../idmp-workflow-analysis-create/SKILL.md, especially when the payload must include output.attributes[].applyOnSelf and, for child scope, the selected template.resume it if the expected state is running.idmp-cli schema analysis.analyses.list
idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}'
idmp-cli schema analysis.analyses.get
idmp-cli analysis analyses get --params '{"elementId":123,"id":456}'
idmp-cli schema analysis.analysis.search
idmp-cli analysis analysis search --params '{"keyword":"voltage","current":1,"size":20}'
idmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-analysis"}'
idmp-cli analysis trigger-types list --params '{"elementId":123,"applyOnSelf":true}'
idmp-cli analysis trigger-types list --params '{"elementId":123,"applyOnSelf":false,"elementTemplateId":456}'
idmp-cli schema analysis.analyses.resume
idmp-cli analysis analyses resume --ack-risk --params '{"elementId":123,"id":456}'
trigger-types list changes after applyOnSelf or the child template changes, discard the earlier trigger choice and re-read it.Session or Interval, redesign the analysis around those trigger families or move back to self scope; do not force Event or DataInput.rootElementId is known. Treat “resolved” as element elements path plus element fullpath get agreeing on the same first-level owner.attribute elements attributes-delete still reports the output attribute is referred by the analysis, classify that as a backend cleanup boundary after you have already captured the create or running proof; stop retrying generic cleanup loops.get still shows an unexpected state, verify with list and then use resume instead of sending another create.id from a different element or template scope.idmp-cli schema analysis.analyses.list and idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}'.idmp-cli analysis analyses get --params '{"elementId":123,"id":456}'.idmp-cli analysis analysis search --params '{"keyword":"voltage","current":1,"size":20}'.idmp-cli element elements path --params '{"elementId":123}' and idmp-cli element fullpath get --params '{"rootElementId":100,"elementId":123}', then validate create prerequisites with idmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-analysis"}' and idmp-cli analysis trigger-types list --params '{"elementId":123,"applyOnSelf":false,"elementTemplateId":456}'.idmp-cli analysis analyses create --dry-run --ack-risk --params '{"elementId":123}' --data '{...}', then prove the runtime branch with idmp-cli analysis analyses get --params '{"elementId":123,"id":456}', idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}', and idmp-cli analysis analyses resume --dry-run --ack-risk --params '{"elementId":123,"id":456}'.原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。