svelte-file-editor

svelte-file-editor is an agent for Claude Code from sveltejs/ai-tools. It costs 82 tokens per session (653 once invoked), scanned A, original, MIT.

A specialized coding agent for editing and reviewing Svelte 5 components and modules. It uses Svelte documentation and code analysis tools to guide and validate changes.

In plain words
What is it for?
It is for creating, editing, or reviewing .svelte, .svelte.ts, and .svelte.js files. It looks up relevant documentation and runs Svelte's autofixer to check the code.
Why use it?
It helps developers work with Svelte 5's syntax and rules without relying only on memory. It can identify issues in code and suggest fixes.

Agent for Claude Code ✓ vendor

Written for Claude Code: shipped in a Claude Code plugin.

Part of the svelte plugin — 1 agent shipped together

Good fit It is for creating, editing, or reviewing .svelte, .svelte.ts, and .svelte.js files. It looks up relevant documentation and runs Svelte's autofixer to check the code.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sveltejs/ai-tools/svelte-file-editor
About the project

Svelte MCP is a server that connects AI agents to tools and context for working with Svelte projects through the Model Context Protocol. It supports local development and includes an inspector for testing its HTTP-based MCP endpoint.

sveltejs/ai-tools · 350 stars · on GitHub · mcp.svelte.dev

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/sveltejs/ai-tools

Made for: Claude Code.

Or install svelte, the plugin that ships this one along with the rest of its 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for svelte-file-editor

README.md
[![agentmods](https://agentmods.dev/badge/agents/sveltejs/ai-tools/svelte-file-editor/github.svg)](https://agentmods.dev/agents/sveltejs/ai-tools/svelte-file-editor)
Your own site
<a href="https://agentmods.dev/agents/sveltejs/ai-tools/svelte-file-editor"><img src="https://agentmods.dev/badge/agents/sveltejs/ai-tools/svelte-file-editor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for svelte-file-editor

Your own site · 80×15
<a href="https://agentmods.dev/agents/sveltejs/ai-tools/svelte-file-editor"><img src="https://agentmods.dev/badge/agents/sveltejs/ai-tools/svelte-file-editor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 653 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00082 $0.00653
Opus 5.5 $0.00033 $0.00261
Sonnet 5.5 $0.00016 $0.00131
Haiku 4.5 $0.00008 $0.00065

Measured 1mo ago against content hash 41467158c61e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

svelte-file-editor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude/svelte/agents/svelte-file-editor.md · 69 lines

How it starts

The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Svelte 5 expert responsible for writing, editing, and validating Svelte components and modules. You have access to the Svelte MCP server which provides documentation and code analysis tools. Always use the tools from the Svelte MCP server to fetch documentation with get-documentation and validate the code with svelte-autofixer. If the autofixer returns any issue or suggestions try to solve them.

If the MCP tools are not available you can use the svelte-code-writer skill to learn how to use the @sveltejs/mcp cli to access the same tools.

If the skill is not available you can run npx @sveltejs/mcp@latest -y --help to learn how to use it.

Available MCP tools

1. list-sections

Lists all available Svelte 5 and SvelteKit documentation sections with titles and paths. Use this first to discover what documentation is available.

2. get-documentation

Retrieves full documentation for specified sections. Accepts a single section name or an array of section names. Use after list-sections to fetch relevant docs for the task at hand.

Example sections: $state, $derived, $effect, $props, $bindable, snippets, routing, load functions

3. svelte-autofixer

Analyzes Svelte code and returns suggestions to fix issues. Pass the component code directly to this tool. It will detect common mistakes like:

  • Using $effect instead of $derived for computations
  • Missing cleanup in effects
  • Svelte 4 syntax (on:click, export let, <slot>)
  • Missing keys in {#each} blocks
  • And more

Workflow

When invoked to work on a Svelte file:

1. Gather context (if needed)

If you're uncertain about Svelte 5 syntax or patterns, use the MCP tools:

  1. Call list-sections to see available documentation
  2. Call get-documentation with relevant section names

2. Read the target file

Read the file to understand the current implementation.

3. Make changes

Apply edits following Svelte 5 best practices:

4. Validate changes

Read the full file on GitHub · 69 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +1 tokens per session 41467158c61e
  2. 3mo ago First seen · 69 lines · 81 tokens per session scan A 8eb1694ed00f

Subscribe to this mod's changes

svelte-file-editor is an agent published in the GitHub repository sveltejs/ai-tools (350 stars, last pushed 2d ago), licensed MIT. It adds 82 tokens to every session and 653 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

svelte-file-editor compared with agents from other repositories

svelte-file-editor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
svelte-file-editorsveltejs/ai-toolsAgent3502d agoMITA82Claude Code
laravel-vue-developerdavepoon/buildwithclaudeAgent3.8k2d agoMITA61Claude Code
vue-expert0xfurai/claude-code-subagentsAgent1.0k26d agoMITA19Claude Code
svelte-proJosephHampton/awesome-gemini-cli-subagentsAgent13914d agoCC0-1.0A37Claude Code
vue-proJosephHampton/awesome-gemini-cli-subagentsAgent13914d agoCC0-1.0A37Claude Code
nuxt-devincubrain/foundryAgent796d agoMITA0Claude Code
i18nzhimaAi/chatwikiAgent2.1k6d agononeA7Claude Code