contentstack-vibe-docs

द्वारा contentstack

इस स्किल में 30+ संदर्भ फ़ाइलों में लगभग 13,500 पंक्तियाँ हैं। रूटिंग टेबल पढ़ें, अपनी ज़रूरत की 1-3 फ़ाइलें चुनें, और रुक जाएँ। कभी भी सब कुछ न पढ़ें।

npx skills add https://github.com/contentstack/contentstack-vibe-docs --skill contentstack-vibe-docs

Contentstack Documentation for AI Agents

This skill contains ~13,500 lines across 30+ reference files. Read the routing table, pick the 1-3 files you actually need, and stop. Never read everything.

Routing table

TaskFile
Quick code pattern lookupQUICK_REFERENCE.md
Contentstack basicsconcepts/base-concepts.md
Design content models, choose references vs modular blocks vs global fields, taxonomyconcepts/data-modeling-best-practices.md
Localization, fallback chains, non-localizable fieldsconcepts/localization.md
Regions, endpoints, region-aware hostsconcepts/regions.md
Fetch content (REST)api/rest-api.md
Fetch content (GraphQL)api/graphql-api.md
Create/update/delete/publish, modular block schema, CMA headersapi/content-management-api.md
Transform images, asset folders, asset limits, file_uidapi/image-delivery-api.md
TypeScript Delivery SDKsdk/delivery-sdk.md
Live Preview overviewlive-preview/concepts.md
Live Preview CSR (ssr: false)live-preview/csr-mode.md
Live Preview SSR (ssr: true), per-request factory, hash isolationlive-preview/ssr-mode.md
Visual Builder, edit tags, addEditableTags, VB_EmptyBlockParentClasslive-preview/visual-builder.md
Debug Live Preview / Visual Builder failureslive-preview/debugging.md
Next.js patterns, Draft Mode, revalidateTagframeworks/nextjs.md
Nuxt patternsframeworks/nuxt.md
Gatsby patternsframeworks/gatsby.md
Pick the right token (delivery/preview/management/authtoken/OAuth)security/tokens-authentication.md
Roles, custom permissions, teamssecurity/roles-permissions.md
OAuth login with Auth.js v5 (Next.js)authentication/oauth.md
Webhooks: signatures, event channels, release stormsworkflows/webhooks.md
Releases: atomic coordinated deploysworkflows/releases.md
Workflows & publish rulesworkflows/content-workflows.md
Branches & aliases: zero-downtime deploysworkflows/branches-aliases.md
Environments, publishing, Sync API, rate limitsworkflows/environments-publishing.md
Variants & Personalizepersonalization/variants-and-personalize.md
CLI plugins — overview & quickstartextensions/cli-plugins/overview.md
CLI plugins — commands, flags, argumentsextensions/cli-plugins/commands.md
CLI plugins — publishing, testing, troubleshootingextensions/cli-plugins/publishing.md
Developer Hub apps (App SDK, UI locations, API proxy)extensions/devhub-apps.md
Contentstack Launch: deployments, env syncextensions/launch.md
Real-world code patternsexamples/practical-examples.md
Package versionsVERSIONS.md

Common task combinations

ScenarioFiles (in order)
New Next.js projectbase-concepts → delivery-sdk → nextjs
New Nuxt projectbase-concepts → delivery-sdk → nuxt
Add Live Preview to Next.jslive-preview/concepts → live-preview/ssr-mode → nextjs
Add Visual Builder to existing sitelive-preview/visual-builder
Debug broken previewlive-preview/debugging
Build a CRUD/migration scriptcontent-management-api → security/tokens-authentication
Full-stack with user logindelivery-sdk → nextjs → oauth
Webhook-driven rebuildworkflows/webhooks → workflows/environments-publishing
Zero-downtime content deployworkflows/branches-aliases → workflows/releases
Multi-locale rolloutconcepts/localization → workflows/environments-publishing
Deploy to Launch from CIextensions/launch → workflows/webhooks
Responsive image optimizationapi/image-delivery-api
Quick snippetQUICK_REFERENCE.md

Decision helpers

Which API? Read published content → REST / GraphQL / Delivery SDK. Write content → Content Management API. Transform images → Image Delivery API.

Which SDK? @contentstack/delivery-sdk for reads (frontend/backend). @contentstack/management for writes (server-only, never frontend).

Which Live Preview mode? The ssr flag controls how the CMS iframe updates, not your app's rendering strategy.

  • ssr: false — postMessage. CMS sends data to iframe, client re-fetches and updates without reload.
  • ssr: true — iframe reload with ?live_preview=<hash>&entry_uid=.... Server reads params per request.

