スキルOfficialdevelopment
📝idmp-annotation
- プラグイン
- idmp-plugin
- ソース
- GitHub で見る ↗
説明
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 updateとannotation annotation deleteは要素 ID ではなくannotationIdに作用します。- 注釈の書き込みは、
annotation annotation listの再読み込みで期待されたテキストが表示されるか削除が確認されるまで完了しません。 annotation annotation listは内容・タイムウィンドウ・小さいページサイズでフィルタでき、全ページに広げる前にフィルタ再読み込みを使用します。annotation annotation listのタイムウィンドウフィルタはエポックミリ秒を想定しています。annotation annotation updateがタイムスタンプ文字列を返す場合でも、updateTimeFromやupdateTimeToに入力する前に変換してください。- デバッグ用の一時的なメモはワークフロー終了時に削除し、共有環境に古い注釈が蓄積しないようにします。
操作者向けワークフロー
- このスキルは要素の注釈にのみ使用します。
- 操作者がイベントのタイムラインについて言及している場合は、
event annotations *に切り替えます。 - まず要素の注釈リストを読み込み、更新または削除の前に
annotationIdをキャプチャします。 updateとdeleteは要素自体ではなく、注釈レコードに作用します。- まず内容フィルタで再読み込みし、必要に応じてフィルタなしの最初のページに広げて、最終的なテキストとタイムスタンプを確認します。
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フィルタでメモが見つからない:返された更新時刻をエポックミリ秒に変換してフィルタ付きリストを再試行します。
検証シナリオ
- 既知の要素について
idmp-cli annotation annotation listで注釈をリスト表示します。 - 内容フィルタと小さいページサイズでリストを繰り返し、既知のメモを特定します。
idmp-cli annotation annotation create --ack-riskで一時的な注釈を作成します。annotationIdでidmp-cli annotation annotation update --ack-riskを実行して更新します。- 同じ注釈を
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
contentor 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 createwrites element annotations only; event notes use theevent annotations *family.annotation annotation updateandannotation annotation deleteact onannotationId, not on the owner element.- Annotation writes are not complete until
annotation annotation listreread shows the expected text or confirms deletion. annotation annotation listsupportscontent, time windows, and small page sizes, so use filtered rereads before widening to the full page.annotation annotation listtime-window filters expect epoch milliseconds, even thoughannotation annotation updatecan return a timestamp string. Convert the returned time before you feed it back intoupdateTimeFromorupdateTimeTo.- Disposable debug notes should be deleted when the workflow ends so shared environments do not accumulate stale annotations.
Operator workflow
- Use this skill for element annotations only.
- If the operator is discussing an event timeline, switch to
event annotations *. - Read the element annotation list first and capture the
annotationIdbefore any update or delete. updateanddeleteoperate on the annotation record, not on the element itself.- Re-read with a
contentfilter first, then widen to the unfiltered first page if needed, to confirm the final text and timestamps. - When you need an
updateTime*filter afterupdate, 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
elementIdand the current user’s access level. - Update or delete fails unexpectedly: confirm you passed
annotationId, notelementId. - 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
updateTimeFromfiltering misses the note: convert the returned update time to epoch milliseconds and retry the filtered list.
Validation scenarios
- List annotations for a known element with
idmp-cli annotation annotation list. - Repeat the list with a content filter and small page size to isolate one known note.
- Create a disposable annotation with
idmp-cli annotation annotation create --ack-risk. - Update that annotation by
annotationIdwithidmp-cli annotation annotation update --ack-risk. - Delete the same annotation by
annotationIdand confirm it no longer appears in the list.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。