スキルOfficialdevelopment
📋idmp-event
- プラグイン
- idmp-plugin
- ソース
- GitHub で見る ↗
説明
IDMP イベント対応スキル IDMPの未確認イベントワークフロー(対応待ちのイベントを処理する一連の流れ)を通じて、以下の機能を提供します: - イベントの一覧表示 - イベントの検索 - イベントの確認 - イベントの再送信 - イベントへの注釈追加 - イベント周辺情報(文脈)の確認・読み込み
原文を表示
IDMP event skill for listing, searching, confirming, resending, annotating, and reading event context through the real unacknowledged-event workflow.
ユースケース
- ✓対応待ちのイベントを処理する
- ✓イベント情報を検索・確認する
- ✓イベントを再送信する必要があるとき
- ✓イベントに注釈を追加するとき
- ✓イベントの文脈情報を確認したいとき
本文(日本語訳)
event
まず ../idmp-shared/SKILL.md をお読みください。
データ書き込み前の必須手順: 🛑 破壊的操作の確認プロトコルに従ってください。読み取り専用コマンドはこのスキルでも読み取り専用のままですが、削除・書き込み・更新の操作には共通の許可ゲートが必要です。
おすすめのショートカット
| ショートカット | 目的 |
|---|---|
+list |
ページングと条件フィルターを使ってイベントを一覧表示。 |
+search |
イベント全体を検索。 |
+count |
未確認のイベント件数を読み取り。 |
+get |
1つのイベントの詳細を読み取り。 |
おすすめの参考資料
操作前に確認が必要な文脈情報
| 確認項目 | 必要な理由 |
|---|---|
| 障害の範囲 | イベント生成の失敗、配信の失敗、またはその両方のどれをデバッグしているかを明確にする必要があります。 |
| イベントのスコープ | eventId、analysisId、または十分に限定された検索範囲が必要です。無関係なイベントに作用するのを避けるため。 |
| 操作者の意図 | このセッション内で確認・再送信・注記追加が本当に許可されているかを確認する必要があります。 |
| 検証ウィンドウ | イベントが見つかった、確認された、または再試行されたことを証明するために、どの再読取範囲とフィルターを使うか決める必要があります。 |
制約のある動作仕様
- 共有環境では
status=Unackだけでは常に信頼できません。生成元の分析が既に分かっている場合は、イベントが本当に見つからないと判断する前にanalysisIdでイベントを再読取してください。 confirmまたはresendを実行する前にイベントの詳細と文脈を記録してください。両コマンドとも操作者が目に見える副作用があります。resendは配信の再試行のみです。イベントの確認(acknowledgement)やイベントの再作成は行いません。resendが成功しても、新しい通知履歴行が必ず作成されるわけではありません。配信履歴は詳細ベースで、遅延が生じたり、イベントの最小通知間隔によって制限される場合があります。- 共有環境では、リンク先の分析が既に削除されているため
event events items呼び出しが失敗する古いイベントが表示される場合があります。CLIパスが誤りだと判断する前に、より新しいイベントを試してください。 - アラートルールは、このイベント読み取りワークフローではなく
../idmp-workflow-alert-create/SKILL.mdから作成してください。
保つべき製品の動作
- 未確認イベントのパスから始めてください:件数確認 → 一覧/検索 → 詳細 → 文脈確認 → 確認または再送信 → 注記追加。
- 「確認」と「一括確認」を正式な確認ワークフローとして扱います。
itemsを使ってイベント文脈を調べた後に通知の再試行を行います。annotationsを使ってイベントに操作者のメモを添付します。- アラートルールは、イベント読み取りワークフローからではなくアラートワークフローから作成します。
主要なコマンド
idmp-cli schema event.count.list
idmp-cli event count list
idmp-cli schema event.events.list
idmp-cli event events list --params '{"current":1,"size":20}'
idmp-cli event events search --params '{"keyword":"overcurrent","current":1,"size":20}'
idmp-cli event events get --params '{"eventId":123}'
idmp-cli event events items --params '{"eventId":123}'
idmp-cli event events confirm --ack-risk --params '{"eventId":123}'
idmp-cli event events confirm --dry-run --ack-risk --params '{"eventId":123}'
idmp-cli event confirm create --ack-risk --data '[123,456]'
idmp-cli event confirm create --dry-run --ack-risk --data '[123,456]'
idmp-cli event events resend --dry-run --ack-risk --params '{"eventId":123}'
idmp-cli event annotations list --params '{"eventId":123}'
例外と障害への対応
- 確認後にイベントが未確認ビューから消えた場合、それはデータ損失ではなく想定された確認動作として扱います。
resendが成功した場合、通知配信の再試行のみが行われます。イベントの確認や上書きは行われません。resendは成功しても新しい履歴行が表示されない場合は、通知履歴の再読取範囲を広げて、再試行が何も効果がないと判断する前に通知のしきい値制限を検討します。itemsまたはannotationsが空の場合は、確認/再送信を繰り返さずにイベント詳細と通知チェックに進みます。- 確認または再送信が失敗した場合は、再試行をやめて詳細・文脈・通知履歴を調査した後に次の操作に進みます。
- リスト結果がノイズが多い場合は、ページ全体から確認するのではなく、件数確認・検索・詳細を使ってワークフローを絞り込みます。
検証シナリオ
idmp-cli schema event.count.listとidmp-cli event count listで未確認イベントのワークフローを開始します。idmp-cli event events list --params '{"current":1,"size":20}'とidmp-cli event events search --params '{"keyword":"overcurrent","current":1,"size":20}'で現在のキューを読み取ります。idmp-cli event events get --params '{"eventId":123}'とidmp-cli event events items --params '{"eventId":123}'で1つのイベントを詳しく調べます。idmp-cli event events confirm --ack-risk --params '{"eventId":123}'で1つのイベントを確認してから、idmp-cli event confirm create --ack-risk --data '[123,456]'で一括確認を実行するか、--dry-runで事前確認します。idmp-cli event events resend --dry-run --ack-risk --params '{"eventId":123}'とidmp-cli event annotations list --params '{"eventId":123}'で後続操作をプレビューします。
原文(English)を表示
event
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 |
List events with paging and element filters. |
+search |
Search events globally. |
+count |
Read the count of unacknowledged events. |
+get |
Read one event in detail. |
Recommended references
Missing context to resolve first
| Context | Why it must be resolved before mutation |
|---|---|
| Failure boundary | Decide whether you are debugging missing event generation, missing delivery, or both. |
| Event scope | You need an eventId, an analysisId, or a narrow enough search scope to avoid acting on the wrong event. |
| Operator intent | Confirm whether acknowledgement, resend, or annotation is actually allowed in this session. |
| Verification window | Decide which reread window and filters will prove the event was found, acknowledged, or retried. |
Constrained live behaviors
status=Unackalone is not always reliable in shared environments; when you already know the producer analysis, reread events withanalysisIdbefore deciding the event is missing.- Capture event detail and context before you run
confirmorresend; both commands have operator-visible side effects. resendretries delivery only. It does not acknowledge or recreate the event.- A successful
resenddoes not guarantee a fresh top-level notification-history row. Delivery history is detail-based, can lag, and can be throttled by the event's minimum notification interval. - Shared environments can surface stale events whose
event events itemscall fails because the linked analysis was already deleted; try a fresher event before assuming the CLI path is wrong. - Create alert rules from
../idmp-workflow-alert-create/SKILL.md, not from this event read workflow.
Product behavior to preserve
- Start with the unacknowledged-event path: count, list/search, detail, context, confirm or resend, then annotations.
- Treat confirm and batch confirm as the real acknowledgement workflow.
- Use
itemsto inspect event context before retrying notifications. - Use
annotationsto keep operator notes with the event. - Create alert rules from alert workflows, not from the event read workflow.
Key commands
idmp-cli schema event.count.list
idmp-cli event count list
idmp-cli schema event.events.list
idmp-cli event events list --params '{"current":1,"size":20}'
idmp-cli event events search --params '{"keyword":"overcurrent","current":1,"size":20}'
idmp-cli event events get --params '{"eventId":123}'
idmp-cli event events items --params '{"eventId":123}'
idmp-cli event events confirm --ack-risk --params '{"eventId":123}'
idmp-cli event events confirm --dry-run --ack-risk --params '{"eventId":123}'
idmp-cli event confirm create --ack-risk --data '[123,456]'
idmp-cli event confirm create --dry-run --ack-risk --data '[123,456]'
idmp-cli event events resend --dry-run --ack-risk --params '{"eventId":123}'
idmp-cli event annotations list --params '{"eventId":123}'
Exception and failure handling
- If an event disappears from the unacknowledged view after confirm, treat that as expected acknowledgement behavior rather than data loss.
- If
resendsucceeds, expect notification delivery to retry only; it does not acknowledge or rewrite the event. - If
resendsucceeds but no fresh history row appears, widen the notification-history reread and consider notification throttling before assuming the retry did nothing. - If
itemsorannotationsis empty, continue with event detail and notification checks instead of repeating confirm/resend blindly. - If confirm or resend fails, stop retrying and inspect detail, context, and notification history before the next action.
- If list results look noisy, narrow the workflow with count, search, and detail rather than acknowledging from a broad page.
Validation scenarios
- Start the unacknowledged workflow with
idmp-cli schema event.count.listandidmp-cli event count list. - Read the current queue with
idmp-cli event events list --params '{"current":1,"size":20}'andidmp-cli event events search --params '{"keyword":"overcurrent","current":1,"size":20}'. - Inspect one event with
idmp-cli event events get --params '{"eventId":123}'andidmp-cli event events items --params '{"eventId":123}'. - Acknowledge a single event with
idmp-cli event events confirm --ack-risk --params '{"eventId":123}', then run batch acknowledgement withidmp-cli event confirm create --ack-risk --data '[123,456]'or preview it first with--dry-run. - Preview follow-up actions with
idmp-cli event events resend --dry-run --ack-risk --params '{"eventId":123}'andidmp-cli event annotations list --params '{"eventId":123}'.
原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。