
Svelte Code Writer
- 7.1k installs
- 301 repo stars
- Updated August 4, 2026
- sveltejs/ai-tools
svelte-code-writer is an agent skill for 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/.sv
About
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 agent for optimal results. --- name: svelte-code-writer description: 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 agent for optimal results. --- # Svelte 5 Code Writer ## CLI Tools You have access to `@sveltejs/mcp` CLI for Svelte-specific assistance. Use these commands via `npx`: ### List Documentation Sections ```bash npx @sveltejs/mcp list-sections ``` Lists all available Svelte 5 and SvelteKit documentation sections with titles and paths. ### Get Documentation ```bash npx @sveltejs/mcp get-documentation "<section1>,<section2>,..." ``` Retrieves full documentation for specified sections.
- `--async` - Enable async Svelte mode (default: false)
- `--svelte-version` - Target version: 4 or 5 (default: 5)
- Analyze inline code (escape $ as \$)
- **Uncertain about syntax?** Run `list-sections` then `get-documentation` for relevant topics
- **Reviewing/debugging?** Run `svelte-autofixer` on the code to detect issues
Svelte Code Writer by the numbers
- 7,075 all-time installs (skills.sh)
- +247 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #224 of 2,153 Testing & QA skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
svelte-code-writer capabilities & compatibility
- Capabilities
- ` async` enable async svelte mode (default: f · ` svelte version` target version: 4 or 5 (def · analyze inline code (escape $ as \$) · **uncertain about syntax?** run `list sections` · **reviewing/debugging?** run `svelte autofixer`
- Use cases
- documentation
What svelte-code-writer says it does
--- name: svelte-code-writer description: 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 agent for optimal results.
npx skills add https://github.com/sveltejs/ai-tools --skill svelte-code-writerAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 7.1k |
|---|---|
| repo stars | ★ 301 |
| Security audit | 2 / 3 scanners passed |
| Last updated | August 4, 2026 |
| Repository | sveltejs/ai-tools ↗ |
When should developers use svelte-code-writer and what problem does it solve?
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
Who is it for?
Developers working with svelte-code-writer patterns described in the skill documentation.
Skip if: Skip when cached docs are empty or the task is outside the skill's documented scope.
When should I use this skill?
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
What you get
Grounded guidance and workflows from SKILL.md for svelte-code-writer.
- Doc-backed Svelte fixes
- Analyzed .svelte source
Files
Svelte 5 Code Writer
CLI Tools
You have access to @sveltejs/mcp CLI for Svelte-specific assistance. Use these commands via npx:
List Documentation Sections
npx @sveltejs/mcp list-sectionsLists all available Svelte 5 and SvelteKit documentation sections with titles and paths.
Get Documentation
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"Svelte Autofixer
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 4Important: When passing code with runes ($state, $derived, etc.) via the terminal, escape the $ character as \$ to prevent shell variable substitution.
Workflow
1. Uncertain about syntax? Run list-sections then get-documentation for relevant topics 2. Reviewing/debugging? Run svelte-autofixer on the code to detect issues 3. Always validate - Run svelte-autofixer before finalizing any Svelte component
Related skills
FAQ
What does svelte-code-writer do?
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
When should I invoke svelte-code-writer?
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
Where is the source documentation?
Ground claims in SKILL.md excerpts and linked reference files from the cached docs.
Is Svelte Code Writer safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.