重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
storyblok-best-practices by bartundmett/skills
npx skills add https://github.com/bartundmett/skills --skill storyblok-best-practicesStoryblok CMS 开发的全面最佳实践指南,专为协助机构开发者的 AI 代理和 LLM 设计。包含 24 个类别下的 40 条规则,按影响优先级排序,以指导自动化代码生成和内容架构决策。
在以下情况下参考这些指南:
| 优先级 | 类别 | 影响 | 前缀 |
|---|---|---|---|
| 1 | 内容建模 | 关键 | model- |
| 2 | SDK 集成 | 关键 | sdk- |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 3 | 可视化编辑器 | 关键 | editor- |
| 4 | 性能与缓存 | 关键 | perf- |
| 5 | 安全与认证 | 关键 | security- |
| 6 | 字段插件 | 高 | plugin- |
| 7 | API 开发 | 高 | api- |
| 8 | 国际化 | 高 | i18n- |
| 9 | Next.js 集成 | 高 | nextjs- |
| 10 | Nuxt 集成 | 高 | nuxt- |
| 11 | 应用开发 | 高 | app- |
| 12 | 空间与资产管理 | 高 | space- |
| 13 | Webhook 与自动化 | 中高 | webhook- |
| 14 | 工作流与发布 | 中高 | workflow- |
| 15 | CLI 与 DevOps | 中 | cli- |
| 16 | 测试与质量 | 中 | test- |
| 17 | 富文本与媒体 | 中 | richtext- |
| 18 | 通用模式 | 高 | pattern- |
| 19 | SEO 与结构化数据 | 高 | seo- |
| 20 | 电子商务集成 | 高 | ecommerce- |
| 21 | 内容迁移 | 中高 | migration- |
| 22 | AI 功能 | 中 | ai- |
| 23 | 协作 | 中 | collaboration- |
| 24 | 自定义应用 | 中 | app- |
model-component-structure - 遵循原子设计原则构建组件model-field-configuration - 配置带有验证的字段类型model-block-nesting - 通过限制管理块嵌套model-naming-conventions - 使用一致的命名(snake_case)sdk-storyblok-editable - 始终将 storyblokEditable() 应用于组件sdk-component-registration - 全局注册所有组件sdk-richtext-rendering - 使用自定义解析器渲染富文本editor-bridge-setup - 正确配置 Storyblok Bridgeeditor-draft-published - 正确处理草稿/已发布内容perf-image-optimization - 使用 Image Service 进行优化交付perf-cache-invalidation - 使用 cv 参数实现正确的缓存失效perf-monitoring - API 和内容性能监控security-token-handling - 安全的 API 令牌管理security-roles-permissions - RBAC 和访问控制配置plugin-field-development - 使用 @storyblok/field-plugin SDK 构建字段插件api-content-delivery - 正确使用内容交付 API 并处理分页api-graphql - 使用 GraphQL API 进行优化查询api-management - 使用管理 API 进行 CRUD 操作i18n-field-translation - 正确实现字段级翻译i18n-folder-level - 使用 Dimensions 应用实现文件夹级翻译nextjs-app-router - 与 Next.js App Router 和 RSC 集成nuxt-integration - 正确配置 @storyblok/nuxt 模块app-tool-plugins - 使用 App Bridge 构建工具和空间插件space-asset-management - 组织资产和数据源space-multi-environment - 面向企业的多空间架构webhook-configuration - 为内容事件配置 Webhookworkflow-releases - 使用 Releases 进行计划发布workflow-pipelines - 用于内容暂存的流水线阶段cli-component-sync - 使用 CLI 管理组件模式test-preview-environments - 设置预览和生产环境test-unit-integration - 单元、集成和端到端测试策略richtext-media-handling - 正确处理富文本媒体pattern-typescript - 生成和使用 TypeScript 类型pattern-error-handling - 实现稳健的错误处理pattern-debugging - 调试和故障排除指南pattern-relations-references - 故事链接、关系和引用解析seo-structured-data - JSON-LD、Open Graph 和站点地图配置ecommerce-integration - 电子商务平台集成模式migration-patterns - 内容迁移策略和工具ai-content-features - Storyblok AI 功能和 RAG 准备collaboration-realtime - 实时编辑、评论和冲突解决app-custom-sidebar - 超越字段插件的侧边栏应用和工具插件Storyblok 的可视化编辑器是主要的编辑体验:
storyblokEditable() 应用于组件| API | 用途 | 令牌 | 缓存 |
|---|---|---|---|
| 内容交付 | 获取内容 | 公共/预览 | CDN |
| 管理 | CRUD 操作 | 个人/OAuth | 无 |
| GraphQL | 只读查询 | 公共/预览 | CDN |
| 框架 | SDK | 特殊功能 |
|---|---|---|
| React | @storyblok/react (v5+) | useStoryblokState, RSC 支持, StoryblokServerComponent |
| Vue | @storyblok/vue | v-editable 指令 |
| Nuxt | @storyblok/nuxt (v9+ for Nuxt 4) | 自动注册, useAsyncStoryblok, deep 选项 |
| Next.js | @storyblok/react | 草稿模式, ISR, App Router |
| Astro | @storyblok/astro | 混合渲染 |
切勿在客户端代码中暴露以下内容:
客户端安全:
阅读单个规则文件以获取详细说明和代码示例:
rules/model-component-structure.md
rules/sdk-storyblok-editable.md
rules/editor-bridge-setup.md
rules/perf-image-optimization.md
rules/security-token-handling.md
每个规则文件包含:
每周安装
50
代码仓库
GitHub 星标
6
首次出现
2026年1月24日
安全审计
安装于
claude-code34
github-copilot34
codex30
opencode28
gemini-cli27
cursor26
Comprehensive best practices guide for Storyblok CMS development, designed for AI agents and LLMs helping agency developers. Contains 40 rules across 24 categories, prioritized by impact to guide automated code generation and content architecture decisions.
Reference these guidelines when:
| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 1 | Content Modeling | CRITICAL | model- |
| 2 | SDK Integration | CRITICAL | sdk- |
| 3 | Visual Editor | CRITICAL | editor- |
| 4 | Performance & Caching | CRITICAL | perf- |
| 5 | Security & Authentication | CRITICAL | security- |
| 6 | Field Plugins | HIGH | plugin- |
| 7 | API Development | HIGH | api- |
| 8 | Internationalization | HIGH | i18n- |
| 9 | Next.js Integration | HIGH | nextjs- |
| 10 | Nuxt Integration | HIGH | nuxt- |
| 11 | App Development | HIGH | app- |
| 12 | Space & Asset Management | HIGH | space- |
| 13 | Webhooks & Automation | MEDIUM-HIGH | webhook- |
| 14 | Workflows & Publishing | MEDIUM-HIGH | workflow- |
| 15 | CLI & DevOps | MEDIUM | cli- |
| 16 | Testing & Quality | MEDIUM | test- |
| 17 | Rich Text & Media | MEDIUM | richtext- |
| 18 | Common Patterns | HIGH | pattern- |
| 19 | SEO & Structured Data | HIGH | seo- |
| 20 | E-commerce Integration | HIGH | ecommerce- |
| 21 | Content Migration | MEDIUM-HIGH | migration- |
| 22 | AI Features | MEDIUM | ai- |
| 23 | Collaboration | MEDIUM | collaboration- |
| 24 | Custom Apps | MEDIUM | app- |
model-component-structure - Follow atomic design for componentsmodel-field-configuration - Configure field types with validationmodel-block-nesting - Manage block nesting with restrictionsmodel-naming-conventions - Use consistent naming (snake_case)sdk-storyblok-editable - Always apply storyblokEditable() to componentssdk-component-registration - Register all components globallysdk-richtext-rendering - Render rich text with custom resolverseditor-bridge-setup - Configure Storyblok Bridge correctlyeditor-draft-published - Handle draft/published content properlyperf-image-optimization - Use Image Service for optimized deliveryperf-cache-invalidation - Implement proper cache invalidation with cv parameterperf-monitoring - API and content performance monitoringsecurity-token-handling - Secure API token managementsecurity-roles-permissions - RBAC and access control configurationplugin-field-development - Build field plugins with @storyblok/field-plugin SDKapi-content-delivery - Use Content Delivery API correctly with paginationapi-graphql - Use GraphQL API for optimized queriesapi-management - Use Management API for CRUD operationsi18n-field-translation - Implement field-level translations correctlyi18n-folder-level - Folder-level translations with Dimensions appnextjs-app-router - Integrate with Next.js App Router and RSCnuxt-integration - Configure @storyblok/nuxt module correctlyapp-tool-plugins - Build tool and space plugins with App Bridgespace-asset-management - Organize assets and datasourcesspace-multi-environment - Multi-space architecture for enterprisewebhook-configuration - Configure webhooks for content eventsworkflow-releases - Use Releases for scheduled publishingworkflow-pipelines - Pipeline stages for content stagingcli-component-sync - Use CLI for component schema managementtest-preview-environments - Set up preview and production environmentstest-unit-integration - Unit, integration, and E2E testing strategiesrichtext-media-handling - Handle rich text media correctlypattern-typescript - Generate and use TypeScript typespattern-error-handling - Implement robust error handlingpattern-debugging - Debugging and troubleshooting guidepattern-relations-references - Story links, relations, and reference resolutionseo-structured-data - JSON-LD, Open Graph, and sitemap configurationecommerce-integration - Commerce platform integration patternsmigration-patterns - Content migration strategies and toolingai-content-features - Storyblok AI capabilities and RAG preparationcollaboration-realtime - Real-time editing, comments, and conflict resolutionapp-custom-sidebar - Sidebar apps and tool plugins beyond field pluginsStoryblok's Visual Editor is the primary editing experience:
storyblokEditable() to components| API | Purpose | Token | Cache |
|---|---|---|---|
| Content Delivery | Fetch content | Public/Preview | CDN |
| Management | CRUD operations | Personal/OAuth | None |
| GraphQL | Read-only queries | Public/Preview | CDN |
| Framework | SDK | Special Features |
|---|---|---|
| React | @storyblok/react (v5+) | useStoryblokState, RSC support, StoryblokServerComponent |
| Vue | @storyblok/vue | v-editable directive |
| Nuxt | @storyblok/nuxt (v9+ for Nuxt 4) | Auto-registration, useAsyncStoryblok, deep option |
| Next.js | @storyblok/react | Draft mode, ISR, App Router |
| Astro | @storyblok/astro |
Never expose these in client-side code:
Safe for client-side:
Read individual rule files for detailed explanations and code examples:
rules/model-component-structure.md
rules/sdk-storyblok-editable.md
rules/editor-bridge-setup.md
rules/perf-image-optimization.md
rules/security-token-handling.md
Each rule file contains:
Weekly Installs
50
Repository
GitHub Stars
6
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
claude-code34
github-copilot34
codex30
opencode28
gemini-cli27
cursor26
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
122,000 周安装
| Hybrid rendering |