Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 82
  • 6.4k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-plugins

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sanity-default-plugins in Claude Code

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

A

No 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 →

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.

sanity-default-plugins Install

Add to stack

Loading.