/delivery-orchestrator:linear-webhooksfrom delivery-orchestrator
Registers, verifies, and processes Linear webhooks with HMAC-SHA256 signature verification, replay protection, idempotency, and reconciliation-based recovery instead of a dead-letter queue.
Ships in delivery-orchestrator. 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.
None: SKILL.md is the whole skill.
Reference: https://linear.app/developers/webhooks
Linear signs every delivery with HMAC-SHA256:
Linear-Signature: <hex digest>
Verify in constant time:
import { createHmac, timingSafeEqual } from "node:crypto";
export function verifyLinearSignature(rawBody: Buffer, signature: string, secret: string): boolean {
const expected = createHmac("sha256", secret).update(rawBody).digest("hex");
const a = Buffer.from(signature, "hex");
const b = Buffer.from(expected, "hex");
if (a.length !== b.length) return false;
return timingSafeEqual(a, b);
}
Always read the raw body bytes, not the parsed JSON. Express:
app.use("/linear/webhook", express.raw({ type: "application/json" }));
Each delivery has a webhookTimestamp field in the JSON body (Unix ms). Reject events older than 5 minutes:
if (Math.abs(Date.now() - body.webhookTimestamp) > 5 * 60_000) reject();
Linear may re-deliver. Each event has:
delivery.id — unique per delivery (use this!)data.id — entity IDStore seen delivery.id in Redis with 7-day TTL; ignore duplicates.
Issue, IssueLabel, Comment, Cycle, Project, ProjectUpdate, Initiative, InitiativeUpdate, Customer, CustomerNeed, Reaction, Attachment, Document.
Subscribe selectively — fewer types means smaller event volume.
create | update | remove. Some resources support more; consult the schema.
{
"action": "update",
"actor": { "id": "...", "name": "..." },
"createdAt": "2026-04-30T12:00:00.000Z",
"data": { /* the resource */ },
"type": "Issue",
"url": "https://linear.app/...",
"webhookTimestamp": 1714478400000,
"webhookId": "...",
"delivery": { "id": "..." }
}
Don't trust webhook payload state for reads. Linear may send out-of-order events. After receiving an Issue update, re-fetch via GraphQL using the id to get the canonical state.
The plugin deliberately ships no dead-letter queue. Reconciliation is the recovery path instead:
/linear:sync reconcile --dry-run
/linear:sync reconcile --apply
The reasoning: a DLQ only repairs deliveries that arrived and failed. It cannot repair a delivery that was never sent, an outage that spanned the retry window, or drift caused by someone editing state by hand. Reconcile — compare Linear state to VCS state, fix the difference — covers all of those, and unlike replay it is testable without a webhook.
Deduplication of retried deliveries is handled in-process by DeliveryDeduper
(lib/webhooks.mjs), keyed on Linear-Delivery and bounded by size and TTL.
Earlier versions of this skill referenced
lib/webhook-dlq.tsand/linear:webhook replay. Neither existed.
Expose a local receiver with ngrok http 3000 and register that URL. To debug a
single delivery without waiting for another, capture the payload and replay it
through verification and normalisation with /linear:sync event --file <path>.
delivery.id idempotencyWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub thelobbi/claude --plugin delivery-orchestrator52 skills in this plugin
/actions-authoringThis skill should be used when writing, hardening, or optimizing GitHub Actions workflows — permissions, action pinning, script injection, caching, matrices, concurrency, and cost./actions-automationThis skill should be used when building automation on GitHub Actions beyond CI — manual and external triggers, scheduled jobs, reusable workflows, composite actions, issue and PR bots, auto-merge, and Dependabot./agentic-patternsPatterns from "Agentic Design Patterns" (Gulli & Sauco, 2025) applied to CD orchestration and state-machine deployment workflows/ci-forensicsThis skill should be used when reading CI logs and diagnosing failures — fetching Actions logs through the GitHub MCP, classifying failures by cause, and distinguishing flaky tests from real regressions./clean-architectureThis skill should be used when the user asks to "apply clean architecture", "follow SOLID principles", "add dependency injection", "separate layers", "use hexagonal/onion architecture", "domain-driven design", or needs guidance on structuring code into clean, testable, decoupled layers./code-reviewThis skill should be used when the user asks to "review code", "check changes", "analyze a PR", "do a security review", or "assess code quality" — providing comprehensive review across correctness, security, performance, accessibility, and testing.Other plugins' skills for the same job