Storyblok

From bartundmett/skills · View interactive version

Storyblok is an AI agent skill from the GitHub repository bartundmett/skills. Comprehensive Storyblok CMS development best practices for agency developers. Covers content modeling, SDK integration (React, Vue, Nuxt, Next.js), Visual Editor configuration, field plugins, API usage, internationalization, webhooks, and deployment patterns. Triggers on tasks involving Storyblok co

How to use this skill

Skill file

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:

Rule Categories by Priority

| 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- |

Quick Reference

1. Content Modeling (CRITICAL)

2. SDK Integration (CRITICAL)

3. Visual Editor (CRITICAL)

4. Performance & Caching (CRITICAL)

5. Security & Authentication (CRITICAL)

6. Field Plugins (HIGH)

7. API Development (HIGH)

8. Internationalization (HIGH)

9. Next.js Integration (HIGH)

10. Nuxt Integration (HIGH)

11. App Development (HIGH)

12. Space & Asset Management (HIGH)

13. Webhooks & Automation (MEDIUM-HIGH)

14. Workflows & Publishing (MEDIUM-HIGH)

15. CLI & DevOps (MEDIUM)

16. Testing & Quality (MEDIUM)

17. Rich Text & Media (MEDIUM)

18. Common Patterns (HIGH)

19. SEO & Structured Data (HIGH)

20. E-commerce Integration (HIGH)

21. Content Migration (MEDIUM-HIGH)

22. AI Features (MEDIUM)

23. Collaboration (MEDIUM)

24. Custom Apps (MEDIUM)

Core Principles

Visual Editor First

Storyblok's Visual Editor is the primary editing experience:

Content Delivery vs Management API

| 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 Integration

| 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 | Hybrid rendering |

Token Security

Never expose these in client-side code:

Safe for client-side:

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:

Key Resources

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.