Installs Sanity agent rules directly into the local project. Use when setting up a new editor environment.
/plugin marketplace add sanity-io/agent-toolkit/plugin install sanity-plugin@sanity-agent-toolkitThis skill inherits all available tools. When active, it can use any tool Claude has access to.
This skill downloads the official Sanity agent rules and saves them to the user's local .cursor/rules directory.
Check Environment
.cursor/rules/ exists. If not, create it.Fetch & Write Rules
sanity://rules/sanity-schema.mdc -> Write to .cursor/rules/sanity-schema.mdcsanity://rules/sanity-groq.mdc -> Write to .cursor/rules/sanity-groq.mdcsanity://rules/sanity-typegen.mdc -> Write to .cursor/rules/sanity-typegen.mdcsanity://rules/sanity-visual-editing.mdc -> Write to .cursor/rules/sanity-visual-editing.mdcsanity://rules/sanity-migration.mdc -> Write to .cursor/rules/sanity-migration.mdcsanity://rules/sanity-page-builder.mdc -> Write to .cursor/rules/sanity-page-builder.mdcsanity://rules/sanity-image.mdc -> Write to .cursor/rules/sanity-image.mdcsanity://rules/sanity-portable-text.mdc -> Write to .cursor/rules/sanity-portable-text.mdcsanity://rules/sanity-studio-structure.mdc -> Write to .cursor/rules/sanity-studio-structure.mdcsanity://rules/sanity-get-started.mdc -> Write to .cursor/rules/sanity-get-started.mdcsanity://rules/sanity-project-structure.mdc -> Write to .cursor/rules/sanity-project-structure.mdcsanity://rules/sanity-localization.mdc -> Write to .cursor/rules/sanity-localization.mdcsanity://rules/sanity-seo.mdc -> Write to .cursor/rules/sanity-seo.mdcsanity://rules/sanity-hydrogen.mdc -> Write to .cursor/rules/sanity-hydrogen.mdcFramework Specifics (Conditional):
sanity://rules/sanity-nextjs.mdcsanity://rules/sanity-remix.mdcsanity://rules/sanity-svelte.mdcsanity://rules/sanity-nuxt.mdcsanity://rules/sanity-astro.mdcUpdate Configuration
.cursorrules or agents.md.Confirmation
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.