14-cms-webhooks

A set of development rules for configuring Contentstack webhooks, which are notifications sent when content events occur. It covers event channels, request data, signatures, retries, and duplicate deliveries.

In plain words
What is it for?
Use it when connecting Contentstack to site rebuilds, search indexes, Slack, or CI/CD systems, and when debugging webhook delivery or receiver behavior.
Why use it?
It helps prevent unreliable integrations caused by unverified requests, repeated notifications, failed deliveries, or bursts of events after a content release.

Cursor rule

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/contentstack/contentstack-agent-skills/14-cms-webhooks
Clone the repo
git clone --depth 1 https://github.com/contentstack/contentstack-agent-skills
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,215 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00041 $0.01215
Opus 5 $0.00020 $0.00607
Sonnet 5 $0.00008 $0.00243
Haiku 4.5 $0.00004 $0.00121

Measured yesterday against content hash b5d3736f467b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

14-cms-webhooks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cursor/rules/14-cms-webhooks.mdc · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Contentstack Webhooks

Description

Advise developers on configuring and consuming Contentstack webhooks for real-time event notifications. Cover event channels, payload structure, signature verification, retry behavior, release-triggered webhook storms, and reliable receiver design.

When to Use

Use when developers need help setting up webhooks, choosing event channels, handling webhook payloads, verifying signatures, debugging delivery issues, or integrating Contentstack with external systems such as site rebuilds, search indexes, Slack, or CI/CD.

User Problem

Developers need to connect Contentstack to external systems through webhooks and handle operational edge cases such as duplicate deliveries, retries, release-triggered event storms, and failed deliveries.

Success Criteria

Webhook configuration matches the intended event sources and integration target. Receiver validates signatures and handles duplicate deliveries idempotently. Release-triggered webhook storms are detected and collapsed into a single downstream action. Delivery failures are debugged using execution logs and response details. Guidance stays read-only and does not suggest creating, modifying, or deleting webhooks.

Expected Inputs

  • Integration target (site rebuild, search index, Slack, CI/CD, etc.)
  • Event types needed
  • Reliability and latency requirements
  • Payload details or sample requests
  • Debugging information for delivery issues

Expected Outputs

  • Webhook configuration guidance
  • Event channel selection advice
  • Payload handling patterns
  • Signature verification instructions
  • Release-storm prevention advice
  • Debugging recommendations

Example User Requests

  • How do I trigger a site rebuild when content is published?
  • How do I verify a webhook is genuinely from Contentstack?
  • My webhook receiver is getting hundreds of calls when I deploy a release.
  • What retry policy should I use?
  • How do I debug missed webhook deliveries?

Workflow Summary

Identify the integration target and required events. Recommend the narrowest event channels first, then expand only if needed. Explain payload shape, signature verification, and secret handling. Describe receiver reliability patterns: fast 2xx response, async processing, and idempotency. Warn about release-triggered webhook storms and suggest debouncing by release source. Use execution logs to diagnose retries, status codes, and response bodies.

Read the full file on GitHub · 139 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 139 lines · 41 tokens per session scan A b5d3736f467b

Subscribe to this mod's changes

14-cms-webhooks is a cursor rule published in the GitHub repository contentstack/contentstack-agent-skills (5 stars, last pushed 15d ago), licensed MIT. It adds 41 tokens to every session and 1,215 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.