Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

io-events-filtering

БесплатноБез исполняемых скриптовНе проверен

Use when the user wants to filter events, test event registrations with sample events, or manage subscriber defined filters — phrases like "add filter"…

adobeот adobe★ 342 звезды на GitHub

Об этом скилле

Mandatory prerequisite: Before starting this skill, read and apply Common Skill Rules.

I/O Events — Filtering & Sample Events

Before starting: invoke the io-events-registration skill.

Sample Events Flow

Trigger when the user asks about sample events, wants to test their registration, or says things like "show me a sample event", "test my registration", "what does the event look like", "send a test event".

Step 1 — Check availability

Call check_sample_event with providerId and eventCode.

  • If { available: false } → tell the user: "No sample event is available for this event type." and stop.
  • If { available: true } → proceed to Step 2.

Step 2 — Ask the user

"A sample event is available. Would you like to: 1. View the sample payload 2. Send it to your registration as-is (for testing) 3. Send a custom version of it (edit the payload before sending) 4. All of the above"

Step 3a — View sample payload

Call get_sample_event with providerId and eventCode. Display the result:

📦 Sample Event

Format:  cloud_events_v1
Payload:
{
  "specversion": "1.0",
  "type": "ai_cloud_docs_deleted",
  ...
}

Step 3b — Send to registration (as-is)

Call get_registrations_for_workspace to fetch existing registrations. Show as a numbered list and ask the user to pick one:

1. My Journal Reg     (journal)   ID: reg-abc123
2. My Webhook Reg     (webhook)   ID: reg-def456

Call post_sample_event with providerId, eventCode, registrationId and no custom payload.

  • If { posted: true } → "✓ Sample event sent to your registration successfully."
  • If { posted: false } → "This event type does not support posting sample events."

Step 3c — Send a custom event

Call get_sample_event to fetch the sample payload (if not already done in Step 3a).

To determine the format, use event_delivery_format from the provider returned by list_event_providers — not the format field on the sample payload.

CloudEvents format (event_delivery_format === "cloud_events_v1"):

Parse sample_payload as JSON and show the user every field — marking type and source as read-only (Adobe enforces these server-side):

📦 Sample Event — customise before sending:

Editable:
  specversion:      "1.0"
  id:               "abc-123"
  time:             "2026-06-30T10:00:00Z"
  datacontenttype:  "application/json"
  data:             { ... }

Read-only (set by Adobe):
  type:    "{type value}"
  source:  "{source value}"

Change any editable field and I'll send it.

Wait for the user's changes. Build the final payload by merging their edits with the canonical type and source from the original sample.

Other formats (event_delivery_format is not "cloud_events_v1"):

Show the full sample_payload as editable — user can change any field including envelope fields. No restrictions apply.

Once ready, confirm before sending:

I'll send this custom event to your registration. Proceed?

Call get_registrations_for_workspace if a registration hasn't been selected yet → show list → user picks.

Call post_sample_event with providerId, eventCode, registrationId, and payload set to the merged payload.

  • If { posted: true } → "✓ Custom event sent to your registration successfully."
  • If { posted: false } → "This event type does not support posting sample events."

Subscriber Filter Flow

Trigger when user says "add filter", "create filter", "subscriber filter", "filter events", "define filter", "filter registration", "validate filter".

Subscriber Defined Filters use AWS Event Ruler JSON syntax to match against event payloads. Only events that match the filter reach the registration's endpoint.


Step F1 — Resolve registration context

If consumerOrgId, projectId, workspaceId are not already known, invoke the io-events-registration skill Step 1 first.

Call get_registrations_for_workspace to get all registrations. Then validate eligibility:

Step F1a — Filter by delivery type

Exclude any registration with delivery_type: "aws_eventbridge" — AWS EventBridge handles its own filtering natively.

Step F1b — Validate CloudEvents v1 format

For the remaining registrations, collect all unique provider_id values from their events_of_interest. Call list_event_providers with consumerOrgId and imsOrgCode to get provider details.

For each provider, check its event_delivery_format field:

  • "cloud_events_v1" → eligible ✅
  • "adobe_io" → not eligible — Subscriber Defined Filters are not supported for the Adobe I/O format ❌
  • Any other value (or missing) → not eligible ❌

A registration is fully eligible if all its providers use "cloud_events_v1". A registration is partially eligible if only some providers do — show it but warn that events from "adobe_io" providers will be delivered unfiltered. A registration i

Полный SKILL.md на GitHub

Установить io-events-filtering в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

CHANGELOG.mdreferences/common-rules.md

FAQ

Что делает скилл io-events-filtering?

Use when the user wants to filter events, test event registrations with sample events, or manage subscriber defined filters — phrases like "add filter", "create filter", "subscriber filter", "filter events", "define filter", "filter registration", "validate filter", "update filter", "edit filter", "delete filter", "remove filter", "show my filters", "list filters", "show sample event", "test my registration", "send test event", "what does the event look like", "sample payload", "send a test event", "view sample payload", "custom event payload", "send custom event".

Как установить скилл io-events-filtering?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл io-events-filtering запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить io-events-filtering с