svelte-expert — субагент для Claude Code: Svelte и установка
svelte-expert — субагент для Claude Code, который помогает разрабатывать приложения на Svelte. Он разбирает реактивность, компоненты, состояние и клиентскую производительность.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/svelte-expert.mdЧто делает svelte-expert
Субагент помогает писать и проверять компоненты Svelte, управлять состоянием через Stores и разбирать ошибки. Он также работает с формами, анимациями, контекстом и тестами компонентов.
При ревью он проверяет структуру компонентов, доступность, адаптивность, производительность и неиспользуемый код. TypeScript учитывается, если он используется в проекте. В ответе субагент может подготовить документацию и тесты для логики компонентов.
Какие задачи решает
- разобрать реактивность и жизненный цикл компонентов Svelte
- вынести повторяющуюся логику в переиспользуемые компоненты
- проверить формы и привязку полей ввода
- найти лишние импорты и неэффективный клиентский код
- подготовить тесты для компонентов Svelte
Примеры запросов агенту
- Проверь реактивность и структуру компонентов Svelte в этом проекте.
- Найди проблемы с производительностью клиентского кода Svelte.
- Подготовь тесты для логики этих компонентов и проверь их доступность.
Как установить svelte-expert
Вручную: положить файлы
.claude/agents/svelte-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/svelte-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/svelte-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о svelte-expert
Как установить svelte-expert в Claude Code?
Добавь файл субагента по пути .claude/agents/svelte-expert.md.
Что делает svelte-expert?
Помогает разрабатывать и проверять приложения на Svelte: работает с компонентами, состоянием, формами, анимациями и тестами.
Какие задачи по Svelte он проверяет?
Субагент может проверять доступность, адаптивность, производительность и соответствие кода стилю Svelte.
Исходный текст
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