claude-skills/

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

last sync 1h ago
スキルOfficialdevelopment

📝idmp-annotation

プラグイン
idmp-plugin

説明

IDMP注釈スキル(医薬品情報の要素に対する注釈を付けるツール)。要素に対する注釈とイベントに対する注釈を区別した状態で、要素の注釈を読み書きする際に使用します。

原文を表示

IDMP annotation skill. Use it to read and write element annotations while keeping element annotations separate from event annotations.

ユースケース

  • 医薬品情報の要素に注釈を付けるとき
  • 要素とイベントの注釈を区別するとき
  • 要素の注釈を読み書きするとき

本文(日本語訳)

注釈(コメント・メモ機能)

先に ../idmp-shared/SKILL.md をお読みください。

このスキルの対象範囲

  • 要素に付属する注釈の読み込み、作成、更新、削除ができます。
  • 要素の注釈と、イベント注釈(event annotations * ファミリーを使用)は分けて管理します。
  • 初回のリスト読み込み後、注釈 ID を使って変更内容を追跡できます。
  • 内容またはタイムウィンドウでフィルタして再読み込みし、変更した正確なメモを確認します。

おすすめのショートカット

ショートカット 用途
+list 1つの要素の注釈をリスト表示。内容でフィルタすることも可能

おすすめの参考資料

操作前に解決が必要な前提情報

情報 必要な理由
注釈の対象範囲 コマンドを選ぶ前に、メモが要素またはイベントのどちらに属するか決定する
所有要素 要素の注釈作成には、最終的な elementId が必要
ターゲット注釈 ID 更新・削除時は、要素 ID ではなく annotationId が必要
確認計画 作成・更新・削除後に注釈リストを再読み込みする方法を決定する

制限付き動作ルール

  • annotation annotation create は要素の注釈のみを記録します。イベント用のメモは event annotations * ファミリーを使用します。
  • annotation annotation updateannotation annotation delete は要素 ID ではなく annotationId に作用します。
  • 注釈の書き込みは、annotation annotation list の再読み込みで期待されたテキストが表示されるか削除が確認されるまで完了しません。
  • annotation annotation list は内容・タイムウィンドウ・小さいページサイズでフィルタでき、全ページに広げる前にフィルタ再読み込みを使用します。
  • annotation annotation list のタイムウィンドウフィルタはエポックミリ秒を想定しています。annotation annotation update がタイムスタンプ文字列を返す場合でも、updateTimeFromupdateTimeTo に入力する前に変換してください。
  • デバッグ用の一時的なメモはワークフロー終了時に削除し、共有環境に古い注釈が蓄積しないようにします。

操作者向けワークフロー

  1. このスキルは要素の注釈にのみ使用します。
  2. 操作者がイベントのタイムラインについて言及している場合は、event annotations * に切り替えます。
  3. まず要素の注釈リストを読み込み、更新または削除の前に annotationId をキャプチャします。
  4. updatedelete は要素自体ではなく、注釈レコードに作用します。
  5. まず内容フィルタで再読み込みし、必要に応じてフィルタなしの最初のページに広げて、最終的なテキストとタイムスタンプを確認します。
  6. update 後に updateTime* フィルタが必要な場合、再読み込み前に返されたタイムスタンプをエポックミリ秒に変換します。

主要なコマンド

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}'

例外的な対応

  • リストが空の場合:「まだ注釈がない」として扱い、製品の不具合ではありません。
  • 読み込みが 404 またはアクセス権エラーを返す:elementId と現在のユーザーのアクセスレベルを確認します。
  • 更新または削除が予期せず失敗:elementId ではなく annotationId を渡したことを確認します。
  • 操作者がイベント用のメモを期待していた:要素コマンドを無理に使わず、event annotations * に切り替えます。
  • 書き込みは成功したがメモが見当たらない:フィルタを解除して結果の最初のページを再読み込みします。
  • 更新は成功したが updateTimeFrom フィルタでメモが見つからない:返された更新時刻をエポックミリ秒に変換してフィルタ付きリストを再試行します。

検証シナリオ

  1. 既知の要素について idmp-cli annotation annotation list で注釈をリスト表示します。
  2. 内容フィルタと小さいページサイズでリストを繰り返し、既知のメモを特定します。
  3. idmp-cli annotation annotation create --ack-risk で一時的な注釈を作成します。
  4. annotationIdidmp-cli annotation annotation update --ack-risk を実行して更新します。
  5. 同じ注釈を annotationId で削除し、リストに表示されなくなったことを確認します。
原文(English)を表示

annotation

Read ../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

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

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 annotations * instead of forcing element commands.
  • A write succeeds but the note still seems missing: remove filters and re-read the first page of results.
  • Update succeeds but updateTimeFrom filtering misses the note: convert the returned update time to epoch milliseconds and retry the filtered list.

Validation scenarios

  1. List annotations for a known element with idmp-cli annotation annotation list.
  2. Repeat the list with a content filter and small page size to isolate one known note.
  3. Create a disposable annotation with idmp-cli annotation annotation create --ack-risk.
  4. Update that annotation by annotationId with idmp-cli annotation annotation update --ack-risk.
  5. Delete the same annotation by annotationId and confirm it no longer appears in the list.

原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。

idmp-plugin:idmp-annotation — Anthropic公式 Claude Skill 日本語版