What problem does it solve?
Adding a new core plugin to the Sanity monorepo requires following specific internal conventions for plugin definition, i18n locale bundles, and default plugin wiring in resolveDefaultPlugins.ts, which are easy to get wrong without guidance.
Core Features & Use Cases
- Plugin Scaffolding: Defines the standard plugin shape using definePlugin with a stable internal name constant and studio component middleware.
- Locale Resource Setup: Provides the exact i18n bundle pattern (index.ts, resources.ts, plugin registration) for core plugins that render UI text.
- Default Plugin Wiring: Walks through registering plugins in resolveDefaultPlugins.ts, adding gated options to DefaultPluginsWorkspaceOptions, and writing focused config tests.
- Use Case: When adding a new feature plugin under packages/sanity/src/core, follow this Skill to register it in the default plugin chain, add its locale bundle, and verify with the resolveConfig test suite.
Quick Start
Ask the AI to add a new core plugin for a feature under packages/sanity/src/core and wire it into the default plugins with its locale bundle and tests.