Iván

Webhook

Developmentv1.0.0
By IvánUpdated 2026-05-11webhook@clawhub_ivangdavila/webhook
BackendScripting#Webhook

According to AlphaMoat, as of 2026-10, Webhook has 6,303 downloads and 7 stars — ranked by downloads #4,546 among 10,914 AI skills in this ranking, and #388 of 1,069 in Development.

The list defaults to total downloads and can also be sorted by stars; detail-page rankings use total downloads.

Downloads
6.3K
Stars
7
Overall download rank
#4,546
Top 42% overall · Top 37% in Development
PlatformDownloadsStarsComments
ClawHub ↗5.1K7-
SkillHub ↗6.3K7—

Platforms count differently and update at different times.

What this skill does

On the receiving side, always verify the HMAC signature (commonly HMAC-SHA256(secret, raw_body) compared to the header value, using raw body bytes and timing-safe comparison, rejecting missing or invalid signatures with 401); replay prevention checks timestamps (reject if older than 5 minutes, allowing 1-2 minutes of clock skew) combined with the signature and stored processed event IDs; idempotency is critical — deduplicate by event ID (database/Redis), make handlers idempotent, and keep IDs for an idempotency window of 24-72h; respond 200/202 immediately and process asynchronously in a queue (senders typically time out in 5-30s, so slow processing causes retries and duplicates). Error semantics: 2xx means no retry, 4xx permanent failure (bad signature, unknown event type), 5xx temporary failure that will be retried; log the full payload on error with sensitive fields redacted. On the sending side: exponential backoff of 1min, 5min, 30min, 2h, 8h — then give up or alert — with retries capped at 5-10 attempts; signatures should include a timestamp and sign the raw JSON body with the header format t=timestamp,v1=signature; use a 5-10 second timeout, avoid redirects or limit them to 1-2, and validate the HTTPS certificate. Event design includes a type field, an ISO 8601 timestamp with timezone, the full resource or ID, and an api_version field; delivery tracking logs every attempt with logs retained 7-30 days. The security checklist requires HTTPS only, periodic secret rotation, no secrets in payloads, and per-endpoint rate limits. Common mistakes include skipping verification, processing before responding, lacking idempotency (double charges, duplicate records), and blindly trusting event data (verify critical actions against the source API).

Profile published 2026-10-27

What you can do with it

  • Implement webhook receivers with HMAC signature verification
  • Design reliable webhook senders with retries, backoff, and idempotency
  • Set event design, delivery tracking, and log retention policy

When to use it

  • When implementing or reviewing webhook send/receive logic and needing signature/replay/idempotency checklists
  • When troubleshooting duplicate deliveries, timeouts, or retry semantics

Example prompts

Generated from the skill’s documentation as examples; not results of actual runs.

Add signature verification and idempotency handling to my webhook receiver
Design a retry and backoff strategy for webhooks
Webhook duplicates are causing double charges; how do I prevent that

Monthly Trend

Downloads6.3K
3.1K4.8K6.5K2026-03 · Downloads 3.4K2026-05 · Downloads 4.1K2026-06 · Downloads 4.3K2026-07 · Downloads 4.7K2026-08 · Downloads 4.8K2026-09 · Downloads 5.1K2026-10 · Downloads 6.3K26-0326-0926-10
Stars7
3572026-03 · Stars 32026-05 · Stars 52026-06 · Stars 52026-07 · Stars 62026-08 · Stars 72026-09 · Stars 72026-10 · Stars 726-0326-0926-10

The counting method changed in 2026-09: skills with the same name are now counted separately by author, and the full catalog is covered. Dashed lines show months before the change; they are not compared with later months, and no growth is computed across the change.

MonthDownloadsMoMStars
2026-106.3K—7
2026-095.1K—7
2026-084.8K+4.3%7
2026-074.7K+7.8%6
2026-064.3K+5.2%5
2026-054.1K—5
2026-033.4K—3

SKILL.md (original)

The author’s original file, shown as plain text without edits or review by AlphaMoat. Links are not clickable; check commands before running them. Fetched 2026-10-23.

3.9 KB · ClawHub v1.0.0
---
name: Webhook
description: Implement secure webhook receivers and senders with proper verification and reliability.
metadata: {"clawdbot":{"emoji":"🪝","os":["linux","darwin","win32"]}}
---

## Receiving: Signature Verification

- Always verify HMAC signature—payload can be forged; don't trust without signature
- Common pattern: `HMAC-SHA256(secret, raw_body)` compared to header value
Show all (92 lines)
- Use raw body bytes—parsed JSON may reorder keys, breaking signature
- Timing-safe comparison—prevent timing attacks on signature check
- Reject missing or invalid signature with 401—log for investigation

## Receiving: Replay Prevention

- Check timestamp in payload or header—reject if too old (>5 minutes)
- Combine with signature—timestamp without signature can be forged
- Store processed event IDs—reject duplicates even within time window
- Clock skew tolerance: allow 1-2 minutes past—but not hours

## Receiving: Idempotency (Critical)

- Webhooks can arrive multiple times—sender retries on timeout, network issues
- Use event ID for deduplication—store processed IDs in database/Redis
- Make handlers idempotent—same event twice should have same effect
- Idempotency window: keep IDs for 24-72h—balance storage vs protection

## Receiving: Fast Response

