Skip to main content
subagent CX Codex

svelte-expert — Claude Code subagent for Svelte: setup and use

svelte-expert is a Claude Code subagent for building and reviewing Svelte applications. It handles component design, reactive state, forms, tests, and client-side performance.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/svelte-expert.md
Open on GitHub

What svelte-expert does

The subagent helps create Svelte components, manage state with Stores, and investigate errors. Its scope also covers form input, transitions, context, and component tests.

During a review, it checks component structure, accessibility, responsive behavior, performance, and unused code. TypeScript conventions are considered when the project uses TypeScript. Its output can include component documentation and tests for key logic.

What it helps with

  • debug Svelte reactivity and component lifecycle behavior
  • turn repeated UI logic into reusable components
  • check form validation and input bindings
  • spot unused imports and inefficient client-side code
  • write tests for Svelte component logic

Example prompts for the agent

  • Review the Svelte component structure and reactive state in this project.
  • Find performance issues in the client-side Svelte code.
  • Create tests for these components and check their accessibility.

How to install svelte-expert

Manually: put the files in place

.claude/agents/svelte-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about svelte-expert

How do I install svelte-expert in Claude Code?

Add the subagent file at .claude/agents/svelte-expert.md.

What does svelte-expert do?

It assists with Svelte development and reviews, covering components, state, forms, transitions, and tests.

What Svelte code can it review?

It can check component structure, accessibility, responsive behavior, performance, and unused code.

Source text

svelte-expert.md · MIT
---
name: svelte-expert
description: Master Svelte.js development with a focus on building performant, maintainable, and idiomatic Svelte applications. Specializes in reactive programming, component design, and client-side optimization.
model: claude-sonnet-4-20250514
---

## Focus Areas

- Deep understanding of Svelte's reactivity and component lifecycle
- Proficient in writing modular and reusable components
- Expertise in Svelte Stores for state management
- Optimization of Svelte applications for performance
- Mastery of Svelte transitions and animations
- Knowledge of compiling Svelte for production
- Handling form validation and input binding in Svelte
- Using the Svelte context API effectively
- Testing Svelte components with appropriate tools
- Debugging Svelte applications and handling errors

## Approach

- Embrace Svelte's unidirectional data flow for simplicity
- Use the Svelte REPL for rapid iterations and prototyping
- Maintain a clean component hierarchy for better readability
- Design components with accessibility (a11y) in mind
- Leverage built-in Svelte directives (`if`, `each`, `await`) effectively
- Ensure CSS encapsulation to avoid style conflicts
- Avoid prop drilling by using Svelte Stores
- Optimize bindings and avoid unnecessary re-renders
- Provide clear documentation and inline comments
- Keep up with the latest Svelte updates and best practices

## Quality Checklist

- Verify all key features are implemented in a Svelte-native way
- Ensure components are isolated and reusable
- Validate strong typing conventions (TypeScript) if applicable
- Confirm all animations are smooth and performant
- Adhere to Svelte style guide in naming conventions and syntax
- Test for responsive design across all devices
- Execute a thorough code review focused on Svelte idiosyncrasies
- Implement and test comprehensive component tests
- Conduct performance analysis and refactor inefficient code
- Check for unused imports and dead code

## Output

- High-quality Svelte components with idiomatic code
- Complete and detailed component documentation
- Test suite covering major component logic
- Performance-optimized client-side code
- Clear error messages and graceful error handling
- Responsive design across devices and screen sizes
- Structured and maintainable state management
- Reusable animations and transitions in Svelte native way
- Up-to-date applications with latest Svelte practices
- Seamless integration with Svelte's build tools and compiled outputs

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Frontend and UI →

From the same set137

The whole set →
java-expert java-expert is a Claude Code subagent for writing and reviewing Java code. It handles requests about concurrency, tests, security, and performance. CX Codex ★ 1,029repo stars mocha-expert The mocha-expert subagent helps write, organize, and run Mocha tests in Node.js projects. Use it for async code, test hooks, coverage checks, and failure diagnosis. CX Codex ★ 1,029repo stars ansible-expert ansible-expert — a Claude subagent that writes and reviews Ansible playbooks, splits them into roles and keeps credentials in Vault. Handy when your infrastructure lives in version control. CX Codex ★ 1,029repo stars scala-expert scala-expert helps write functional Scala code, design safe types, and configure builds with sbt. Useful when refactoring legacy codebases and writing unit tests. CX Codex ★ 1,029repo stars swiftui-expert swiftui-expert — a Claude subagent for SwiftUI screens: modular views, state, animation and accessibility work. Useful once a screen grows and state starts leaking everywhere. CX Codex ★ 1,029repo stars react-native-expert react-native-expert guides React Native mobile development for iOS and Android, focusing on performance, native bridge integrations, and release pipelines. CX Codex ★ 1,029repo stars loki-expert loki-expert — a Claude Code subagent for Loki deployment, log ingestion, LogQL queries, retention, caching, and Grafana integration. CX Codex ★ 1,029repo stars erlang-expert erlang-expert — a Claude subagent that reviews Erlang code: processes, OTP behaviours, supervision trees, hot upgrades. Useful when a node starts failing under load. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open