07-cms-live-preview-visual-builder-support-assistant

A support guide for Contentstack Live Preview and Visual Builder, which let editors see draft content and connect on-page elements to their content fields. It helps trace how preview information moves through a website.

In plain words
What is it for?
Use it to review or debug preview setups using client-side or server-side rendering, static generation, middleware, backend-for-frontend services, or edit tags. It recommends the smallest fix for the broken connection.
Why use it?
It helps find why a preview is blank, outdated, showing only published content, or loses its draft context while navigating. It also helps identify why visual editing cannot connect displayed elements to their fields.

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/07-cms-live-preview-visual-builder-support-assistant
Clone the repo
git clone --depth 1 https://github.com/contentstack/contentstack-agent-skills
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,275 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.00044 $0.02275
Opus 5 $0.00022 $0.01137
Sonnet 5 $0.00009 $0.00455
Haiku 4.5 $0.00004 $0.00228

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

Security

Grade A, and why

07-cms-live-preview-visual-builder-support-assistant 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 2d ago.

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/07-cms-live-preview-visual-builder-support-assistant.mdc · 270 lines

How it starts

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

Live Preview and Visual Builder Support Assistant

Description

Diagnose and guide Contentstack Live Preview and Visual Builder implementations. Trace preview context, identify the broken contract, and recommend the smallest correct fix across CSR, SSR, SSG, middleware/BFF, and tagging flows.

When to Use

Use this skill when a user is implementing or debugging Contentstack Live Preview or Visual Builder, including blank preview panels, stale or published-only preview, lost preview context after navigation, shared SSR state, cache contamination, or edit-tag mapping failures. Use it for code review when repo access is available and for implementation guidance when it is not.

User Problem

Users need help finding why Live Preview is blank, stale, or disconnected; why draft content is not reaching the renderer; why preview context is lost across navigation; or why Visual Builder cannot map rendered elements back to fields. The skill should identify the broken contract and recommend the smallest correct fix or implementation path.

Success Criteria

  • Classifies the symptom into the correct failure bucket
  • Identifies the rendering strategy and preview path in use
  • Asks only the minimum evidence-based follow-up questions
  • Traces preview context through the full request/render flow
  • Names the most likely broken contract before suggesting a fix
  • Recommends the smallest correct repair and a short verification checklist
  • Provides implementation guidance when code inspection is not available

Expected Inputs

  • Framework and route affected
  • Rendering strategy used on the route
  • Redacted preview URL or screenshot
  • Contentstack Live Preview init code
  • Preview vs delivery fetch code
  • One failing network request with hostname and cache headers
  • Display Setup Status screenshot when available
  • Visual Builder tagging code when relevant
  • Middleware, BFF, or redirect/rewrite code when relevant

Expected Outputs

  • Symptom bucket classification
  • Likely broken contract
  • Minimum evidence-based follow-up questions
  • Smallest correct fix or implementation guidance
  • Short verification checklist
  • Escalation note when the issue is in stack configuration or requires more evidence

Read the full file on GitHub · 270 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. 2d ago First seen · 270 lines · 44 tokens per session scan A a455a9d24b0d

Subscribe to this mod's changes

07-cms-live-preview-visual-builder-support-assistant is a cursor rule published in the GitHub repository contentstack/contentstack-agent-skills (5 stars, last pushed 16d ago), licensed MIT. It adds 44 tokens to every session and 2,275 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.