Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

contentstack-vibe-docscontentstack 氛围文档

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

635

周安装

27

GitHub Stars

3

下载量

222
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:contentstack-vibe-docs(contentstack 氛围文档)
来源仓库:https://github.com/timbenniks/contentstack-vibe-docs
仓库路径:skills/contentstack-vibe-docs
安装命令:
npx skills add https://github.com/timbenniks/contentstack-vibe-docs --skill contentstack-vibe-docs
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

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

简介

提供针对 Contentstack CMS 的 AI 优化文档支持。

  • 适用于快速查找代码模式、理解基础概念和设计内容模型。
  • 通过路由表精准匹配任务,仅读取必要文件以减少 token 消耗。
  • 安装前建议确认仓库权限及是否涉及敏感配置读写。contentstack-vibe-docs 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 使用时应避免一次性加载全部文档,优先使用引用文件定位关键信息。

SKILL.md

Contentstack Documentation for AI Agents

Comprehensive, AI-optimized documentation for the Contentstack CMS. This skill contains ~11,000 lines across 20 reference files.

STOP. Do not read all reference files. Use the routing table below to read ONLY the 1-3 files relevant to your current task.

Routing Table

Match your task to the right file(s). Read the minimum set needed.

TaskRead this fileLines
Quick code pattern lookupQUICK_REFERENCE.md488
Understand Contentstack basicsbase-concepts.md166
Design content models / schema strategydata-modeling-best-practices.md490
Choose references vs modular blocks vs global fieldsdata-modeling-best-practices.md490
Plan taxonomy / tags / classificationdata-modeling-best-practices.md490
Plan localization strategy / multi-channel modelingdata-modeling-best-practices.md490
Configure regions/endpointsregions.md350
Fetch content (REST)rest-api.md487
Fetch content (GraphQL)graphql-api.md620
Create/update/delete/publish contentcontent-management-api.md1170
Transform/optimize imagesimage-delivery-api.md565
Use TypeScript Delivery SDKdelivery-sdk.md480
Implement Live Previewconcepts.md143
Live Preview (client-side, ssr:false)csr-mode.md268
Live Preview (server-side, ssr:true)ssr-mode.md367
Build with Next.jsnextjs.md604
Build with Nuxtnuxt.md404
Build with Gatsbygatsby.md433
Implement OAuth loginoauth.md906
Create CLI pluginscli-plugins.md1672
Build Developer Hub appsdevhub-apps.md869
See real-world code patternspractical-examples.md409
Check package versionsVERSIONS.md103

Common Task Combinations

When a task requires multiple docs, read only these combinations:

ScenarioFiles to read (in order)
New Next.js projectbase-concepts.md, delivery-sdk.md, nextjs.md
New Nuxt projectbase-concepts.md, delivery-sdk.md, nuxt.md
Design a content model / schemadata-modeling-best-practices.md, base-concepts.md
References vs modular blocks / global fieldsdata-modeling-best-practices.md
Localization and multi-channel schema planningdata-modeling-best-practices.md, base-concepts.md
Add Live Preview to Next.jslive-preview/concepts.md, live-preview/ssr-mode.md, nextjs.md
Add Live Preview to Nuxtlive-preview/concepts.md, live-preview/csr-mode.md, nuxt.md
Build a content pipeline (CRUD)content-management-api.md
Responsive image optimizationimage-delivery-api.md
Full-stack with authdelivery-sdk.md, nextjs.md, oauth.md
Content migration scriptcontent-management-api.md, regions.md
Quick code snippetQUICK_REFERENCE.md (this alone is usually enough)

Decision Helpers

Which API to use?

  • Reading published content for a website/app -> REST API or GraphQL API or Delivery SDK
  • Creating, updating, deleting, or publishing content -> Content Management API
  • Transforming images (resize, crop, format) -> Image Delivery API

Which modeling guide?

  • Designing content types, references, global fields, modular blocks, taxonomy, or locale strategy -> data-modeling-best-practices.md
  • Need field type or platform basics first -> base-concepts.md before the modeling guide

Which SDK?

  • @contentstack/delivery-sdk — reading content (frontend/backend)
  • @contentstack/management — writing content (backend only, never in frontend)

Which Live Preview mode?

Important: The ssr setting controls how preview updates work inside the CMS iframe, NOT your website's rendering strategy.

  • ssr: false: Uses postMessage. CMS sends data changes to iframe, client JS re-fetches and updates UI instantly (no page refresh)
  • ssr: true: CMS refreshes the iframe with query params (?live_preview=hash&entry_uid=...). Server reads params and fetches preview data

Security: Credentials Handling

NEVER ask the developer to share API keys, tokens, or secrets in the conversation. Always use environment variable references (process.env.CONTENTSTACK_API_KEY, etc.) in code. Never output, log, or hardcode actual credential values. If the developer pastes a real token, warn them and suggest they rotate it.

Questions to Ask Developers First

