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-plugin-authoring

Skill by sanity-io

Explains and creates Sanity Studio plugins using the public plugin and tool APIs. It is for developers building user-facing plugins, adding tools through plugins, or agents that need to understand plugin configuration.

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

Install sanity-plugin-authoring

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-plugin-authoring ~/.claude/skills/sanity-plugin-authoring

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

Step-by-step: install sanity-plugin-authoring in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill teaches an assistant what a Sanity Studio plugin is and how to write one. A plugin is a named configuration bundle added through the Studio's plugins array. Plugin configuration can accept most workspace config properties, except workspace-owned settings such as dataset, projectId, auth, and theme. The skill covers definePlugin usage, configurable plugins with options, and the properties a plugin can provide, such as document, form, tools, schema, studio, i18n, and onUncaughtError.

The skill also covers adding tools through a plugin, customizing Studio components and tool menu order, and adding locale resource bundles for plugin UI text. It gives a short checklist for planning a feature and writing focused tests. It is written for developers creating user-facing plugins. For Sanity monorepo default plugin wiring, it points the agent to the separate sanity-core-plugin skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • Plugin creationShows how to create a named plugin with definePlugin, with or without options.
  • Plugin surface selectionLists the plugin properties available, such as document, form, schema, and studio, and advises using the smallest one.
  • Tools in pluginsExplains how to add a top-level Studio tool through a plugin and control its menu order and default route.
  • Studio componentsDescribes customizing Studio UI parts and using renderDefault middleware safely.
  • Locale resourcesShows how to add an i18n bundle so plugin UI text is not hard-coded.

What you need

  • A Sanity Studio project to add plugins to

Try asking

  • Create a Sanity Studio plugin that adds a preview URL for documents
  • Add a new tool to my Sanity Studio through a plugin
  • Show me how to add i18n strings to a Sanity plugin

Good to know

  • Plugin configuration cannot set workspace-owned settings such as dataset, projectId, auth, and theme.
  • Monorepo default plugin wiring is not covered here and needs the sanity-core-plugin skill.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/sanity-plugin-authoring/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md5 KB

Alternatives to sanity-plugin-authoring

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

sanity-plugin-authoring: common questions

What can a Sanity Studio plugin configure?

The skill says a plugin accepts most workspace config properties, except dataset, projectId, auth, and theme. It can also provide document actions, form customizations, tools, schema types, and Studio components.

How do I make a Sanity plugin configurable?

Use definePlugin with a function that receives options, as shown in the skill. Object-shaped options such as {feature: {enabled: true}} are recommended when future settings are likely.

Does this skill cover Sanity monorepo plugin setup?

No. The skill says to read sanity-core-plugin after it for Sanity monorepo default plugin wiring.

How do I install sanity-plugin-authoring?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sanity-plugin-authoring free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is sanity-plugin-authoring 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-plugin-authoring?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

sanity-plugin-authoring Install

Add to stack

Loading.