loom-webhooks

loom-webhooks is a skill for Claude Code, Codex from cosmix/loom. It costs 24 tokens per session (3,321 once invoked), scanned C, original, MIT.

A guide to building and receiving webhooks, which are HTTP messages that notify another system when an event happens. It covers signing, replay protection, duplicate delivery, and server-side request risks.

In plain words
What is it for?
Use it when connecting services through event callbacks, validating incoming webhook requests, or sending events to customer-provided URLs.
Why use it?
It helps prevent forged requests, repeated event processing, broken signature checks, and unsafe outbound requests. It also explains why webhook consumers must safely handle duplicate messages.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when connecting services through event callbacks, validating incoming webhook requests, or sending events to customer-provided URLs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cosmix/loom/loom-webhooks
View source ↗ cosmix/loom
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add cosmix/loom --skill loom-webhooks
Clone the repo
git clone --depth 1 https://github.com/cosmix/loom

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for loom-webhooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/cosmix/loom/loom-webhooks/github.svg)](https://agentmods.dev/skills/cosmix/loom/loom-webhooks)
Your own site
<a href="https://agentmods.dev/skills/cosmix/loom/loom-webhooks"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-webhooks/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for loom-webhooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmix/loom/loom-webhooks"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-webhooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,321 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00024 $0.03321
Opus 5.5 $0.00010 $0.01328
Sonnet 5.5 $0.00005 $0.00664
Haiku 4.5 $0.00002 $0.00332

Measured 2mo ago against content hash 124b32a96648, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

loom-webhooks scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

- Resolve the hostname and **block private/loopback/link-local/metadata ranges**: `127.0.0.0/8`, `10/8`, `172.16/12`, `192.168/16`, `169.254.0.0/16` (incl. `169.254.169.254` cloud metadata), `::1`, `fc00::/7`, `fe80::/10
skills/loom-webhooks/SKILL.md · 274 lines

How it starts

The opening of the file, as written. The whole thing — 274 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Webhooks

Overview

HTTP callbacks that push events to external systems instead of polling. The hard parts are all correctness/security: signing over the right bytes, timing-safe verification, replay protection, at-least-once delivery + idempotent consumers, and SSRF on the sender. This skill is organized sender-side vs receiver-side, with the traps called out.

The non-negotiables (read first)

  • Sign/verify over the RAW request body, not re-serialized JSON. JSON.parse → JSON.stringify reorders keys and changes whitespace, breaking the HMAC. Receiver must read raw bytes before any JSON body parser runs.
  • Timing-safe compare for signatures — never ===. And guard length first: crypto.timingSafeEqual throws on unequal-length buffers.
  • Timestamped signatures + a tolerance window to blunt replay; dedup by event id for the rest.
  • At-least-once delivery is the only realistic guarantee ⇒ duplicates will arrive ⇒ consumers must be idempotent.
  • Verify before you trust or parse. For security-critical actions, treat the payload as a hint and refetch canonical state from your API.
  • Sender makes outbound requests to user-supplied URLs ⇒ SSRF surface. Validate destinations; block internal ranges.

Event & subscription model

interface WebhookEvent {
  id: string;            // stable, unique → idempotency + replay key
  type: string;          // "order.created" — resource.action
  created: number;       // Unix seconds
  apiVersion: string;    // payload schema version
  data: {
    object: Record<string, unknown>;
    previousAttributes?: Record<string, unknown>; // deltas on updates
  };
}

interface WebhookEndpoint {
  id: string;
  url: string;
  secret: string;        // per-endpoint, rotatable
  events: string[];      // ["order.*", "payment.completed", "*"]
  status: "active" | "disabled";
}

Naming: resource.action (order.created, payment.failed). Support wildcards (order.*, *).

Thin vs fat events (design decision)

Read the full file on GitHub · 274 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +14 tokens per session 124b32a96648
  2. 2mo ago First seen · 274 lines · 10 tokens per session scan C c925c1d98970

Subscribe to this mod's changes

loom-webhooks is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 24 tokens to every session and 3,321 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 1 finding (cloud metadata endpoint). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

loom-webhooks compared with skills from other repositories

loom-webhooks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-webhookscosmix/loomSkill66yesterdayMITC24Claude Code, Codex
API Discoverability for Agentsniels-emmer/myaceSkill1yesterdayMITA51Claude Code, Codex
durable-objectscloudflare/skillsSkill3.5k5d agoApache-2.0A22Claude Code
sandbox-nextcloudflare/skillsSkill3.5k5d agoApache-2.0A39Claude Code
cloudflarecloudflare/skillsSkill3.5k5d agoApache-2.0A103Claude Code
cloudflare-email-servicecloudflare/skillsSkill3.5k5d agoApache-2.0A21Claude Code
workers-best-practicescloudflare/skillsSkill3.5k5d agoApache-2.0A25Claude Code