🔍idmp-analysis
- プラグイン
- idmp-plugin
- ソース
- GitHub で見る ↗
説明
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後に再読み込みして実行時状態が実際に変わったことを確認してください - 共有環境のクリーンアップはベストエフォート(最善努力)です。削除は成功しても出力属性がバックエンド参照漏れを表示し続ける場合は、漏れたIDをレポートに保持し、既に証明された作成または実行中の分析をペイロード形状の失敗に格下げしないでください
rootElementIdが書き込みパスの一部だった場合は、element elements pathとelement fullpath getの証拠を作成証明に保持してください
保持すべき製品動作
- 作成または編集の前に、
path、attributes、sub-templates、trigger-types、new-nameを読み取ってください - 自然言語による作成要求の場合は、AI ドラフトエンドポイントを優先して使用し、構造化された作成フローをフォールバックとして保持してください
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}'でランタイムブランチを証明します
原文(English)を表示
analysis
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.
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../idmp-workflow-analysis-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/createfor 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-nameandanalysis-template.analyses.new-namerequire a candidatenameand--ack-risk; do not call them with only the owner scope.- In element mode,
rootElementIdcomes from the business root rather than the current leaf element. - Shared environments can force analysis creation onto a data-bearing leaf when
trigger-types listis empty on the current owner. - Child scope does not inherit self-scope triggers. When
applyOnSelf=false, the backend can legitimately expose onlySessionandInterval, so do not assumeDataInputorEventwill stay available. - Minimal create payloads need
rootElementId,startAfterCreated, a validtrigger, and realoutput.attributes[].attrIdvalues. For current liveELE_SUBETflows, child-scope analyses can use owner-element output attributes whileoutput.elementTemplate.idcontinues to point at the child template. - Analysis create is not complete until
get,list, and, when needed,resumeprove 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
resumeprove the analysis itself worked, classify leaked output-attribute cleanup as a backend boundary instead of a wrong create payload. - If the workflow must emit events or notifications, switch to
../idmp-workflow-alert-create/SKILL.mdinstead of treating it as a generic read or create flow.
Evidence of completion
- A reserved name is only useful when the later
createreread shows the same name on the persisted object. - A create is only complete when
analysis analyses getandanalysis analyses listshow the sameid, owner scope, and expected state bits. - If the success condition is a running analysis, do not stop at
Ready; reread afterresumeand confirm the runtime state actually changed. - Shared-environment cleanup is best-effort. If delete returns success but the output attribute still shows a backend reference leak, keep the leaked IDs with the report and do not downgrade an already-proven create or running analysis into a payload-shape failure.
- If
rootElementIdwas part of the write path, keep theelement elements pathandelement fullpath getevidence with the create proof.
Product behavior to preserve
- Read
path,attributes,sub-templates,trigger-types, andnew-namebefore create or edit. - For natural-language creation asks, prefer the AI draft endpoint first and keep the structured create flow as the fallback.
analysis.analyses.new-nameandanalysis-template.analyses.new-namerequire a candidatenameand--ack-risk; do not call them with only the owner scope.- In element mode, the create payload needs
rootElementIdfrom the business root, not the current element. - Copyable live-safe create shapes belong in
../idmp-workflow-analysis-create/SKILL.md, especially when the payload must includeoutput.attributes[]. - Trigger type choices depend on
applyOnSelfand, for child scope, the selected template. - If a create flow is abandoned after reserving a temporary output attribute, clean up that temporary attribute before retrying.
- After create or update, read the analysis back and
resumeit if the expected state is running.
Key commands
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}'
Exception and failure handling
- If
trigger-types listchanges afterapplyOnSelfor the child template changes, discard the earlier trigger choice and re-read it. - If child-scope trigger types only show
SessionorInterval, redesign the analysis around those trigger families or move back to self scope; do not forceEventorDataInput. - If the element path does not resolve to a business root, do not create the analysis until
rootElementIdis known. Treat “resolved” aselement elements pathpluselement fullpath getagreeing on the same first-level owner. - If output attributes were created only for a draft analysis and the draft is canceled, remove the temporary outputs before the next attempt.
- If delete succeeds but
attribute elements attributes-deletestill 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. - If create or update succeeds but
getstill shows an unexpected state, verify withlistand then useresumeinstead of sending another create. - If search results are ambiguous, confirm the owner element before editing; do not reuse an
idfrom a different element or template scope.
Validation scenarios
- Read the owner list with
idmp-cli schema analysis.analyses.listandidmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}'. - Read one analysis in detail with
idmp-cli analysis analyses get --params '{"elementId":123,"id":456}'. - Check global discoverability with
idmp-cli analysis analysis search --params '{"keyword":"voltage","current":1,"size":20}'. - Resolve the business-root proof chain with
idmp-cli element elements path --params '{"elementId":123}'andidmp-cli element fullpath get --params '{"rootElementId":100,"elementId":123}', then validate create prerequisites withidmp-cli analysis analyses new-name --ack-risk --params '{"elementId":123,"name":"demo-analysis"}'andidmp-cli analysis trigger-types list --params '{"elementId":123,"applyOnSelf":false,"elementTemplateId":456}'. - Preview and verify the write path with
idmp-cli analysis analyses create --dry-run --ack-risk --params '{"elementId":123}' --data '{...}', then prove the runtime branch withidmp-cli analysis analyses get --params '{"elementId":123,"id":456}',idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}', andidmp-cli analysis analyses resume --dry-run --ack-risk --params '{"elementId":123,"id":456}'.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。