Token导航 LogoToken导航TokenDH.com
开发规范敏感数据github未标认证来源可访问clear审计提醒

storyblok-best-practices故事块最佳实践

Agent Skill

storyblok-best-practices 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,085

周安装

86

GitHub Stars

8

下载量

681
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/bartundmett/skills --skill storyblok-best-practices

简介

storyblok-best-practices 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。

  • 适用于需要持续改进和知识积累的项目环境,帮助建立经验库。
  • 能够自动记录错误案例、用户反馈和改进建议,形成可复用的知识资产。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 可结合来源仓库和原始 README 继续核验具体用法和实现细节。

SKILL.md

Storyblok Best Practices

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.

When to Apply

Reference these guidelines when:

  • Designing Storyblok content models and component schemas
  • Integrating Storyblok with React, Vue, Nuxt, or Next.js
  • Configuring Visual Editor and real-time preview
  • Building custom field plugins with @storyblok/field-plugin
  • Implementing Content Delivery API or Management API
  • Setting up internationalization (i18n) with field or folder translations
  • Configuring webhooks for cache invalidation and automation
  • Managing multi-space architectures and CI/CD workflows
  • Handling rich text fields with custom resolvers
  • Optimizing images and performance with Image Service
  • Building tool plugins or space plugins (sidebar apps)
  • Setting up preview/production environments

Rule Categories by Priority

PriorityCategoryImpactPrefix
1Content ModelingCRITICALmodel-
2SDK IntegrationCRITICALsdk-
3Visual EditorCRITICALeditor-
4Performance & CachingCRITICALperf-
5Security & AuthenticationCRITICALsecurity-
6Field PluginsHIGHplugin-
7API DevelopmentHIGHapi-
8InternationalizationHIGHi18n-
9Next.js IntegrationHIGHnextjs-
10Nuxt IntegrationHIGHnuxt-
11App DevelopmentHIGHapp-
12Space & Asset ManagementHIGHspace-
13Webhooks & AutomationMEDIUM-HIGHwebhook-
14Workflows & PublishingMEDIUM-HIGHworkflow-
15CLI & DevOpsMEDIUMcli-
16Testing & QualityMEDIUMtest-
17Rich Text & MediaMEDIUMrichtext-
18Common PatternsHIGHpattern-
19SEO & Structured DataHIGHseo-
20E-commerce IntegrationHIGHecommerce-
21Content MigrationMEDIUM-HIGHmigration-
22AI FeaturesMEDIUMai-
23CollaborationMEDIUMcollaboration-
24Custom AppsMEDIUMapp-

Quick Reference

1. Content Modeling (CRITICAL)

  • model-component-structure - Follow atomic design for components
  • model-field-configuration - Configure field types with validation
  • model-block-nesting - Manage block nesting with restrictions
  • model-naming-conventions - Use consistent naming (snake_case)

2. SDK Integration (CRITICAL)

  • sdk-storyblok-editable - Always apply storyblokEditable() to components
  • sdk-component-registration - Register all components globally
  • sdk-richtext-rendering - Render rich text with custom resolvers

3. Visual Editor (CRITICAL)

  • editor-bridge-setup - Configure Storyblok Bridge correctly
  • editor-draft-published - Handle draft/published content properly

4. Performance & Caching (CRITICAL)

  • perf-image-optimization - Use Image Service for optimized delivery
  • perf-cache-invalidation - Implement proper cache invalidation with cv parameter
  • perf-monitoring - API and content performance monitoring

5. Security & Authentication (CRITICAL)

  • security-token-handling - Secure API token management
  • security-roles-permissions - RBAC and access control configuration

6. Field Plugins (HIGH)

  • plugin-field-development - Build field plugins with @storyblok/field-plugin SDK

7. API Development (HIGH)

  • api-content-delivery - Use Content Delivery API correctly with pagination
  • api-graphql - Use GraphQL API for optimized queries
  • api-management - Use Management API for CRUD operations

8. Internationalization (HIGH)

  • i18n-field-translation - Implement field-level translations correctly
  • i18n-folder-level - Folder-level translations with Dimensions app

9. Next.js Integration (HIGH)

  • nextjs-app-router - Integrate with Next.js App Router and RSC

10. Nuxt Integration (HIGH)

  • nuxt-integration - Configure @storyblok/nuxt module correctly

11. App Development (HIGH)

  • app-tool-plugins - Build tool and space plugins with App Bridge

12. Space & Asset Management (HIGH)

  • space-asset-management - Organize assets and datasources
  • space-multi-environment - Multi-space architecture for enterprise

13. Webhooks & Automation (MEDIUM-HIGH)

  • webhook-configuration - Configure webhooks for content events

14. Workflows & Publishing (MEDIUM-HIGH)

  • workflow-releases - Use Releases for scheduled publishing
  • workflow-pipelines - Pipeline stages for content staging

15. CLI & DevOps (MEDIUM)

  • cli-component-sync - Use CLI for component schema management

16. Testing & Quality (MEDIUM)

  • test-preview-environments - Set up preview and production environments
  • test-unit-integration - Unit, integration, and E2E testing strategies

17. Rich Text & Media (MEDIUM)

  • richtext-media-handling - Handle rich text media correctly

18. Common Patterns (HIGH)

  • pattern-typescript - Generate and use TypeScript types
  • pattern-error-handling - Implement robust error handling
  • pattern-debugging - Debugging and troubleshooting guide
  • pattern-relations-references - Story links, relations, and reference resolution

19. SEO & Structured Data (HIGH)

  • seo-structured-data - JSON-LD, Open Graph, and sitemap configuration

20. E-commerce Integration (HIGH)

  • ecommerce-integration - Commerce platform integration patterns

21. Content Migration (MEDIUM-HIGH)

  • migration-patterns - Content migration strategies and tooling

22. AI Features (MEDIUM)

  • ai-content-features - Storyblok AI capabilities and RAG preparation

23. Collaboration (MEDIUM)

  • collaboration-realtime - Real-time editing, comments, and conflict resolution

24. Custom Apps (MEDIUM)

  • app-custom-sidebar - Sidebar apps and tool plugins beyond field plugins

Core Principles

Visual Editor First

Storyblok's Visual Editor is the primary editing experience:

  • Always apply storyblokEditable() to components
  • Configure the Storyblok Bridge for live editing
  • Test components in the Visual Editor, not just code

Content Delivery vs Management API

APIPurposeTokenCache
Content DeliveryFetch contentPublic/PreviewCDN
ManagementCRUD operationsPersonal/OAuthNone
GraphQLRead-only queriesPublic/PreviewCDN

Framework Integration

FrameworkSDKSpecial Features
React@storyblok/react (v5+)useStoryblokState, RSC support, StoryblokServerComponent
Vue@storyblok/vuev-editable directive
Nuxt@storyblok/nuxt (v9+ for Nuxt 4)Auto-registration, useAsyncStoryblok, deep option
Next.js@storyblok/reactDraft mode, ISR, App Router
Astro@storyblok/astroHybrid rendering

Token Security

Never expose these in client-side code:

  • Preview tokens (show draft content)
  • Personal access tokens (full write access)
  • OAuth tokens (scoped access)

Safe for client-side:

  • Public tokens (read-only published content)

How to Use

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:

  • Brief explanation of why it matters
  • Incorrect code example with explanation
  • Correct code example with explanation
  • Configuration tables and references

Key Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

27.78%
按下载量换算189

Cursor

20.55%
按下载量换算140

windsurf

17.14%
按下载量换算117

Codex

12.04%
按下载量换算82

OpenCode

7.52%
按下载量换算51

github-copilot

3.76%
按下载量换算26

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills