Skip to content
Back to skills

Async Ops

ASecurity

Webhook handling and background job scheduling for backend services

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 14, 2026
databasestypescriptgobashsqlbackend

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned November 14, 2026

npx -y skills add SebastianLuser/claude-code-arcane --skill async-ops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Async Ops?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Async Ops
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sebastianluser-async-ops/badge)](https://www.skillsdirectory.com/skills/sebastianluser-async-ops)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: async-ops
description: "Webhook handling and background job scheduling for backend services"
category: "backend"
argument-hint: "[webhooks|jobs|queues|full]"
user-invocable: true
allowed-tools: ["Read", "Edit", "Write", "Bash", "Glob", "Grep"]
---
# async-ops — Webhooks & Background Job Scheduling

Stack: Fastify + Prisma + PostgreSQL + Redis + BullMQ + Zod + TypeScript.

## INBOUND WEBHOOKS (Receiving)

**Flow:** receive -> verify signature -> deduplicate -> enqueue -> respond 200 (< 2s). All processing async via queue.

**Signature:** use provider SDK when available. Custom: HMAC-SHA256 over `timestamp.body`. Require raw body access (verify before parsing). Always include timestamp in signed material.

**Anti-replay:** reject if timestamp differs from server time by > 5 minutes.

**Idempotency:** Redis SETNX with event ID as key, 7-day TTL. If exists, return 200 `already_processed`.

### Inbound Checklist
- [ ] Signature verified (HMAC-SHA256 or provider SDK)
- [ ] Timestamp anti-replay (< 5 min drift)
- [ ] Idempotency by event ID (Redis SETNX + TTL)
- [ ] Enqueue + fast 200 — processing async
- [ ] Structured log with event_id and trace_id
- [ ] Secret rotation plan documented

## OUTBOUND WEBHOOKS (Sending)

Transactional outbox pattern + HMAC signature + exponential backoff retry + DLQ.

> → Read references/outbound-webhooks.md for outbox pattern, payload format, retry schedule, subscriber management y SSRF prevention

## JOB SCHEDULING & QUEUES

BullMQ + Redis default. Queues separated by criticality. Jobs idempotent with timeout.

> → Read references/job-scheduling.md for queue technology selection, job design principles, retry, scheduling, concurrency y graceful shutdown

## SHARED PATTERNS

**Idempotency:** unique event/job ID as dedup key (Redis SETNX or BullMQ jobId). Pass idempotency keys to external providers. Check entity state before side effects.

**Dead Letter Handling:** store in DLQ table / BullMQ failed set. Alert on growth. Dashboard for inspection + replay. 30-day retention. Auto-disable sustained failures.

**Observability:** metrics for `webhook_{inbound,outbound}_total`, `webhook_{outbox_pending,dlq_depth}`, `job_{enqueued,completed}_total`, `job_duration_seconds`, `queue_depth{state}`. Propagate `traceId` in payloads. Structured logs with event_id, job_id, queue.

**Alerts:** rising queue/outbox depth (throughput insufficient), DLQ growth > N/min (systemic), subscriber failure > 5% (endpoint down), failed jobs/min > threshold (page on-call).

## ANTI-PATTERNS

> → Read references/anti-patterns.md for lista completa (14 items)

## Checklist

> → Read references/checklist.md for checklist completo (8 items)

Files in this skill

  • SKILL.md2.6 KB
  • references/anti-patterns.md600 B
  • references/checklist.md544 B
  • references/job-scheduling.md1.4 KB
  • references/outbound-webhooks.md1.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.