/engineering-skills:webhook-receiverfrom engineering-skills
Designs, implements, or reviews inbound webhook handling with verification, idempotency, and async processing. Language-agnostic with a Rails reference.
Ships in engineering-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.
A webhook endpoint does four things and nothing else: verify, persist, enqueue, acknowledge. All business logic runs later, in a job, against the stored record.
The provider is an untrusted caller that retries on any non-2xx or timeout, may deliver the same event more than once, and may deliver events out of order. The design below is what makes that safe.
request ──► 1 verify ──► 2 parse ──► 3 persist (dedupe) ──► 4 enqueue ──► 5 ack 2xx
│ │
reject 401 later, in a worker:
6 load ► 7 dispatch ► 8 guard ► 9 act
Steps 1–5 happen in the request. Steps 6–9 happen in the worker.
references/verification.md for schemes and pitfalls.references/idempotency.md).find_or_create on a natural key, or state-transition checks. Assume at-least-once delivery
and at-least-once job execution.| Rule | Why |
|---|---|
| Verify on the raw body, with constant-time comparison | Parsed-then-reserialized JSON changes bytes; == leaks timing |
| Fail closed if the secret is missing | A blank secret must not validate a blank signature |
| Never put the secret in a query string or log it | URLs and logs leak |
| Unique constraint on the provider event ID | Application-level "check then insert" races |
| Duplicates are a success, not an error | A 5xx on a duplicate makes the provider retry forever |
| 2xx only after the event is durably stored and enqueued | Otherwise a crash loses the event with no retry |
| No inline business logic or outbound calls | Slow responses trigger retries, which create duplicates |
| Jobs take IDs and reload | Stale or oversized payloads in the queue |
| Handlers tolerate re-run and reordering | Queues are at-least-once; providers do not guarantee order |
| Unknown event types are ignored and logged | Providers add event types without notice |
| Situation | Respond | Provider behavior |
|---|---|---|
| Verified, stored, enqueued (including duplicate) | 202 / 200 | Stops retrying |
| Bad or missing signature | 401 / 403 | Usually stops or alerts; alert on your side |
| Malformed body | 400 | Provider stops retrying; log the raw body |
| Storage or queue unavailable | 5xx | Provider retries. This is the one case where retry is desired |
Do not swallow a persistence failure and return 2xx. Do not return 5xx for a handler bug, because that belongs in the worker where it retries with backoff and can alert without involving the provider.
When auditing an existing receiver, flag each of these:
references/verification.md: signature schemes, raw-body handling, replay protection, pitfalls.references/idempotency.md: inbox table design, dedupe, handler idempotency, ordering, replay.references/rails.md: complete Rails reference.references/pseudocode.md: the same pattern in framework-neutral pseudocode.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dgalarza/agent-skills --plugin engineering-skills7 skills in this plugin
/conventional-commentsUse this skill when writing, rewriting, or reviewing feedback comments so they follow the Conventional Comments format./conventional-commitsThis skill should be used when creating Git commits to ensure they follow the Conventional Commits specification. It provides guidance on commit message structure, types, scopes, and best practices for writing clear, consistent, and automated-friendly commit messages. Use when committing code changes or reviewing commit history./legacy-code-protocolProtocol for working in legacy code, meaning existing code with few or no tests, or code nobody understands. Modes - survey maps an unfamiliar area (structure, coupling, coverage, hotspots, seams); plan sequences the work into stacked PRs and tickets; pin locks current behavior with characterization tests; change makes one change safely through seams and test-first edits; replace swaps in a new implementation using characterization tests as the parity oracle; review audits a pull request that touches legacy code. Based on Michael Feathers' Working Effectively with Legacy Code. For new code, or code already covered by tests, use tdd.Other plugins' skills for the same job