Skip to main content

studio

Sanity Studio coding standards, content modeling patterns, and component guidelines. Use this when working on studio code

来源信息

仓库
equinor/energyvision
最近来源活动
2026年9月10日 10:34
检测到的 SKILL.md 语言
英语
星标
6
Forks
2

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
studio
description
Sanity Studio coding standards, content modeling patterns, and component guidelines. Use this when working on studio code
# Energyvision Studio Instructions ## Tech Stack and Tooling - Studio app: Sanity 6 - Package manager: `pnpm` - Lint/format: Biome ## TypeScript and React Rules - Use `type` aliases (not `interface`) for shared shapes. - Prefer named exports for types/utilities. - Use functional components. - Keep components and Hooks pure; do not mutate props/state. - Keep one source of truth for each piece of state (lift state up instead of duplicating it). ## Studio Guidelines - Follow Sanity Studio best practices for content modeling and component development. - Use existing schemas and components as references for new additions. - Keep the Studio UI consistent with the established design system. - Avoid duplicating logic; create reusable components and utilities. - Ensure proper validation and field-level rules are applied to content models. - Document any new schemas or components clearly for future maintainers. ## Sanity Sub-Skills - `sanity-best-practices`: Sanity schemas, GROQ queries, Studio configuration, previews, webhooks, and framework integrations. - `content-modeling-best-practices`: Content types, field design, references, embedded objects, reuse, and taxonomies. - `portable-text-conversion`: HTML or Markdown imports and conversion to Portable Text. - `portable-text-serialization`: Rendering or serializing Portable Text in applications and other output formats. - `sanity-migration`: Content or CMS migrations into Sanity. - `sanity-studio-upgrade`: Sanity Studio version upgrades, migration plans, and upgrade troubleshooting. - `content-experimentation-best-practices`: CMS-managed experiments, variants, success metrics, and experiment analysis. - `seo-aeo-best-practices`: Metadata, structured data, sitemaps, hreflang, and search or answer-engine optimization. # Internationalization (i18n) Managed through the `document-internationalization` plugin in Sanity Studio. Ensure that all new document types are configured for internationalization if they contain translatable content. - Use Sanity's built-in localization features for content that needs to support multiple languages. - Keep translations organized and consistent across schemas. - Avoid hardcoding text; use references to localized content where possible.
在 GitHub 查看