- Return 200/202 immediately—process asynchronously in queue
- Senders timeout (5-30s typical)—slow processing = retry = duplicates
- Minimal validation before 200—signature check, then queue
- Background job for actual processing—failures don't affect acknowledgment

## Receiving: Error Handling

- 2xx = success, sender won't retry
- 4xx = permanent failure, sender may stop retrying—use for bad signature, unknown event type
- 5xx = temporary failure, sender will retry—use for downstream issues
- Log full payload on error—helps debugging; redact sensitive fields

## Sending: Retry Strategy

- Exponential backoff: 1min, 5min, 30min, 2h, 8h—then give up or alert
- Cap retries (5-10 attempts)—don't retry forever
- Record delivery attempts—show status to user
- Different retry for 4xx vs 5xx—4xx often means stop retrying

## Sending: Signature Generation

- Include timestamp in signature—prevents replay of captured webhooks
- Sign raw JSON body—document exact signing algorithm
- Header format: `t=timestamp,v1=signature`—allows versioned signatures
- Provide verification code examples—reduce integration friction

## Sending: Timeouts

- 5-10 second timeout—don't wait forever for slow receivers
- Treat timeout as failure—retry later
- Don't follow redirects—or limit to 1-2; prevents redirect loops
- Validate HTTPS certificate—don't skip verification

## Event Design

- Include event type: `{"type": "order.created", ...}`—receivers filter by type
- Include timestamp: ISO 8601 with timezone—for ordering and freshness
- Include full resource or ID—prefer full data; saves receiver a lookup
- Version events: `api_version` field—allows breaking changes

## Delivery Tracking

- Log every attempt: URL, status code, response time, response body
- Dashboard for retry queue—let users see pending/failed deliveries
- Manual retry button—for stuck webhooks after receiver fix
- Webhook logs retention: 7-30 days—balance debugging vs storage

## Security Checklist

- HTTPS only—never send webhooks to HTTP endpoints
- Rotate secrets periodically—support multiple active secrets during rotation
- IP allowlisting optional—document your IP ranges if offered
- Don't include secrets in payload—webhook URL should be secret enough
- Rate limit per endpoint—one slow receiver shouldn't affect others

## Common Mistakes

- No signature verification—anyone can POST fake events to your endpoint
- Processing before responding—timeout causes retries, duplicate processing
- No idempotency handling—double charges, duplicate records
- Trusting event data blindly—always verify by fetching from source API for critical actions

Popular in Development

编程大神.SkillDevelopment

【全栈能力】编程大神.Skill:面向复杂真实项目的高阶全栈编程助手。不止生成代码,而是从一句目标接手陌生代码库,拆解需求、补齐实现、追到根因、完成重构、联调前后端,并把结果推进到能运行、能验证、能交付。覆盖 Web、后端、脚本、iOS、安卓、鸿蒙 ArkUI、微信小程序及其他技术栈,支持中英文工程、疑难 Bug、跨模块任务和长任务续做;用构建、日志、真实入口、设备或接口证据说明结果。仅问概念时直接回答,要求落地时持续推进到验收或明确阻塞。

↓ 11.3M★ 82u_42bbb65f
编程专家Pro.SkillDevelopment

编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。

↓ 6.3M★ 32user_47d655f0
编程专家.SkillDevelopment

编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。

↓ 6.0M★ 378user_741dc82b
dev-expertDevelopment

编程专家.Skill P8级编程助手,25年实战经验技能Skill,全栈:Java/Php网站/软件项目、API设计、Bug诊断、代码生成、代码审查、重构、测试用例、性能基准、技术选型、文档生成、任务拆解、Spec驱动、Karpathy规范、CMS二次开发、前端设计、MySQL/Mariadb、项目知识图谱,以及工程纪律层(根因调试硬闭环、阶段导航、事故复盘/SLO、威胁建模/供应链安全、生产就绪/渐进式发布、AI编码治理、面向Agent代码可读性、LLM应用安全)。支持 @标识 显式调用跳过路由。

↓ 5.3M★ 32user_814dbe54
dev-expert-proDevelopment

工程专题、鸿蒙与微信小程序开发的集成派生版

↓ 1.0M★ -user_814dbe54
编程专家 ProDevelopment

编程专家 Pro:融合编程专家 2.0.3 工程专题与编程大神的鸿蒙 ArkTS/ArkUI、微信小程序和小游戏开发资料。用于项目实现、根因调试、审查、重构、测试、架构性能分析及多端开发验证。支持自然语言和 @专题标识,按任务读取包内知识;只问概念时直接回答。

↓ 981.8K★ 1user_28275a78
编程专家.SkillDevelopment

适用场景:全栈编程助手。接到需求先读现有代码和约束,再动手:Java/PHP 开发、接口设计、缺陷定位、代码评审、重构、测试用例、性能排查、技术选型与文档产出,也做 CMS 二次开发、前端页面和 MySQL 调优。每次改动先给方案和影响范围,改完必须跑验证,交付附交接说明。适合要把代码真正跑通、而不是只要片段的场景。写完代码常要配套的造价、法律、工程文档,站内已有现成技能,用「查找技能」按需求找即可。

↓ 701.1K★ 6user_613b33ea
GithubDevelopment

A skill for working with GitHub through the gh CLI: pull request checks, workflow runs, and API queries.

↓ 479.6K★ 714Peter Steinberger

More from Iván

Data as of 2026-10. Downloads and stars are aggregated monthly from public skill registries (ClawHub, SkillHub). See data methodology.