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의 다른 스킬

brand-kit-assistant
contentstack
사용자에게 Contentstack Brand Kit 개념, 설정, 거버넌스 및 브랜드에 부합하는 AI 생성에 대해 조언합니다. API 관련 작업은 적절한 Brand Kit 기능으로 라우팅하거나...
official
cms-assets
contentstack
개발자들이 Contentstack에서 에셋을 구성, 전달 및 변환하는 방법에 대해 조언합니다. 폴더 구조, Image Delivery 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
개발자에게 환경 구성, 콘텐츠 게시, 전달 및 미리보기 토큰 사용, Sync API 활용, CDN 이해 등에 대해 조언합니다.
official
cms-live-preview-visual-builder-support-assistant
contentstack
Contentstack Live Preview 및 Visual Builder 구현을 진단하고 안내합니다. 미리보기 컨텍스트를 추적하고, 손상된 계약을 식별하며, 다음을 권장합니다…
official
cms-localization
contentstack
Contentstack 현지화에 대한 개발자 조언: 언어 설정, 폴백 체인, 현지화된 항목과 현지화되지 않은 항목, 현지화 불가능한 필드, 다중 로케일…
official