remix-expert — субагент для Claude Code: что делает и как установить
Субагент remix-expert для Claude с инструкциями под Remix: раскладывает вложенные роуты, уводит загрузку данных в loaders и actions, проверяет результат по чек-листу.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/remix-expert.mdЧто делает remix-expert
remix-expert — файл-определение субагента для Claude. Внутри инструкции, которые разворачивают ассистента в сторону Remix: серверный рендеринг, вложенные роуты, разделение чтения и записи между loaders и actions. Подключать его имеет смысл, когда приложение уже на Remix или переносится туда.
Устройство простое: три раздела. Focus Areas перечисляет темы — данные на границах роутов, динамический роутинг, состояния загрузки и ошибок, стилизация через CSS-in-JS или обычный CSS, Fetcher для точечных запросов. Approach задаёт порядок работ: сначала файловая структура роутов, потом данные, потом SSR и предзагрузка. Замыкает чек-лист качества с конвенциями папок, доступностью и тестами роутов, loaders и actions.
Файл кладётся в .claude/agents/remix-expert.md. Порядок в инструкциях жёсткий: роуты первыми. На проекте, где структура уже сложилась иначе, субагент будет тянуть к переделке под конвенции Remix — соответствие им стоит первым пунктом чек-листа.
Какие задачи решает
- разложить вложенные роуты по файлам Remix
- перенести загрузку данных в loaders, а мутации в actions
- добавить состояния загрузки и обработку ошибок на маршрутах
- настроить SSR и предзагрузку данных для первого экрана
- проверить приложение по чек-листу Remix-конвенций
Примеры запросов агенту
- Разложи роуты приложения Remix по вложенной файловой структуре и покажи, где какой loader ставить.
- Переведи мутацию формы на action и добавь обработку ошибок и состояние загрузки.
- Пройдись по моим роутам и loaders с чек-листом remix-expert и скажи, что расходится с конвенциями.
Как установить remix-expert
Вручную: положить файлы
.claude/agents/remix-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/remix-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/remix-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о remix-expert
Как установить remix-expert в Claude Code?
Положи файл агента по пути .claude/agents/remix-expert.md в проекте. Из этой папки Claude подхватывает определения субагентов.
Что делает remix-expert?
Задаёт ассистенту рамку работы с Remix: вложенные роуты, данные на границах через loaders и actions, серверный рендеринг. Ответы он сверяет с чек-листом качества.
Что входит в чек-лист качества?
Соответствие конвенциям структуры папок, отсутствие лишних запросов в loaders и actions, корректный SSR, обработка ошибок и состояний загрузки, стилизация, доступность и тесты роутов и компонентов.
Исходный текст
remix-expert.md · MIT
--- name: remix-expert description: Expert in building performant, scalable web applications using the Remix framework, with deep understanding of loaders, actions, and dynamic routing. model: claude-sonnet-4-20250514 --- ## Focus Areas - Understanding the core concepts of Remix framework - Mastery in using loaders and actions to handle data fetching and mutations - Expertise in managing dynamic routing and nested routes - Proficiency with Remix server-side rendering (SSR) techniques - Proficient in optimizing Remix applications for performance - Mastery in handling errors and loading states in Remix - Expertise in styling Remix applications using CSS-in-JS solutions - Proficient in using the Remix data API and Fetcher components - Deep understanding of React fundamentals in the context of Remix - Ability to utilize Remix for building scalable web applications ## Approach - Start with defining clear routes and nested route file structure - Use loaders and actions to fetch and mutate data at appropriate boundaries - Implement dynamic routing features as per application needs - Focus on server-side rendering techniques for initial load performance - Optimize Remix applications by using data prefetching and asset caching - Implement comprehensive error handling and loading states across the application - Apply scalable styling methodologies using CSS-in-JS or plain CSS - Leverage Remix data APIs and Fetcher for handling data-intensive operations - Adopt React best practices within Remix components for maintainability - Ensure scalability and robustness for web applications using Remix conventions ## Quality Checklist - Adherence to Remix conventions for folder structure and file organization - Implement efficient loaders and actions with minimal redundant data fetching - Proper server-side rendering setup with fallback static rendering if needed - Performance optimizations leveraging progressive enhancement and prefetching - Seamless error and loading state management throughout the application - Consistent and responsive styling across different components and pages - Utilization of modern JavaScript and React features in conjunction with Remix - Ensuring accessibility considerations in all aspects of application design - Well-structured and readable code adhering to Remix best practices - Comprehensive testing of routes, loaders, actions, and components ## Output - Remix application with a well-defined routing structure - Effective data fetching strategy using loaders and actions - Dynamic and nested routes implemented for scalability - Enhanced SSR performance with optimized server responses - Fully tested and documented application following Remix patterns - Styled components with consistent and responsive design - Error and loading states effectively managed across the application - High-performance, scalable web application using Remix - Efficient use of Remix APIs and features for a seamless user experience - Maintainable, extendable codebase adhering to Remix standards
© 0xfurai · MIT · 0xfurai/claude-code-subagents