eobrien60/forge/obh-retrofit-webhooks
Claude Code and agent skill by eobrien60/forge
- community
Checking that the SKILL.md file is still in the repository.
Use to assess or replace hand-rolled outbound webhook delivery with @obh/webhooks. Finds in-request POSTs to customer URLs, subscription/endpoint tables, manual HMAC signing, and retry/delivery-status columns, then maps event fan-out to signed, retried, dead-lettered deliveries run by the worker. Assessment-only by default; implements on request.
Install
npx vskill@latest install eobrien60/forge/obh-retrofit-webhooksSKILL.md
The same SKILL.md was published earlier as eobrien60/forge/obh-retrofit-webhooks.
Purpose: move outbound webhooks behind the webhooks primitive so the product stops POSTing to customer URLs on the request path and hand-rolling signing/retry. Endpoints are managed per workspace; domain events fan out to per-endpoint deliveries that the worker signs, sends, retries with backoff, and dead-letters. Requires an event catalogue (see obh-add-events) — fan-out is event-driven.
Assessment (read-only)
- Find the delivery code. Grep for:
fetch/axios/gotPOSTing to a stored/customer URL;webhook_endpoints/subscriptions/hookstables; manual signing (crypto.createHmac,X-Signature,X-Webhook-Signature); retry loops,attempts/delivery_status/last_errorcolumns; and any place a state change triggers an outbound call inline.
- Inventory endpoints and triggers. Record each existing subscription (workspace, URL, which internal changes it fires on, how it's signed) and every in-request send site. Flag synchronous sends on the request path and any un-retried / silently-failing deliveries as the risks this move fixes.
- Map triggers to event patterns. Each outbound trigger corresponds to a domain event. List the internal change → the
dot.notationevent → theeventPatternsan endpoint subscribes to (note.*,invoice.paid). If the triggering events don't exist yet, note that obh-add-events must run first.
- Map each site to the target grammar. Endpoint management becomes
webhooks.createEndpoint(webhooksDb, { workspaceId, name, url, eventPatterns })— the plaintext signing secret is returned once here — andwebhooks.listEndpoints(...). Delivery moves entirely to the worker: emitting the event is all the request handler does; the worker ingests events into per-endpoint deliveries and sends them (signed, retried, auto-disabling dead endpoints).
Produces the webhooks retrofit plan. Nothing above mutates the repo — a valid stopping point when you only need the survey.
Implementation (only after the plan is agreed)
- Install.
forge add webhooks(--dry-runfirst; auto-addsevents). Adds the migration, the client atapps/api/src/platform/webhooks.ts(createWebhooksClient+webhooksDb = pgAdapter(pool)), a manage-endpoints route, and the worker consumer (apps/worker/src/dispatch.d/webhooks.tsregisteringevents: ["*"]+consumers.d/webhooks.tsrunning ingest + delivery each tick). Runpnpm migrate. RecordWEBHOOK_SECRET_ENCRYPTION_KEYas a required secret NAME (encrypts per-endpoint secrets at rest).
- Ensure the events fire. Confirm every mapped event is emitted inside its write transaction (obh-add-events). The worker's
["*"]consumer picks them up — no per-event wiring needed.
- Migrate endpoints and retire old code. Backfill existing subscriptions as endpoints (re-issuing signing secrets — old plaintext isn't recoverable), point customers at the new signature scheme, then delete the in-request POSTs, hand-rolled signing/retry, and legacy subscription table once deliveries flow through the worker.
- Validate.
forge doctor.
Output
Assessment → the webhooks retrofit plan: a table of trigger site → event (+eventPatterns) → existing endpoint → replacement (createEndpoint/worker delivery), a list of events that must exist first, and the risks (sync sends, unretried failures) resolved. Implementation → the installed client/route/worker, WEBHOOK_SECRET_ENCRYPTION_KEY secret NAME, the migrated endpoints (with re-issued secrets), and the retired inline-delivery code.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/obh-retrofit-webhooks/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/eobrien60/forge/obh-retrofit-webhooks)