Content
75%Weight 40%Scale 1-5Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
A solid, actionable skill body built around executable TypeScript patterns covering all five pillars of webhook reliability, with a useful checklist and incident runbook. The main gaps are helper functions referenced but not defined, a redundant summary section, and no explicit build-and-verify sequence for implementing the endpoint end to end.
Suggestions
Remove the 'Core Security' bullet list (it duplicates the section headers) and use the freed tokens to define the undefined helpers (isValidPayload, processWebhookAsync, performWebhookAction), making the code fully copy-paste ready.
Reconcile the naming inconsistency between verifyWebhookSignature and verifySignature, and note that crypto.timingSafeEqual throws when buffer lengths differ, so the signature should be length-checked or compared via encoded digest first.
Turn the body into an explicit ordered build workflow (verify signature → dedupe → process idempotently → ack fast → respond with correct status codes) with a final verification step such as sending a test signed payload, rather than presenting the patterns as parallel standalone sections.
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | The body is code-heavy and assumes competence (no primers on HMAC, Redis, or what webhooks are), matching the score-4 anchor ('efficient; minor instances that could be trimmed'). It is not 5 because the "Core Security" bullet list merely duplicates the subsequent section headers, and the provider backoff schedule comment is loose explanatory material; it is well above 3 since nothing explains concepts Claude already knows. | 4 / 5 |
Actionability | Concrete, executable TypeScript throughout (timingSafeEqual HMAC verification, Redis SETEX dedupe, a transaction with PostgreSQL 23505 unique-violation handling, and an explicit status-code map), matching the score-4 anchor ('mostly executable guidance with minor gaps'). It is not 5 because several helpers are referenced but never defined (verifySignature vs. verifyWebhookSignature naming inconsistency, isValidPayload, processWebhookAsync, performWebhookAction), so the whole is not copy-paste ready. | 4 / 5 |
Workflow Clarity | The webhookHandler in "Error Responses" presents an ordered flow with explicit validation gates (payload validity, signature, duplicate check) before processing, and the checklist plus runbook supply verification and recovery, matching the score-4 anchor. It is not 5 because the sections read as parallel patterns rather than an explicit build sequence, and there is no step for verifying the implementation (e.g., testing with a signed payload). | 4 / 5 |
Progressive Disclosure | The single-file body is cleanly sectioned with clear headers and no nested references, so navigation is easy — matching the score-4 anchor ('good structure; most content appropriately placed; minor organization gaps'). It is not 5 because at roughly 200 lines, content such as the incident runbook and the Stripe-specific example could be externalized into reference files, and the simple-skill exception (under 50 lines) does not apply. | 4 / 5 |
Total | 16 / 20 Passed |