/developer-platform-skills:webhook-platform-designfrom developer-platform-skills
Designs a provider-side outbound webhook platform covering event taxonomy, payload signing with HMAC (Standard Webhooks), at-least-once delivery with retry/backoff, dead-letter policy, subscription lifecycle, and developer debugging tools like delivery logs, replay, and test-event triggering.
Ships in developer-platform-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an outbound-webhook platform designer. Design how a platform notifies its customers' servers of events - what the events are, how they are signed, how delivery is guaranteed and retried, how subscriptions live and die, and how an integrator debugs a delivery that never arrived.
Svix frames the real scope: "Sending an HTTP POST is easy. Doing it reliably at scale is not." The gap between those two sentences - slow-consumer isolation, retries with backoff, dead-lettering, signing, replay protection - is what this skill designs.
A whole-surface consistency review across every surface, including this one, belongs to samber/developer-platform-skills@public-api-design-review; this skill owns the webhook surface's own design. Whether webhooks are the right surface to build at all, against the other integration-surface shapes, is samber/developer-platform-skills@api-integration-surface-strategy's call.
Memory (advised): When memory lives in a file, consider using developer-platform-context.md; if a different memory system is in use, rely on that instead. The file is an advisory reference, not a mandatory requirement. Separate task info in different sections. Remove finished tasks. Add a date to a task; no date for general project context. Some interview responses may differ between 2 tasks.
Ask these before designing anything; batch them - this is a tactical design task, not a strategy interview.
Questions 4-5 exist because the build-vs-buy and retry menus diverge sharply on time-to-effect, durability, and effort - neither ranking can be picked without them. A hard ship date promotes managed infrastructure and the shorter retry span; a compounding-surface mandate promotes the pipeline you operate and tune yourself.
If your harness has persistent memory, store the delivery contract's core decisions (guarantee, ordering position, retry schedule, ack timeout, dedup ID location, signing scheme) so a later run - a new event type, a retry-policy change, the docs pass - starts from the contract instead of re-deriving it.
Webhook consumers are servers, whoever bought the product. The design splits by consumer sophistication, and unlike most audience splits the segments don't nest - each adds its own requirements:
Serve every segment present. A design good enough for enterprise integrators still fails no-code consumers if it ships without test events and a delivery log.
Decide this before step 1 - it determines whether steps 4-6 are built or merely configured. Three options, ranked:
in-house build > self-hosted open-source webhook gateway > managed sending infrastructuremanaged > self-hosted gateway > in-housein-house == self-hosted gateway > managed - both keep event data on your infrastructure; in-house adds custom semantics at much higher costmanaged > self-hosted gateway == in-house - managed triggers DPA and data-residency review, and reversing it later means re-papering contracts and migrating live endpoints; the other two keep event data on your own infrastructure equallymanaged > self-hosted gateway > in-houseEach step has a section below, in order.
resource.action, action in past tense (invoice.paid, never invoice.pay), dot-delimited, identifiers restricted to [a-zA-Z0-9_.]. This is the Standard Webhooks recommendation and the Stripe convention. Production platforms diverge on delimiter and on where the discriminator lives, so pick one convention at launch and never mix. Splitting the event name across a header and a body field, GitHub-style, means no single string names the event - avoid it.customer.subscription.updated fires no customer.updated). Whichever way, state it; silence here breeds subscriber assumptions.See references/event-taxonomy-and-payload-design.md for vendor naming comparisons and the design-principle checklist applied.
webhooks section cover description. Document outbound events in the same OpenAPI document as the inbound API; only adopt CloudEvents if you must interoperate with an event mesh that already speaks it.See references/event-taxonomy-and-payload-design.md for the envelope fork in detail, the Stripe thin/snapshot dual-run migration pattern, and the standards map.
You own the signing scheme - what is signed, how, and how consumers verify. Signing-key issuance, storage, and rotation infrastructure belong to sibling samber/developer-platform-skills@api-auth-key-management.
webhook-id, webhook-timestamp, webhook-signature.{id}.{timestamp}.{raw_body}, base64-encoded, algorithm-version-prefixed (v1,...). Signing the timestamp is what buys replay protection - the receiver rejects deliveries whose timestamp falls outside a tolerance window (the spec recommends 5 minutes). A body-only signature (GitHub's and Shopify's shape) validates forever, so a captured request replays indefinitely.whsec_ for symmetric HMAC secrets, whsk_/whpk_ for asymmetric ed25519 private/public keys (signature id v1a). Offer asymmetric signing for consumers who shouldn't hold a shared secret - the recommended choice when you don't control both ends.webhook-signature header carries multiple space-delimited signatures, so old and new secrets validate simultaneously during a rotation window. A platform with a single active secret forces subscribers into revoke-then-deploy, with a window of failed deliveries.See references/signing-scheme-reference.md for the worked construction, the four major non-adopters' schemes contrasted, and the rotation flow.
configurable per-endpoint schedules + circuit breaker > fixed day-scale schedule + DLQ + auto-disable > fixed hours-scale schedule > manual redeliver onlyconfigurable + circuit breaker > fixed day-scale > fixed hours-scale > manual redeliver onlyfixed day-scale schedule > fixed hours-scale schedule > configurable + circuit breaker > manual redeliver onlyRetry-After header on 429 over your own backoff curve - most senders don't, and it's a differentiator.See references/retry-policy-vendor-comparison.md for the six documented vendor schedules, timeout values, auto-disable behaviors, and the circuit-breaker reference design.
Model the subscription (endpoint registration) as a first-class stateful object with full CRUD - never fire-and-forget registration. Give it three explicit states:
The three infrastructure-focused vendors converge on this richer model; binary enabled/disabled is the thinner shape platforms launch with and outgrow. Expose only states a customer-created subscription can legally reach - reject internal-only states at the API boundary.
Keep filtering's two axes independent: event type (against the catalog) and recipient/channel scoping. An endpoint with no filter receives everything - say so.
Specify both replay positions: where a newly created subscription starts (new events only vs retained backlog), and where a subscription resumes after a platform-side incident. They can legitimately differ. Document loudly that deleting a subscription destroys its replay/delivery state - recreating it under the same name starts fresh, and a subscriber deleting-to-reset will silently lose or double-replay a backlog.
Document config-change propagation lag as expected behavior (a subscription edit taking a minute or two to reach the delivery path is normal), so integrators don't file it as a bug.
See references/subscription-lifecycle-comparison.md for the six-vendor state/filtering/replay comparison and the state-machine case study.
A self-service consumer portal is table stakes in this market, not a nice-to-have - flag "no portal" the way you'd flag a missing signature-verification doc. The portal carries:
samber/developer-platform-skills@api-test-mode-design's ground; this skill owns the delivery-side button and the example payloads it sends.See references/subscription-lifecycle-comparison.md for what each vendor's portal and testing tooling actually ships, as the benchmark to match.
Grade your webhook docs against the five-element rubric the market's best docs are graded on, all five before launch:
State the delivery contract as explicit, findable sentences:
Every one of these left implicit becomes a subscriber assumption, then a support ticket. Publish the event catalog from the same spec that drives delivery (OpenAPI 3.1 webhooks section) so docs and payloads can't drift apart silently.
Anti-pattern checklist - each is a direct audit finding:
Two binary gates - iterate the design until both pass:
Operational metrics to stand up, watched as trends rather than pass thresholds:
references/event-taxonomy-and-payload-design.md - naming conventions across vendors, envelope placement fork, thin vs full payloads, schema-versioning camps, standards map.
references/signing-scheme-reference.md - Standard Webhooks construction worked example, non-adopter scheme contrast, rotation flow, consumer-pitfall checklist for your docs.
references/retry-policy-vendor-comparison.md - six vendors' documented retry schedules, timeouts, auto-disable behavior, dead-letter and circuit-breaker patterns.
references/subscription-lifecycle-comparison.md - endpoint states, filtering, replay/backfill, and portal/testing tooling across six vendors, plus a subscription state-machine case study.
samber/developer-platform-skills@api-idempotency-retry - general retry and idempotency mechanics (backoff algorithms, idempotency keys) on the API's request side; this skill applies those ideas to outbound delivery only.
samber/developer-platform-skills@integration-error-observability - how integration errors surface to the developer beyond the webhook delivery log.
samber/developer-platform-skills@api-status-communication - incident and status-page communication when delivery failures are the platform's fault.
samber/developer-platform-skills@api-versioning-policy - the versioning machinery behind step 2's event-schema evolution choice.
samber/developer-platform-skills@api-error-design - the error surface of the subscription-management API itself.
samber/developer-platform-skills@public-graphql-api-design - GraphQL subscriptions, the complementary push mechanism named in question 6: first-party live UI over sub-second push, versus this skill's durable server-to-server delivery.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub samber/developer-platform-skills --plugin developer-platform-skills61 skills in this plugin
/agent-integration-surfacesPlans how a SaaS or developer platform opens itself to AI agents, provider side - which agent classes may reach which surface, how an agent proves its identity and acts for a user (Web Bot Auth, delegated tokens, provision-then-claim signup), which execution path each gets, where agents find it (Context7, api-catalog) and how agent usage is counted. Use whenever someone asks if their product is agent-ready, why agents get blocked or cannot sign up, or how agents should authenticate to it. Do NOT use for MCP tool design (samber/developer-platform-skills@mcp-server-offering), surface build order (samber/developer-platform-skills@api-integration-surface-strategy) or agent-readable docs (samber/developer-relations-skills@coding-agent-docs-optimization)./agent-skill-offeringShips an Agent Skill (SKILL.md) inside the GitHub repo of the library, CLI or SDK it documents, versioned with the code - repo placement, metadata.version bumped every release, CI that fails a release on a stale skill, tag-pinned installs (skills.sh, gh skill, ClawHub, plugin marketplaces), plugin manifests, OpenClaw gating, skill vs MCP vs CLI. Use whenever a tool maintainer mentions shipping a skill with their tool, a SKILL.md for their library, keeping a skill in sync with releases, or plugin.json versions for a skill beside code - even if they never say "agent skill". Not for standalone skill collections. Do NOT use for CLI command or --json design - use samber/developer-platform-skills@cli-interface-design; nor for MCP servers - use samber/developer-platform-skills@mcp-server-offering.