svelte-code-writer by sveltejs/ai-tools
npx skills add https://github.com/sveltejs/ai-tools --skill svelte-code-writer您可以使用 @sveltejs/mcp CLI 来获取 Svelte 相关的帮助。通过 npx 使用以下命令:
npx @sveltejs/mcp list-sections
列出所有可用的 Svelte 5 和 SvelteKit 文档章节,包括标题和路径。
npx @sveltejs/mcp get-documentation "<section1>,<section2>,..."
获取指定章节的完整文档。在 list-sections 之后使用,以获取相关文档。
示例:
npx @sveltejs/mcp get-documentation "$state,$derived,$effect"
npx @sveltejs/mcp svelte-autofixer "<code_or_path>" [options]
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
分析 Svelte 代码并针对常见问题提供修复建议。
选项:
--async - 启用异步 Svelte 模式(默认值:false)--svelte-version - 目标版本:4 或 5(默认值:5)示例:
# 分析内联代码(将 $ 转义为 \$)
npx @sveltejs/mcp svelte-autofixer '<script>let count = \$state(0);</script>'
# 分析文件
npx @sveltejs/mcp svelte-autofixer ./src/lib/Component.svelte
# 针对 Svelte 4
npx @sveltejs/mcp svelte-autofixer ./Component.svelte --svelte-version 4
重要提示: 当通过终端传递包含符文($state、$derived 等)的代码时,请将 $ 字符转义为 \$,以防止 shell 变量替换。
list-sections,然后运行 get-documentation 获取相关主题的文档。svelte-autofixer 以检测问题。svelte-autofixer。每周安装量
2.9K
代码仓库
GitHub 星标数
213
首次出现
2026年1月19日
安全审计
安装于
opencode2.5K
codex2.4K
gemini-cli2.4K
github-copilot2.4K
amp2.3K
kimi-cli2.2K
You have access to @sveltejs/mcp CLI for Svelte-specific assistance. Use these commands via npx:
npx @sveltejs/mcp list-sections
Lists all available Svelte 5 and SvelteKit documentation sections with titles and paths.
npx @sveltejs/mcp get-documentation "<section1>,<section2>,..."
Retrieves full documentation for specified sections. Use after list-sections to fetch relevant docs.
Example:
npx @sveltejs/mcp get-documentation "$state,$derived,$effect"
npx @sveltejs/mcp svelte-autofixer "<code_or_path>" [options]
Analyzes Svelte code and suggests fixes for common issues.
Options:
--async - Enable async Svelte mode (default: false)--svelte-version - Target version: 4 or 5 (default: 5)Examples:
# Analyze inline code (escape $ as \$)
npx @sveltejs/mcp svelte-autofixer '<script>let count = \$state(0);</script>'
# Analyze a file
npx @sveltejs/mcp svelte-autofixer ./src/lib/Component.svelte
# Target Svelte 4
npx @sveltejs/mcp svelte-autofixer ./Component.svelte --svelte-version 4
Important: When passing code with runes ($state, $derived, etc.) via the terminal, escape the $ character as \$ to prevent shell variable substitution.
list-sections then get-documentation for relevant topicssvelte-autofixer on the code to detect issuessvelte-autofixer before finalizing any Svelte componentWeekly Installs
2.9K
Repository
GitHub Stars
213
First Seen
Jan 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykWarn
Installed on
opencode2.5K
codex2.4K
gemini-cli2.4K
github-copilot2.4K
amp2.3K
kimi-cli2.2K
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
102,200 周安装