agentsclimarketplace

Syntage webhooks

Skill syntagecom/skills/skills/syntage-webhooks

Implement, review, test, or troubleshoot Syntage webhook receivers and event consumers. Use for webhook endpoint configuration, signing secrets, X-Satws-Signature verification, raw-body HMAC-SHA256 verification, timestamp tolerance, event subscriptions, public HTTPS handlers, fast acknowledgements, retry handling, idempotency, deduplication, event payload semantics, extraction events, or Events API reconciliation.From its SKILL.md

Install
npx -y skills add syntagecom/skills --skill syntage-webhooks

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

5.3 KB, as published. Nobody here has run it

Handle Syntage Webhooks

Build a receiver that authenticates each delivery before processing it, acknowledges quickly, handles duplicates safely, and reconciles missed events.

Apply the safety boundary

  1. Develop and test against the Syntage sandbox and a sandbox-specific signing secret.
  2. Get explicit confirmation before creating, updating, enabling, disabling, or testing a production webhook endpoint. These operations mutate a live organization's delivery configuration.
  3. Keep signing secrets out of prompts, source code, fixtures, command output, error responses, and logs. Load them from environment-specific secret storage.
  4. Reject unverified requests before parsing them into domain events or causing side effects.
  5. Confirm current event names and payload schemas in the documentation; do not infer them from internal names or another event type.

Follow the receiver workflow

1. Define the subscription

  • Read Webhooks, Events, and the relevant event examples or resource pages.
  • Subscribe only to the documented event types the application needs.
  • Use a public HTTPS endpoint. Design the synchronous path to return 2xx within the documented three-second timeout.
  • Keep sandbox and production endpoints and signing secrets independently configurable.

2. Preserve the raw request

  • Capture the exact raw request body bytes before any JSON parser, middleware transformation, character recoding, or reserialization.
  • Read X-Satws-Signature using the framework's case-insensitive header API and verify it exactly as the validation guide specifies. Delivery documentation also lists X-Syntage-Signature, but does not define it as an interchangeable input to this HMAC procedure; do not silently fall back to it unless current validation documentation explicitly defines that behavior.
  • Enforce a request-body size limit without changing the bytes passed to verification.

3. Verify the signature

Implement the algorithm in Validating Webhook Requests:

  1. Split the header on commas and collect the timestamp from t and every candidate signature from s.
  2. Reject a missing or malformed timestamp or signature.
  3. Reject timestamps outside the allowed tolerance. The current examples use 300 seconds.
  4. Construct <timestamp>.<raw request body> using the literal . separator and the exact body bytes. Do not parse, normalize, reserialize, or strip whitespace from the body.
  5. Compute HMAC-SHA256 using the endpoint's signing secret.
  6. Compare the expected value with every candidate signature using a constant-time comparison and length check.
  7. Reject the request without side effects if none match.

Use the framework's raw-body support and standard cryptographic library. Do not write custom cryptographic primitives.

4. Persist before acknowledging

  • After verification, persist the event ID and minimal processing envelope atomically or enqueue it durably.
  • Enforce a unique constraint or equivalent atomic deduplication on the event ID. An in-memory check is insufficient under concurrency or restarts.
  • Return 2xx once durable acceptance succeeds, then perform slow business logic asynchronously.
  • Return a failure when durable acceptance did not occur so Syntage can retry. Failed deliveries are retried up to four times.

5. Process event semantics correctly

  • Make every handler idempotent because duplicate and concurrent deliveries are possible.
  • Read event-specific state from data. Use data.object for the state captured when the event occurred and resource when the consumer needs current resource state.
  • Expect one operation to emit multiple events and do not infer ordering unless the documentation promises it.
  • The API uses link for Entity in lifecycle event identifiers: link.created, link.updated, and link.deleted. Treat them as Entity events, and subscribe to and compare the identifiers exactly.
  • Keep event payloads and sensitive resource data out of general application logs.

6. Reconcile delivery gaps

  • Record a reconciliation cursor or last-seen event identity and query the Events API for missed work after downtime.
  • Do not rely on indefinite event history: recent event access is guaranteed for seven days.
  • Retain enough event identity and processing status to deduplicate webhook deliveries and reconciliation results.
  • Alert on repeated delivery failures, invalid signatures, processing backlog, and reconciliation lag without logging secrets or payloads.

Test the contract

Cover valid delivery, modified body, wrong secret, missing and malformed headers, stale timestamp, multiple candidate signatures, duplicate delivery, concurrent duplicates, restart recovery, slow downstream work, and reconciliation. Use synthetic sandbox payloads and framework-level tests that preserve the exact raw bytes.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.