Command Palette

Search for a command to run...

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

openlayer-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify Openlayer webhooks, which follow the Standard Webhooks specification. Use when setting up an Openlayer webhook endpoint, getting the whsec_…

hookdeckот hookdeck★ 104 звезды на GitHub

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

Openlayer Webhooks

Openlayer is an AI evaluation and observability platform. Workspace webhooks POST a signed JSON event to your HTTPS endpoint when a test is created, updated or deleted, when a test suite finishes a run, and when a project or its governance state (intake, risk, lifecycle) changes. Signatures follow Standard Webhooks, so each delivery carries webhook-id, webhook-timestamp and webhook-signature headers.

When to Use This Skill

  • How do I receive Openlayer webhooks?
  • How do I verify an Openlayer webhook signature (webhook-signature)?
  • Where do I find my Openlayer webhook signing secret (whsec_...)?
  • How do I handle test.created, test.updated, test.deleted or tests.result.updated events?
  • How do I alert when an Openlayer test suite run has failing tests?
  • Why is my Openlayer webhook verification failing, or failing only on retries and replays?

Verification (core)

Header Value
webhook-id Unique per message; retries reuse it. Your idempotency key
webhook-timestamp Unix seconds
webhook-signature One or more space-separated v1,<base64> entries

Signed content is {webhook-id}.{webhook-timestamp}.{raw body}, HMAC-SHA256, base64 output. The key is the base64-decoded part of the whsec_... secret after the prefix. Compare against every v1, entry; ignore other versions. If webhook-id is absent, read svix-id, svix-timestamp and svix-signature instead. The examples use the standardwebhooks library (npm and PyPI):

const { Webhook } = require('standardwebhooks');

// rawBody: exact request body (Buffer or string), NOT re-serialised JSON
function verifyOpenlayer(rawBody, headers, secret = process.env.OPENLAYER_WEBHOOK_SECRET) {
  const p = headers['webhook-id'] ? 'webhook' : 'svix'; // fall back to the svix-* names
  new Webhook(secret).verify(rawBody, {
    'webhook-id': headers[`${p}-id`],
    'webhook-timestamp': headers[`${p}-timestamp`],
    'webhook-signature': headers[`${p}-signature`],
  }, { jsonParse: false }); // throws on a bad signature or stale timestamp → respond 401
}

The library always enforces a fixed 5-minute timestamp window, which is the tolerance Openlayer suggests (for example 5 minutes). Hookdeck retries and replays resend the original webhook-timestamp, so the library rejects them once they are more than 5 minutes old. If you receive through Hookdeck and need late retries to pass, use the manual verifier in references/verification.md, which can drop or widen the window. In Express, read the body with express.raw({ type: '*/*' }) so any content type verifies, and parse JSON only after the check.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Event Type and Payload

Every body is { type, timestamp, data }. The event name is the top-level type, timestamp is the ISO 8601 (UTC) time the event was generated, and the event fields sit under data (data.test for test.*, data.tests for tests.result.updated, data.project plus data.actorId for project.*):

{
  "type": "tests.result.updated",
  "timestamp": "2026-01-21T10:30:00Z",
  "data": {
    "tests": {
      "projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "projectVersionId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "inferencePipelineId": null,
      "total": 6, "passing": 4, "failing": 1, "skipped": 1, "running": 0
    }
  }
}

data.test.type (for example integrity) is the test's own category, not the event type.

Common Event Types

Event Sent when
test.created A test is created (data.test holds the full definition)
test.updated A test's configuration is updated (data.test holds the new state)
test.deleted A test is deleted (data.test has only id)
tests.result.updated A test suite finishes a run: one event per run with total, passing, failing, skipped, running
project.created A project is created, in the app or by an integration
project.updated A project's name, description, owner or tags change (data.changes holds from and to per field)
project.deleted A project is deleted (full project with dateDeleted set; it can be restored)
project.restored A deleted project is restored
project.intake.updated A project's intake answers change (governance)
project.risk.assessed A risk assessment is submitted (governance)
project.risk_exception.updated A risk exception is set or revoked (governance)
project.lifecycle.changed A project advances, is sent back, is retired or is reopened (governance)
project.lifecycle.approved A reviewer approves a project's cur
Полный SKILL.md на GitHub

Установить openlayer-webhooks в Claude Code и Claude Desktop

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

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

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

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

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

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

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

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/openlayer/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл openlayer-webhooks?

Receive and verify Openlayer webhooks, which follow the Standard Webhooks specification. Use when setting up an Openlayer webhook endpoint, getting the whsec_ signing secret, debugging webhook-id / webhook-timestamp / webhook-signature verification, or handling events like test.created, tests.result.updated, project.updated and project.lifecycle.changed.

Как установить скилл openlayer-webhooks?

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

Скилл openlayer-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

Сравнить openlayer-webhooks с