Skip to main content

studio

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

Source facts

Repository
equinor/energyvision
Last source activity
September 10, 2026 at 10:34
Detected SKILL.md language
English
Stars
6
Forks
2

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
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.
View on GitHub