Basic Setup

  • What Contentstack region? (US, EU, AU, Azure, GCP) — Required for endpoints
  • Do you have credentials set up? (API Key, Delivery Token, Preview Token as environment variables — do NOT ask for the actual values)
  • What environment? (production, staging, preview)

Framework & Architecture

  • What framework? (Next.js, Nuxt, Gatsby, React, Vue)
  • Does your site fetch data client-side or server-side? — Determines Live Preview SDK mode
  • What's the hosting? (Vercel, Netlify, self-hosted)

Content Requirements

  • What content types? — Query patterns
  • What has an independent lifecycle? — Separate content type vs inline field
  • What needs reuse vs page-local composition? — Reference vs modular block
  • Need references included?.includeReference() usage
  • Using modular blocks? — Rendering patterns
  • Need global fields or taxonomy? — Shared schema vs classification
  • Multiple locales? — Locale handling
  • Need image transforms? — Image Delivery API

Authentication

  • Need user login? — OAuth implementation with Contentstack
  • What framework? — OAuth guide available for Next.js with Auth.js
  • Session storage? — Cookie-based (JWT) or database-persisted

Implementation Workflow

  1. Gather requirements — Ask questions above
  2. Read relevant docs — Use routing table, start with concepts if new
  3. Check examples — Find matching patterns in QUICK_REFERENCE.md
  4. Implement step-by-step — Follow patterns exactly
  5. Add error handling — Always try-catch
  6. Use environment variables — Never hardcode credentials
  7. Test thoroughly — Verify with real stack

Red Flags

Never do these:

  • Ask the developer for actual API keys, tokens, or secrets — always reference process.env.* variables
  • Output, log, or echo credential values in code, scripts, or responses
  • Hardcode API keys or tokens — use environment variables
  • Commit .env files or credentials to version control
  • Use Management Tokens in frontend code — server-side only
  • Read all reference files — pick only what you need
  • Skip error handling
  • Mix Delivery SDK patterns with Management SDK patterns
  • Mix REST and GraphQL patterns incorrectly
  • Forget to include references when needed

Quick Start: Stack Initialization

The most common pattern — initialize the Contentstack SDK:

// lib/contentstack.ts
import contentstack from "@contentstack/delivery-sdk";
import { getContentstackEndpoints } from "@timbenniks/contentstack-endpoints";

const endpoints = getContentstackEndpoints(
  process.env.CONTENTSTACK_REGION || "us",
  true // omitHttps = true (needed for SDK host parameter)
);

export const stack = contentstack.stack({
  apiKey: process.env.CONTENTSTACK_API_KEY!,
  deliveryToken: process.env.CONTENTSTACK_DELIVERY_TOKEN!,
  environment: process.env.CONTENTSTACK_ENVIRONMENT!,
  region: process.env.CONTENTSTACK_REGION || "us",
  live_preview: {
    enable: true,
    preview_token: process.env.CONTENTSTACK_PREVIEW_TOKEN,
    host: endpoints.preview,
  },
});

Basic Content Fetching

// Fetch a single entry
const entry = await stack.contentType("blog_post").entry("entry_uid").fetch();

// Fetch all entries of a type
const entries = await stack
  .contentType("blog_post")
  .entry()
  .query()
  .find();

// Fetch with references included
const entry = await stack
  .contentType("blog_post")
  .entry("entry_uid")
  .includeReference(["author", "category"])
  .fetch();

Environment Variables Template

CONTENTSTACK_API_KEY=your_api_key
CONTENTSTACK_DELIVERY_TOKEN=your_delivery_token
CONTENTSTACK_PREVIEW_TOKEN=your_preview_token
CONTENTSTACK_ENVIRONMENT=production
CONTENTSTACK_REGION=us

Region Quick Reference

Region CodeProviderContent Delivery Host
usAWScdn.contentstack.io
euAWSeu-cdn.contentstack.com
auAWSau-cdn.contentstack.com
azure-naAzureazure-na-cdn.contentstack.com
azure-euAzureazure-eu-cdn.contentstack.com
gcp-naGCPgcp-na-cdn.contentstack.com
gcp-euGCPgcp-eu-cdn.contentstack.com

Use the @timbenniks/contentstack-endpoints package instead of hardcoding these — see regions.md for full details.

Reference Directory

The references/ directory contains detailed documentation organized by topic:

DirectoryContents
references/api/REST, GraphQL, Content Management, and Image Delivery API docs
references/sdk/TypeScript Delivery SDK guide
references/concepts/CMS fundamentals, data modeling guidance, and region configuration
references/frameworks/Next.js, Nuxt, and Gatsby integration patterns
references/live-preview/Live Preview concepts, CSR mode, and SSR mode
references/authentication/OAuth with Auth.js for Next.js
references/extensions/CLI plugin development and Developer Hub apps
references/examples/Real-world code patterns
references/QUICK_REFERENCE.mdCondensed code patterns for quick lookup
references/VERSIONS.mdPackage version compatibility

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.14%
按下载量换算85

Claude

27.74%
按下载量换算62

Cursor

18.93%
按下载量换算42

Gemini CLI

9.67%
按下载量换算21

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills