Svelte AI tools: official Svelte 5 skills and docs server
sveltejs/ai-tools
The Svelte team's own add-on for AI coding assistants. Your assistant writes modern Svelte 5 code instead of old Svelte 4 habits. It looks up the official Svelte and SvelteKit docs when it is unsure, and checks each component before it hands the code to you.
Pack description by its author: “The Svelte team's own add-on for AI coding assistants. Your assistant writes modern Svelte 5 code instead of old Svelte 4 habits. It looks up the official Svelte and SvelteKit docs when it is unsure, and checks each component before it hands the code to you.”
Marketing, SEO and writingKnowledge and rules for your assistantGives your assistant new abilities with scriptsChanges how your assistant works, all the time
1. Changes your files
Skills that write or edit files: svelte-core-bestpractices, svelte-code-writer.
github.com/sveltejs/ai-tools/blob/d3e755b/2. Runs code on your machine
Plugin installs (Claude Code: The plugin starts the local Svelte docs server with npx -y @sveltejs/mcp, which npx fetches from npm. Claude Code plugin: Registers the Svelte language server for .svelte files (svelteserver --stdio).
github.com/sveltejs/ai-tools/blob/d3e755b/3. Sends data
The plugins and skills run the npm package @sveltejs/mcp through npx without a pinned version, so each run uses what npm serves. Install only from github.com/sveltejs/ai-tools or the @sveltejs npm packages. The feedback skill writes public GitHub issues: it asks the assistant to strip project code and secrets first, but read the draft before it is sent.
github.com/sveltejs/ai-tools/blob/d3e755b/Checked against the pack's files at commit d3e755b, on Nov 21, 2026. Tap a verdict to see its source.How we checkedReport an error
Good for you if
- You build a site or app with Svelte or SvelteKit using Claude Code, Codex, Cursor, GitHub Copilot, OpenCode or Pi
- Your assistant writes outdated Svelte (on:click, export let, slots) or guesses at syntax
- You want the assistant to check each component and fix what the checker finds before you see it
Probably not for you if
- Your project does not use Svelte or SvelteKit
- You want help with a framework in general: these skills only cover Svelte components and modules
What its answer looks like
Compute from state with $derived, not $effect
// do this
let square = $derived(num * num);
// don't do this
let square;
$effect(() => {
square = num * num;
});
The skill's own example, from tools/skills/svelte-core-bestpractices/SKILL.md. More examples
What you'll notice
- Svelte 5 style code: runes such as $state and $derived, onclick instead of on:click, snippets instead of slots
- The assistant looks up sections of the official Svelte docs before writing code it is unsure about
- A checking step: the assistant runs the Svelte autofixer on a component and keeps fixing until it reports no issues
- With the plugin, a separate Svelte helper takes over work on .svelte files and reports what it changed
What you need
- Claude Code, Codex, Cursor, GitHub Copilot CLI, OpenCode, Pi
- Free, MIT license
- Two commands in Claude Code (add the marketplace, install the svelte plugin), or one command in Cursor, OpenCode or Pi
- The docs server and checker run through Node.js (npx); a GitHub account is needed only for the optional feedback skill
Words on this page
- Skill
- A set of written instructions your AI assistant follows. Installing one is like giving it a playbook.
- Plugin
- A package your assistant installs that can bring skills, commands and hooks together.
- MCP
- A standard way to connect an AI assistant to outside tools and data.
- Subagent
- A helper the assistant starts for one part of a task.
- CLI
- A program you run by typing commands in a terminal.
| Repository | sveltejs/ai-tools · website |
|---|---|
| GitHub stars | 344 |
| Skills | 5 |
| Category | Marketing, SEO and writing |
| License | MIT |
| Last updated | Nov 20, 2026 · card checked Nov 21, 2026 at commit d3e755b |
| Install counts | sveltejs/ai-tools on skills.sh, Vercel's skills directory, which shows installs and security audits per skill |
sveltejs/ai-tools popularity over time
What Svelte AI tools does
- svelte-core-bestpractices: when to use $state, $derived and $effect, props, events, snippets, keyed each blocks, styling, context and async Svelte
- A list of legacy Svelte 4 features to avoid and their Svelte 5 replacements
- svelte-code-writer: how to call the @sveltejs/mcp command line tool to list doc sections, fetch docs and run the autofixer
- svelte-file-editor helper (plugins): gathers docs, edits the file, runs the autofixer, fixes and re-checks, then reports
- Plugins also add the local Svelte docs server (MCP), and the Claude Code plugin registers the Svelte language server
- svelte-mcp-feedback (opt-in, installed separately): turns your correction of a Svelte mistake into a GitHub issue for the autofixer
From the pack's SKILL.md files, summarised by AgentGid.
The 3 skills, explained
svelte-core-bestpractices
Rules for writing fast, modern Svelte 5 code
You give
- A Svelte component or module to write, edit or review
You get
- Code that follows the Svelte 5 rules: $derived instead of $effect for computed values, keyed each blocks, onclick events, snippets, createContext
svelte-code-writer
Teaches the assistant to look up the official docs and check its Svelte code with the Svelte command line tool
You give
- The Svelte code or file path to check
- Optionally the Svelte version from package.json
You get
- Doc sections fetched for the topics in question
- Autofixer issues and suggestions for the component
svelte-mcp-feedback
Turns your correction into a short public bug report for the Svelte checker, or a ready form for you to send
You give
- Your correction of a Svelte or SvelteKit mistake the assistant made
You get
- A minimal before/after example
- An issue titled 'Autofixer: detect <incorrect pattern>' in sveltejs/ai-tools, or a prefilled issue form for you to submit
See it in action
The skill defines what its answer looks like. Its own example:
// do this
let square = $derived(num * num);
// don't do this
let square;
$effect(() => {
square = num * num;
});
The skill defines what its answer looks like. Its own example:
1. Summary of changes made 2. Any issues found and fixed by the autofixer 3. Recommendations for further improvements (if any)
When to reach for it
| You want | Use |
|---|---|
| Your assistant writes Svelte 4 syntax in a Svelte 5 project | Install the plugin or the svelte-core-bestpractices skill |
| To check one component by hand | npx @sveltejs/mcp svelte-autofixer ./src/lib/Component.svelte |
| To check code for a Svelte 4 project | svelte-autofixer with --svelte-version 4 |
| Svelte work done in a separate context | Mention the svelte-file-editor agent in your message |
| To help improve the autofixer after you correct a mistake | Install svelte-mcp-feedback separately |
Skills in sveltejs/ai-tools
| Skill | In plain words | Changes files? | What it does (author) |
|---|---|---|---|
| writing-great-skills | — | — | Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.npx skills add sveltejs/ai-tools --skill writing-great-skills |
| writing-opencode-plugins | — | — | OpenCode plugins, @opencode-ai/plugin, @opencode-ai/plugin/tui, plugin hooks, custom tools, TUI routes, slots, keymaps, and packaging. Use when creating, editing, reviewing, testing, or publishing server or TUI plugins for OpenCode.npx skills add sveltejs/ai-tools --skill writing-opencode-plugins |
| svelte-code-writer | Teaches the assistant to look up the official docs and check its Svelte code with the Svelte command line tool | Yes | CLI tools for Svelte 5 documentation lookup and code analysis. MUST be used whenever creating, editing or analyzing any Svelte component (`.svelte`) or Svelte module (`.svelte.ts`/`.svelte.js`). If possible, this skill should be executed within the `svelte-file-editor` subagent for optimal results.npx skills add sveltejs/ai-tools --skill svelte-code-writer |
| svelte-core-bestpractices | Rules for writing fast, modern Svelte 5 code | Yes | Guidance on writing fast, robust, modern Svelte code. Load this skill whenever in a Svelte project and asked to write/edit or analyze a Svelte component or module. Covers reactivity, event handling, styling, integration with libraries and more.npx skills add sveltejs/ai-tools --skill svelte-core-bestpractices |
| svelte-mcp-feedback | Turns your correction into a short public bug report for the Svelte checker, or a ready form for you to send | No | Report Svelte MCP autofixer opportunities when the user corrects a Svelte or SvelteKit mistake the agent made. Use after corrections to .svelte components, .svelte.ts/.svelte.js modules, or SvelteKit features where a reusable check or fix could prevent the mistake. Do not trigger for initial…npx skills add sveltejs/ai-tools --skill svelte-mcp-feedback |
The author's descriptions come from each skill's SKILL.md; the plain-words column is AgentGid's.
Good to know before you install
- It switches on by itself: the skills say they must be used for any Svelte component or module, and the plugin helper is marked to be used proactively.
- The plugins start the Svelte docs server with npx, which downloads the @sveltejs/mcp package from npm when it runs.
- Docs come live from svelte.dev, so the docs lookup needs an internet connection.
- The feedback skill files public GitHub issues and is not part of any plugin; install it only if you want that.
- In Cursor the plugin adds a rule that is always on and tells the model how to use the Svelte docs tools.
- The OpenCode plugin updates itself by default: it checks npm and removes its cached copy so OpenCode installs the newest one.
Before you start
Works in
- Claude Code: plugin
- Codex: plugin
- GitHub Copilot CLI: plugin
- Cursor: plugin (editor only)
- OpenCode: plugin
- Pi: package
- Claude Desktop, VS Code, Zed, Antigravity CLI: MCP server only
You will need
- Node.js (npx): The docs server and the svelte-code-writer commands run @sveltejs/mcp through npx
- svelteserver (Svelte language server): Only for the Claude Code plugin's language server entry
- gh CLI with a GitHub account: Only for the opt-in svelte-mcp-feedback skill; otherwise it opens a browser form
Steps only you can do
- In Codex, open /plugins, choose the Svelte marketplace and install the svelte plugin (documentation/docs/60-plugins/50-codex-plugin.md)
Then: Codex has the docs server, skills and helper - For svelte-mcp-feedback, log in to the GitHub CLI (gh auth login), or submit the prefilled issue form yourself (tools/skills/svelte-mcp-feedback/SKILL.md)
Then: The assistant files the issue with gh, or hands you the form link - Make sure Node.js (npx) is available, and for the Claude Code language server a svelteserver command on PATH (plugins/claude/svelte/.claude-plugin/plugin.json)
Then: The docs server, autofixer and language server start without errors
Mistakes to avoid
Pass component code with runes to the command line tool unescaped
Escape $ as \$ in inline code, or pass a file path instead
The shell replaces $state and $derived with empty variablesExpect svelte-mcp-feedback to come with the plugin
Install it separately with npx skills add sveltejs/ai-tools --skill svelte-mcp-feedback, only if you want issues filed
It is opt-in and not bundled with any pluginInstall the Cursor plugin for the Cursor CLI or Cloud Agents and expect skills and the helper
Use the Cursor editor; in Cloud Agents only the docs server works
The Cursor CLI has no plugin support, and Cloud Agents only load MCP serversRun the autofixer with the default version on a Svelte 4 project
Pass --svelte-version with the version from package.json
The default target is Svelte 5, and version-specific suggestions need the full versionExpect the svelte-file-editor helper in Pi
Ask Pi to spawn another instance of itself for isolated work
The Pi package does not include the subagent
Which one to pick
| If you need | Pick |
|---|---|
| You build with Svelte or SvelteKit and want official rules, live docs and a code checker | This pack |
| You build with React or Next.js and want framework best-practice skills | vercel-labs/agent-skills |
| You want framework-neutral, current web platform guidance | GoogleChrome/modern-web-guidance |
Works well with
- svelte: The skills and autofixer are written for Svelte 5 and SvelteKit projects
- svelte-check: Type checking for Svelte components alongside the autofixer's suggestions
- claude-code: The repository is a Claude Code plugin marketplace with the svelte plugin
- opencode: The @sveltejs/opencode plugin sets up the docs server, skills and helper
May I use it like this?
| Use | Answer | Condition |
|---|---|---|
| In a commercial app | Yes | MIT: keep the license notice |
| Passing the files on | Yes | MIT: keep the copyright and permission notice in copies |
| Work for clients | Yes | MIT allows use in work for others |
What leaves your machine
- Requests for the docs section list and the doc pages → svelte.dev, When the assistant calls list-sections or get-documentation. Opt out: Do not install the docs server; use only svelte-core-bestpractices
- The code the assistant sends to the tools (autofixer, docs, playground link) → mcp.svelte.dev, Only if you set up the remote server instead of the local one. Opt out: Use the local server (the plugin default)
- A minimal before/after code example and your Svelte, SvelteKit and model versions, as a public issue → github.com/sveltejs/ai-tools issues, Only with the opt-in svelte-mcp-feedback skill, after you correct a Svelte mistake. Opt out: Do not install svelte-mcp-feedback
- A version check for @sveltejs/opencode → npm registry, When the OpenCode plugin starts. Opt out: No opt-out documented; autoupdate false only stops the self-removal
Install Svelte AI tools
Official commands from the repository
/plugin marketplace add sveltejs/ai-tools /plugin install svelte
Gives the local docs server, the skills and the svelte-file-editor helper. The language server entry expects a svelteserver command on your PATH.
codex plugin marketplace add sveltejs/ai-tools codex /plugins
In /plugins choose the Svelte marketplace, select the svelte plugin and install it.
copilot plugin marketplace add sveltejs/ai-tools copilot plugin install svelte@ai-tools
In VS Code, run 'Install plugin from source' with the repository URL instead.
/add-plugin svelte
From the Cursor Marketplace; adds the docs server, skills, an always-on rule and the helper. The Cursor CLI does not support plugins yet.
opencode plugin add @sveltejs/opencode
OpenCode 2 or newer; with OpenCode 1.3.4 to 1.x run opencode plugin @sveltejs/opencode.
pi install npm:@sveltejs/pi
Pi 0.99.0 or newer; add -l for the current project only. No helper subagent in Pi.
npx skills add sveltejs/ai-tools --skill svelte-code-writer npx skills add sveltejs/ai-tools --skill svelte-core-bestpractices
Skills only, no docs server. The opt-in feedback skill is npx skills add sveltejs/ai-tools --skill svelte-mcp-feedback.
Copy the folders from tools/skills into .claude/skills, .copilot/skills or .opencode/skills.
Or with the open-source skills CLI: npx skills add sveltejs/ai-tools. Skills are instructions your agent follows: read them before installing.
What it installs and runs on your machine
Read in the code at commit d3e755b, Nov 21, 2026
| When | What happens |
|---|---|
| Plugin installs (Claude Code | The plugin starts the local Svelte docs server with npx -y @sveltejs/mcp, which npx fetches from npm. |
| Claude Code plugin | Registers the Svelte language server for .svelte files (svelteserver --stdio). |
| list-sections / get-documentation | The docs server reads the section list and docs from svelte.dev. |
| svelte-autofixer | Static analysis of the code or file you pass; reads the file if the argument is a path. |
| Remote option | If you choose the remote server, your code goes to https://mcp.svelte.dev/mcp; the Svelte team says it does not log, store or inspect it. |
| OpenCode plugin start | Checks npm for a newer version; with autoupdate on (default) it deletes its own cache folder at shutdown. Its settings dialog writes .opencode/svelte.json or ~/.config/opencode/svelte.json. |
| svelte-mcp-feedback (opt-in) | The assistant runs gh issue list / gh issue create against sveltejs/ai-tools, or opens a prefilled issue page in the browser. |
Settings
--svelte-version: autofixer target version, major 4 or 5 (default 5)--async: autofixer: enable async Svelte mode (default false)OpenCode svelte.json: mcp.type: local (default) or remoteOpenCode svelte.json: subagent / skills / instructions .enabled: turn each part on or off (all on by default)OpenCode svelte.json: autoupdate: false keeps only the update warningPi svelte.json: mcp.exposure: direct (default), codemode, deferred or hidden
Quick answers
- Is it free?
- Yes. MIT license, maintained by the Svelte team.
- Does it send my code anywhere?
- The local server only fetches docs from svelte.dev and npm. If you pick the remote server, code goes to mcp.svelte.dev; the Svelte team says it does not log, store or inspect it. The opt-in feedback skill posts a small example as a public GitHub issue.
- Does it work with Svelte 4?
- The rules are for Svelte 5 runes mode, but the autofixer can target Svelte 4 with --svelte-version 4.
- Do I need the plugin, or are the skills enough?
- The skills work alone: svelte-code-writer tells the assistant to use the command line tool through npx. The plugin adds the docs server and the svelte-file-editor helper.
- Is the feedback skill installed with the plugin?
- No. It is opt-in and installed separately.
Checked by AgentGid on Nov 21, 2026 against commit d3e755b of the pack's own files. agent.md for AI agents · Report a mistake
More marketing, seo and writing skill packs
| # | Install | |||||
|---|---|---|---|---|---|---|
| 1 |
You type /last30days and a topic: a person, a company, a product or "this vs that". Your assistant runs a bundled search program over Reddit, X, YouTube, TikTok, Hacker News, Polymarket, GitHub and the web for the last 30 days. It then writes one short brief, ranked by what people upvoted, liked or bet money on, with links. |
72.3K | +3,423 | 1 | ||
| 2 |
blader/humanizer
Checked
An editing guide for your AI assistant. Give it text that sounds machine-written and it rewrites it so it reads like a person wrote it. It keeps your facts and does not invent new ones. It looks for 26 habits of AI writing, such as "it's not just X, it's Y" and dramatic one-line endings. |
72.1K | +12.1K | 1 | ||
| 3 |
A library of 52 marketing playbooks for your AI assistant. Ask for page copy, an SEO check, emails, ads or a launch plan. The matching playbook asks a few questions and answers in a fixed format. First it builds one shared notes file about your product, so you don't repeat yourself. |
61.9K | +5,612 | 53 | ||
| 4 |
A full research-to-paper workflow for Claude Code. Your assistant can research a topic, plan and draft a paper, check its citations, run a mock peer review and help you revise. It stops and asks you at every stage, so the decisions and the authorship stay yours. |
58K | +4,808 | 5 | ||
| 5 |
A very large library of add-ons for AI assistants, grouped by area: software, marketing, product, finance, executive advice, compliance, research and personal productivity. You install one area or one add-on at a time. Your assistant then follows step-by-step playbooks for that work and can run small calculators and checkers that come with them. |
30.3K | +1,686 | 473 | ||
| 6 |
phuryn/pm-skills
Checked
A large set of product management playbooks for your AI assistant: discovery, strategy, PRDs, OKRs, launches, metrics, research and more. Each one walks you through a known method and returns a document in a fixed shape. One part also documents and reviews an app that an AI assistant built, before you ship it. |
28.2K | +965 | 72 |
No pack matches.