claude-skills/

Anthropic公式スキル・プラグインの日本語ディレクトリ

last sync 1h ago
スキルOfficialdevelopment

🔍idmp-analysis

プラグイン
idmp-plugin

説明

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 pathelement fullpath get を使ってこのルートを確認してから作成ペイロードを送信してください
候補となる分析名 analysis.analyses.new-nameanalysis-template.analyses.new-name には候補となる name(名前)が必要です
トリガーの範囲 applyOnSelf(自身に適用するか)、子テンプレートの範囲、その後に有効なトリガータイプを知る必要があります
出力計画 出力属性を再利用するか新規作成するか、どの valueType(値の型)が必要か、自身または子スコープのどちらに配置するかを決定してください
ランタイム対象 Ready(準備完了)で十分か、またはワークフローは Running(実行中)で終了する必要があり resume(再開)が必要かを決定してください

制約のある実行時の動作

  • 自然言語による分析またはアラートの意図には POST /api/v1/ai/analysis/create を優先的に使用し、返されたドラフトを通常の作成パスを通じて保存してください。構造化されたDTO(データ転送オブジェクト)ワークフローは、ドラフトが不適切な場合または保存が失敗した場合のフォールバックとして使用します
  • analysis.analyses.new-nameanalysis-template.analyses.new-name には候補となる name--ack-risk(リスク承認フラグ)が必要です。所有者スコープだけで呼び出さないでください
  • 要素モードでは、rootElementId は現在の下位要素ではなく、ビジネスルートから取得します
  • 共有環境では、現在の所有者に trigger-types list が空の場合、分析作成はデータを含む下位要素に強制されることがあります
  • 子スコープは自身スコープのトリガーを継承しません。applyOnSelf=false の場合、バックエンド(サーバー側)が SessionInterval のみを公開する可能性があるため、DataInput または Event が利用可能なままであると仮定しないでください
  • 最小限の作成ペイロードには rootElementIdstartAfterCreated、有効な trigger、実際の output.attributes[].attrId 値が必要です。現在のライブ ELE_SUBET フローの場合、子スコープの分析は所有者要素の出力属性を使用でき、output.elementTemplate.id は引き続き子テンプレートを指します
  • 分析の作成は、getlist、必要に応じて resume がバックエンドがオブジェクトを予想されたランタイム状態に保持したことを証明するまで完了しません
  • 現在のライブバックエンドは分析削除で成功を返す可能性がありますが、生成された出力属性は参照された状態のままです。作成、再読み込み、resume が分析自体が機能したことを証明した後、漏れた出力属性のクリーンアップをバックエンドの境界として分類し、作成ペイロードが間違っているとは考えないでください
  • ワークフローがイベントまたは通知を発行する必要がある場合は、一般的な読み取りまたは作成フローとして扱わず、../idmp-workflow-alert-create/SKILL.md に切り替えてください

完了の証拠

  • 予約された名前は、後の create の再読み込みで保存されたオブジェクトに同じ名前が表示される場合にのみ有用です
  • 作成は、analysis analyses getanalysis analyses list が同じ id、所有者スコープ、予想される状態ビットを表示する場合にのみ完了します
  • 成功条件が実行中の分析である場合、Ready で停止せず、resume 後に再読み込みして実行時状態が実際に変わったことを確認してください
  • 共有環境のクリーンアップはベストエフォート(最善努力)です。削除は成功しても出力属性がバックエンド参照漏れを表示し続ける場合は、漏れたIDをレポートに保持し、既に証明された作成または実行中の分析をペイロード形状の失敗に格下げしないでください
  • rootElementId が書き込みパスの一部だった場合は、element elements pathelement fullpath get の証拠を作成証明に保持してください

保持すべき製品動作

  • 作成または編集の前に、pathattributessub-templatestrigger-typesnew-name を読み取ってください
  • 自然言語による作成要求の場合は、AI ドラフトエンドポイントを優先して使用し、構造化された作成フローをフォールバックとして保持してください
  • analysis.analyses.new-nameanalysis-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 のみを表示する場合は、それらのトリガーファミリーの周りで分析を再設計するか、自身スコープに戻してください。EventDataInput を無理に使用しないでください
  • 要素パスがビジネスルートに解決されない場合は、rootElementId が判明するまで分析を作成しないでください。「解決」を element elements pathelement fullpath get が同じ第1レベル所有者に同意することと見なしてください
  • 出力属性がドラフト分析用にのみ作成された場合、ドラフトがキャンセルされたら一時的な出力をもう一度試行する前に削除してください
  • 削除は成功しても attribute elements attributes-delete が出力属性が分析によって参照されていることを報告する場合は、既に作成または実行中証明をキャプチャした後、それをバックエンドクリーンアップ境界として分類してください。一般的なクリーンアップループの再試行を停止してください
  • 作成または更新は成功しても get が予期しない状態を表示する場合は、list で確認してから resume を使用し、別の作成を送信しないでください
  • 検索結果があいまいな場合は、編集する前に所有者要素を確認してください。別の要素またはテンプレートスコープから id を再利用しないでください

検証シナリオ

  1. idmp-cli schema analysis.analyses.listidmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}' を使用して所有者リストを読み取ります
  2. idmp-cli analysis analyses get --params '{"elementId":123,"id":456}' を使用して1つの分析を詳細に読み取ります
  3. idmp-cli analysis analysis search --params '{"keyword":"voltage","current":1,"size":20}' でグローバル検索可能性を確認します
  4. 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}' で作成前提条件を検証します
  5. 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

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.
  • 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 workflow must emit events or notifications, switch to ../idmp-workflow-alert-create/SKILL.md instead of treating it as a generic read or create flow.

Evidence of completion

  • A reserved name is only useful when the later create reread shows the same name on the persisted object.
  • A create is only complete when analysis analyses get and analysis analyses list show the same id, owner scope, and expected state bits.
  • If the success condition is a running analysis, do not stop at Ready; reread after resume and 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 rootElementId was part of the write path, keep the element elements path and element fullpath get evidence with the create proof.

Product behavior to preserve

  • Read path, attributes, sub-templates, trigger-types, and new-name before 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-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, the create payload needs rootElementId from 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 include output.attributes[].
  • Trigger type choices depend on applyOnSelf and, 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 resume it 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 list changes after applyOnSelf or the child template changes, discard the earlier trigger choice and re-read it.
  • If child-scope trigger types only show Session or Interval, redesign the analysis around those trigger families or move back to self scope; do not force Event or DataInput.
  • If the element path does not resolve to a business root, do not create the analysis until rootElementId is known. Treat “resolved” as element elements path plus element fullpath get agreeing 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-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.
  • If create or update succeeds but get still shows an unexpected state, verify with list and then use resume instead of sending another create.
  • If search results are ambiguous, confirm the owner element before editing; do not reuse an id from a different element or template scope.

Validation scenarios

  1. Read the owner list with idmp-cli schema analysis.analyses.list and idmp-cli analysis analyses list --params '{"elementId":123,"current":1,"size":20}'.
  2. Read one analysis in detail with idmp-cli analysis analyses get --params '{"elementId":123,"id":456}'.
  3. Check global discoverability with idmp-cli analysis analysis search --params '{"keyword":"voltage","current":1,"size":20}'.
  4. Resolve the business-root proof chain with 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}'.
  5. 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 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 による自動翻訳です。