Svelte Claude Skills
Note: This repo was the testing ground for building the Claude Code ecosystem below. The skills here have been consolidated into svelte-skills-kit which is actively maintained.
Claude Code Ecosystem
A connected suite of tools for Claude Code power users - persistent memory, better search, framework expertise, and self-improving skills.
The Stack
| Tool | Type | Purpose |
|---|---|---|
| toolkit-skills | Plugin | Forced-eval hook + core skills (pair with any skills plugin) |
| svelte-skills-kit | Plugin | Svelte/SvelteKit skills - 90%+ verified (pair with toolkit-skills) |
| mcp-omnisearch | MCP | Unified search (Tavily, Kagi, Perplexity, GitHub) |
| mcp-sqlite-tools | MCP | Safe SQLite operations with schema inspection |
| mcpick | CLI | Toggle MCP servers without restart |
| cclog | CLI | Sync transcripts → SQLite for analytics |
Quick Start
First, add the marketplaces (run inside Claude Code):
/plugin marketplace add spences10/claude-code-toolkit
/plugin marketplace add spences10/svelte-skills-kitThen install the plugins:
# Core: forced-eval hook + ecosystem skills
/plugin install toolkit-skills@spences10-claude-code-toolkit
# Svelte skills (optional)
/plugin install svelte-skills@spences10-svelte-skills-kitDecision Tree
- Skills not activating? → toolkit-skills (forced-eval hook)
- Need web search? → mcp-omnisearch
- Query databases? → mcp-sqlite-tools
- Too many MCPs? → mcpick (toggle per-project)
- Track usage? → cclog + mcp-sqlite-tools
- Building Svelte? → svelte-skills-kit
Legacy: Original Skills (Archived)
The skills below are preserved for reference. Use svelte-skills-kit for the maintained versions.
Available Skills
1. svelte5-runes (90% verified)
Comprehensive guidance for Svelte 5's runes system.
Covers:
$state()- Reactive state with deep reactivity$derived()- Computed values and lazy evaluation$effect()- Side effects and lifecycle$props()/$bindable()- Component props and two-way binding- Svelte 4 → 5 migration patterns
- Common mistakes and anti-patterns
Recent updates:
- ✅ Svelte 5.25+ breaking change documented ($derived mutability)
- ✅ Deep reactivity patterns verified
- ✅ All examples tested against official docs
2. sveltekit-data-flow (95% verified)
Master data flow patterns in SvelteKit.
Covers:
- Server vs universal load functions (
+page.server.tsvs+page.ts) - Form actions with
fail(),redirect(),error() - Data serialization rules and limitations
- Error and redirect handling patterns
- Progressive enhancement
Key learnings:
- ALWAYS throw
redirect()anderror()(not return) - Form actions ONLY in
+page.server.ts - Server load data flows to universal load as
dataparameter
3. sveltekit-structure (92% verified)
Navigate SvelteKit's file-based routing and structure.
Covers:
- File naming conventions (
+page,+layout,+error,+server) - Nested layouts and layout groups
- Error boundaries and placement
- SSR and hydration patterns
- Dynamic routing and parameters
Key patterns:
{@render children()}in layouts (Svelte 5)(groups)for organization without URL impact- Error boundaries must be ABOVE failing routes
Installation
Option 1: Clone this repository
# Clone into your Claude skills directory
git clone https://github.com/yourusername/svelte-claude-skills.git ~/.claude/skills/svelte
# Or clone into a specific project
git clone https://github.com/yourusername/svelte-claude-skills.git .claude/skills/Option 2: Symlink individual skills
# Link specific skills to your global or project Claude skills directory
ln -s /path/to/svelte-claude-skills/.claude/skills/svelte5-runes ~/.claude/skills/
ln -s /path/to/svelte-claude-skills/.claude/skills/sveltekit-data-flow ~/.claude/skills/
ln -s /path/to/svelte-claude-skills/.claude/skills/sveltekit-structure ~/.claude/skills/Usage
Once installed, Claude Code will automatically detect and activate these skills when working with Svelte/SvelteKit projects. You can also manually invoke them:
# In Claude Code, use the Skill tool
Ask about $bindable props
Help me understand load functions
Show me error handling patterns
The skills use progressive disclosure - starting with quick references and expanding to detailed documentation as needed.
Verification Status
All skills have been verified against official Svelte and SvelteKit documentation:
| Skill | Accuracy | Last Verified | Status |
|---|---|---|---|
| svelte5-runes | 90% | 2025-01-11 | ✅ Production Ready |
| sveltekit-data-flow | 95% | 2025-01-11 | ✅ Production Ready |
| sveltekit-structure | 92% | 2025-01-11 | ✅ Production Ready |
Verification Methodology
Skills are validated using:
- Official Svelte documentation (svelte.dev)
- Official SvelteKit documentation (kit.svelte.dev)
- Community feedback (GitHub issues, Reddit, Stack Overflow)
- Real-world testing with current framework versions
Recent Updates
January 11, 2025
- CRITICAL: Fixed Svelte 5.25+ breaking change regarding
$derivedmutability$derivedvalues can now be reassigned (but will recalculate on dependency change)- Updated all documentation to recommend
constfor truly read-only derived values
- Corrected deep reactivity documentation (objects/arrays are deeply reactive by default)
- Added version tracking to all skills
What Makes These Skills Accurate?
- ✅ Verified against official documentation using actual source content
- ✅ Cross-checked with community discussions and GitHub issues
- ✅ Tested with current framework versions
- ✅ Updated for breaking changes (Svelte 5.25+)
- ✅ Include decision trees and clear anti-patterns
- ✅ Production-ready examples
Contributing
Found an inaccuracy or have a suggestion?
- Check the skill's reference files in
.claude/skills/[skill-name]/references/ - Verify against official Svelte docs
- Open an issue or PR with:
- What the skill currently says
- What the official docs actually say (with links)
- Suggested correction
Skill Development
These skills follow the Claude Code Skills guidelines:
- Progressive disclosure (Level 1: description, Level 2: quick start, Level 3: detailed references)
- Single-file quick starts (<50 lines)
- Detailed references in separate files
- TypeScript examples where applicable
- Clear anti-patterns with fixes
Project Structure
.claude/skills/
├── svelte5-runes/
│ ├── SKILL.md # Quick start
│ └── references/
│ ├── reactivity-patterns.md
│ ├── migration-gotchas.md
│ ├── component-api.md
│ ├── snippets-vs-slots.md
│ └── common-mistakes.md
├── sveltekit-data-flow/
│ ├── SKILL.md
│ └── references/
│ ├── load-functions.md
│ ├── form-actions.md
│ ├── serialization.md
│ └── error-redirect-handling.md
└── sveltekit-structure/
├── SKILL.md
└── references/
├── file-naming.md
├── layout-patterns.md
├── error-handling.md
└── ssr-hydration.md
Resources
License
MIT
Acknowledgments
Built with verification methodology inspired by the research skill
pattern - always verify against actual source content, never trust
summaries without checking sources.