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.
npx skills add cosmix/loom --skill loom-webhooksgit clone --depth 1 https://github.com/cosmix/loomWrote 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.
[](https://agentmods.dev/skills/cosmix/loom/loom-webhooks)<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.
<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>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.
| Model | Per session | Once 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 |
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 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.stringifyreorders 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.timingSafeEqualthrows 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)
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.
- 2mo ago Changed · +14 tokens per session 124b32a96648
- 2mo ago First seen · 274 lines · 10 tokens per session scan C c925c1d98970
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.
loom-webhooks compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| loom-webhookscosmix/loom | Skill | 66 | yesterday | MIT | C | 24 | Claude Code, Codex |
| API Discoverability for Agentsniels-emmer/myace | Skill | 1 | yesterday | MIT | A | 51 | Claude Code, Codex |
| durable-objectscloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 22 | Claude Code |
| sandbox-nextcloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 39 | Claude Code |
| cloudflarecloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 103 | Claude Code |
| cloudflare-email-servicecloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 21 | Claude Code |
| workers-best-practicescloudflare/skills | Skill | 3.5k | 5d ago | Apache-2.0 | A | 25 | Claude Code |