sanity-default-plugins
Skill by sanity-io
Creates, modifies and reviews Sanity core plugins using the monorepo's default plugin conventions. Aimed at contributors to the Sanity monorepo who add plugins under packages/sanity/src/core.
Install sanity-default-plugins
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sanity-io/sanity /tmp/sanity && mkdir -p ~/.claude/skills && cp -r /tmp/sanity/.agents/skills/sanity-default-plugins ~/.claude/skills/sanity-default-pluginsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sanity-io/sanity /tmp/sanity && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sanity/.agents/skills/sanity-default-plugins ~/.gemini/antigravity-cli/skills/sanity-default-pluginsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install sanity-default-plugins in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill guides the creation, modification and review of Sanity core plugins under packages/sanity/src/core. It tells the assistant to read the sanity-plugin-authoring skill first, then inspect nearby plugins and config files such as resolveDefaultPlugins.ts and types.ts. It covers the definePlugin shape, locale resource bundles, and default plugin wiring.
It is written for developers working in the Sanity monorepo who add default plugins, often gated behind config flags. The skill lists steps for registering a plugin in resolveDefaultPlugins, adding options to types, updating resolveConfig tests, and running a pnpm vitest command. Plugins added this way must live inside core so they can be imported into the default plugins.
Written from the project's SKILL.md and checked against it.
What it can do
- Plugin scaffoldingCreates a core plugin with definePlugin and an exported internal name constant.
- Locale bundlesAdds i18n resource bundles for UI text, following the singleDocRelease pattern.
- Default plugin wiringRegisters a plugin in resolveDefaultPlugins with optional gating and ordering.
- Option plumbingAdds workspace options in types.ts and builds them in getDefaultPluginsOptions.
- Test guidanceAdds focused resolveConfig tests for default and flag-enabled plugin behavior.
- VerificationRuns the resolveConfig vitest project and checks lint on edited files.
What you need
- Sanity monorepo with packages/sanity
- pnpm
- The sanity-plugin-authoring skill
Try asking
- Add a new core plugin under packages/sanity/src/core with a locale bundle
- Wire a gated default plugin into resolveDefaultPlugins and add tests
- Review my core plugin changes for default plugin conventions
Good to know
- Core plugins must be added inside packages/sanity/src/core.
- Examples gate default plugins behind config flags, so they are off by default.
- Component middleware order reverses flattened config order, so check wrapper order before relying on it.
- Component-level tests are only needed when runtime rendering changes.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/sanity-default-plugins/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to sanity-default-plugins
All alternatives →Diagnoses slow React components and suggests targeted performance fixes. Built for developers who want to reduce re-renders or list lag in React UIs.
Diagnoses slow React components and suggests targeted performance fixes. Built for React developers who need to reduce re-renders, list lag, or expensive render work.
Designs masterclass-style lectures as slide courses with dense pages, long teacher narration and rare quizzes. Built for subjects where understanding matters more than hands-on practice.
Designs hands-on workshop courses in which the learner practises through exercise and quiz pages instead of watching. It suits workshops, bootcamp sessions and skills the learner should leave able to use.
Analyzes competition and develops market positioning strategies using Porter's Five Forces, Blue Ocean Strategy, and positioning maps. Useful for founders and teams evaluating competitors or preparing a startup or investor pitch.
Designs courses whose content depends on current or external facts. It researches the topic first, records each claim with its source, and builds the outline and pages from fetched material. Built for educators teaching time-sensitive subjects.
Compare with react-component-performance, react-component-performance or lecture-style
sanity-default-plugins: common questions
Where should a new Sanity core plugin live?
The source says it should be added inside packages/sanity/src/core so it can be imported into the default plugins.
Is a new default plugin enabled by default?
The source says tests should confirm the plugin is not added by default and is added only when the proper config flag is enabled.
Does this skill depend on another skill?
Yes. The source says to read the sanity-plugin-authoring skill first to learn the general Sanity plugin API.
How do I install sanity-default-plugins?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sanity-default-plugins free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is sanity-default-plugins safe to use?
It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sanity-default-plugins?
Similar skills: react-component-performance, react-component-performance, lecture-style, workshop-style.
