算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
storyblok-best-practices【设计与创意】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 components, Visual Editor setup, content fetching, fie…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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 | Hybrid rendering |
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: