ai-tools
The Svelte AI tools can help your LLM write better Svelte code.
Usage
npx sv add ai-toolsWhat you get
You can add the tooling either through the official Svelte plugin or as individual tools.
- The Svelte plugin bundles everything (MCP server, skills and sub-agents) and keeps itself up to date. It’s available for Claude Code, OpenCode and Pi. For Claude Code it’s enabled through a committed
.claude/settings.json- the first time you open the project you’ll be asked to trust the workspace, then it installs automatically (no/plugin installneeded). - Individual tools, for clients without a plugin (or when you want to pick exactly what to add):
- An MCP configuration for local or remote setup
- A README for agents to help you use the MCP server effectively
- Skills for clients that support them
- Sub-agents for clients that support them
Options
ide
The client(s) you want to use like 'claude-code', 'cursor', 'gemini', 'opencode', 'pi', 'vscode', 'other'.
npx sv add ai-tools="ide:cursor,vscode"delivery
How to add the tooling: 'plugin' (the Svelte plugin, recommended) or 'tools' (individual tools). Only asked when a selected client supports a plugin.
npx sv add ai-tools="ide:claude-code+delivery:plugin"tools
Which individual tools to add when not using the plugin, like 'mcp', 'svelte-code-writer', 'svelte-core-bestpractices', 'svelte-file-editor'.
npx sv add ai-tools="ide:cursor+delivery:tools+tools:mcp,svelte-file-editor"mcpSetup
The MCP setup you want to use ('local' or 'remote'). Only relevant when adding the MCP server as an individual tool.
npx sv add ai-tools="mcpSetup:local"agentsMd
Whether to add a README for agents (AGENTS.md, or GEMINI.md for Gemini, plus a .claude/CLAUDE.md pointing to AGENTS.md for Claude Code). Defaults to true. Not asked when no selected client would get one: the Svelte plugin (Claude Code with delivery:plugin, OpenCode and Pi) already covers it.
npx sv add ai-tools="ide:cursor+agentsMd:no"optInSkills
Which opt-in skills to add, like 'svelte-mcp-feedback' (reports Svelte mistakes you correct to the ai-tools repo so the MCP autofixer can catch them). None are added by default. Opt-in skills aren’t bundled with the Svelte plugin, so this is asked for every client that supports skills, even when you choose the plugin. The question is skipped when every selected client can already load the opt-in skills from one of its skills folders (for example Cursor also loads .claude/skills, and Pi also loads .agents/skills). Skills are only written for the clients that can’t load them yet, so sv doesn’t add a second copy for a client that already sees one.
npx sv add ai-tools="ide:claude-code+delivery:plugin+optInSkills:svelte-mcp-feedback"Edit this page on GitHub llms.txt