webhook-design
Skill0 starsChanged 5 months agoApache-2.0View on GitHub
Design outbound and inbound webhooks with signatures, retries,
In this repository128 other files it gives its agents.
- AGENTS.mdAGENTS.md
- accessibility-implementationSkill
- accessibility-reviewSkill
- api-changelogSkill
- api-designSkill
- auth-designSkill
- caching-strategiesSkill
- chaos-experiment-designSkill
- ci-cd-pipelinesSkill
- cli-designSkill
- cloudformation-reviewSkill
- codebase-orientationSkill
- code-commentsSkill
- code-reviewSkill
- commit-messagesSkill
- container-reviewSkill
- database-indexingSkill
- database-migrationsSkill
- debuggingSkill
- dependency-upgradesSkill
- design-system-contributionSkill
- design-tokensSkill
- desktop-releaseSkill
- error-handlingSkill
- feature-flagsSkill
- finops-reviewSkill
- frontend-performanceSkill
- git-conflict-resolutionSkill
- graphql-schema-designSkill
- helm-chart-scaffoldingSkill
- i18n-reviewSkill
- kubernetes-reviewSkill
- load-test-planningSkill
- logging-observabilitySkill
- message-queue-designSkill
- migration-playbooksSkill
- mobile-releaseSkill
- multi-region-active-activeSkill
- observability-alertsSkill
- openapi-spec-designSkill
- partner-api-integrationSkill
- performance-reviewSkill
- pr-descriptionsSkill
- prompt-injection-hardeningSkill
- pulumi-reviewSkill
- rate-limitingSkill
- refactor-planningSkill
- secrets-managementSkill
- security-reviewSkill
- sql-query-reviewSkill
- terraform-reviewSkill
- test-generationSkill
- threat-modelingSkill
- websocket-designSkill
- ab-test-analysisSkill
- anomaly-detectionSkill
- cost-anomaly-investigationSkill
- csv-analysisSkill
- data-cleaningSkill
- data-contract-designSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 74
Do not use GET for delivery.
- Very specific: line 82
Signature schemes you did not invent: follow Stripe/GitHub/Slack docs when integrating *their* platform.
- Distinctive: line 84
Private network receivers: prefer allowlisted egress and mTLS over "shared secret in a query param".
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Webhook Design
Webhooks are untrusted HTTP with delayed, duplicated, and reordered delivery. Authenticate the sender, make handlers idempotent, and never fetch attacker-controlled URLs without SSRF controls.
For persistent sockets, use websocket-design. For public HTTP APIs,
use api-design.
Workflow
- Direction: inbound (you receive) vs outbound (you send) vs both.
- Event catalog: type, version, payload schema, PII, ordering needs.
- Auth: HMAC over the raw body + timestamp (or mTLS / public-key). Reject stale signatures (clock skew window, e.g. 5 minutes).
- Idempotency: event id as the dedupe key; store processed ids; safe to retry.
- Retries: exponential backoff, give-up budget, dead-letter, and what "success" means (2xx only).
- Receiver rules: verify first, parse second; constant-time compare; no work before auth.
- Sender rules: timeout, follow-redirects off by default, SSRF allow list if user-supplied URLs, secret rotation with dual-key overlap.
Output format
## Webhook design: <integration>
**Direction:** inbound | outbound | both
**Events:** …
### Signing
…
### Receiver contract
status codes, idempotency, time limit
### Retry / DLQ
…
### Versioning
…
### Abuse cases
replay, SSRF, secret leak, poison payloadRules
- Sign the raw body, not a re-serialized JSON object.
- Include a timestamp and reject old signatures (replay).
- Deduplicate on a unique event id, not on "looks the same".
- Outbound delivery to customer URLs is an SSRF problem: block link- local / metadata / private ranges unless explicitly required.
- Secrets rotate with two valid keys during overlap. Never log the signing secret or full payload if it contains PII/tokens.
- Version events (
type+api_versionor schema id). Additive fields first; breaking changes get a new type. - Do not use GET for delivery. POST (or the platform's documented method) with a bounded body size.
Edge cases
- At-least-once is the default. Design for duplicates; do not promise exactly-once unless a transactional outbox is real.
- Fan-out storms: one user action → N hooks; budget and coalesce.
- Signature schemes you did not invent: follow Stripe/GitHub/Slack docs when integrating their platform; do not "improve" them.
- Private network receivers: prefer allowlisted egress and mTLS over "shared secret in a query param".
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

