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.00010 | $0.03307 |
| Opus 5 | $0.00005 | $0.01654 |
| Sonnet 5 | $0.00002 | $0.00661 |
| Haiku 4.5 | $0.00001 | $0.00331 |
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 6d 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.
- 6d ago First seen · 274 lines · 10 tokens per session scan C c925c1d98970
loom-webhooks is a skill published in the GitHub repository cosmix/loom (54 stars, last pushed today), licensed MIT. It adds 10 tokens to every session and 3,307 once invoked, about $0.0001 per session on Opus 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.
Other skills, from other repositories
API Discoverability for Agents
Making self-hosted services agent-discoverable — bake in a machine-readable API description (OpenAPI spec or a minimal API.md) when building, and discover-first (spec paths, repo search) before probing when integrating.
sandbox-stable
Build or maintain Cloudflare Sandbox apps on the stable @cloudflare/sandbox package. Use sandbox-next for preview apps and sandbox-migrate-to-next for stable-to-preview migrations.
sandbox-next
Build or maintain Cloudflare Sandbox apps on @cloudflare/sandbox@next (SDK 1.0 preview). Use sandbox-migrate-to-next when porting a stable app.
durable-objects
Build, debug, or review Cloudflare Durable Objects code for persistent state and coordination.
cloudflare
Discover and choose Cloudflare products for apps, APIs, AI agents, storage, networking, and security. Use for architecture and product selection, including when the user describes a need without naming a Cloudflare product; then find the relevant skill or documentation.
cloudflare-email-service
Implement or troubleshoot Cloudflare Email Sending and Email Routing integrations and their delivery configuration.