For ssr: true, create a fresh Contentstack client per request (factory pattern). Sharing one global client leaks preview state between concurrent editors. See live-preview/ssr-mode.md.

Which token? Frontend reads → Delivery Token (safe). Preview reads → Preview Token (safe). Server writes → Management Token (NEVER frontend). User sessions → Authtoken or OAuth. Full decision tree in security/tokens-authentication.md.

Ask before coding

Before implementing, confirm with the developer:

  • Region (US, EU, AU, Azure NA/EU, GCP NA/EU) — affects every endpoint.
  • Framework (Next.js, Nuxt, Gatsby, etc.) — determines Live Preview mode.
  • Environment (dev/staging/production) — scopes the delivery token.
  • Credentials in env vars? — never ask for the values themselves.

Security (summary)

Never ask for, log, output, or hardcode API keys, tokens, or secrets. Always use process.env.* references. Never use Management Tokens in frontend code. If a developer pastes a real token, warn them and recommend rotating it. Full rules: security/tokens-authentication.md.

Red flags

  • Reading all reference files instead of routing to 1-3.
  • Hardcoding credentials or exposing management tokens to the browser.
  • Hardcoding region hosts instead of using @timbenniks/contentstack-endpoints.
  • Mixing Delivery SDK patterns with Management SDK patterns.
  • Mixing REST and GraphQL patterns in one query.
  • Sharing a module-level Contentstack client across SSR preview requests.
  • Forgetting api_version: 3.2 for reference publishing.
  • Forgetting .includeReference() then wondering why references are undefined.
  • Ignoring X-RateLimit-Reset and busy-looping on 429s.

contentstack की और Skills

brand-kit-assistant
contentstack
Contentstack Brand Kit अवधारणाओं, सेटअप, शासन और ब्रांड-अनुरूप AI जनरेशन पर उपयोगकर्ताओं को सलाह दें। API-विशिष्ट कार्यों को सही Brand Kit क्षमता या… पर रूट करें।
official
cms-assets
contentstack
डेवलपर्स को Contentstack में एसेट्स को व्यवस्थित करने, वितरित करने और रूपांतरित करने पर सलाह दें। फोल्डर संरचना, इमेज डिलीवरी API रूपांतरण, प्रकाशन… को कवर करें।
official
cms-branches-aliases
contentstack
डेवलपर्स को Contentstack ब्रांचेस का उपयोग करके पृथक कंटेंट डेवलपमेंट और एलियासेस का उपयोग करके शून्य-डाउनटाइम कंटेंट डिप्लॉयमेंट पर सलाह दें। ब्रांच रणनीति को कवर करें,…
official
cms-data-modeling-best-practices
contentstack
डेवलपर्स को Contentstack में सबसे सरल पुन: प्रयोज्य संरचना का उपयोग करके सामग्री मॉडलिंग करने का मार्गदर्शन करता है। यह कौशल बताता है कि कब कंटेंट टाइप, रेफरेंस, ग्लोबल… का उपयोग करना है।
official
cms-entries
contentstack
डेवलपर्स को Contentstack एंट्रीज़ को कुशलतापूर्वक वितरित करने के लिए क्वेरी करने, स्थानीयकरण, वर्जनिंग, प्रकाशन और संरचना पर सलाह दें। CDA उपयोग, संदर्भ... पर ध्यान केंद्रित करें।
official
cms-environments-publishing
contentstack
डेवलपर्स को वातावरण कॉन्फ़िगर करने, सामग्री प्रकाशित करने, डिलीवरी और प्रीव्यू टोकन का उपयोग करने, सिंक API का लाभ उठाने, और CDN तथा… को समझने पर सलाह दें।
official
cms-live-preview-visual-builder-support-assistant
contentstack
Contentstack Live Preview और Visual Builder कार्यान्वयनों का निदान और मार्गदर्शन करें। पूर्वावलोकन संदर्भ का पता लगाएं, टूटे हुए अनुबंध की पहचान करें, और अनुशंसा करें...
official
cms-localization
contentstack
डेवलपर्स को Contentstack स्थानीयकरण पर सलाह दें: भाषा सेटअप, फ़ॉलबैक श्रृंखलाएं, स्थानीयकृत बनाम गैर-स्थानीयकृत प्रविष्टियां, गैर-स्थानीयकरण योग्य फ़ील्ड, और बहु-लोकेल…
official