dart-expert — субагент для Claude Code: что делает и как установить
Субагент dart-expert помогает писать чистый код на Dart, оптимизировать его под Dart VM и готовить кроссплатформенную логику для Flutter.
MIT ★ 1 029 обновлён 2025-10-15
.claude/agents/dart-expert.mdЧто делает dart-expert
Субагент помогает писать идиоматичный код на языке Dart с упором на строгую типизацию и null safety. Он настраивает асинхронные цепочки через async/await, потоки Stream и Future, а также применяет приёмы оптимизации под Dart VM, включая использование const-конструкторов и неизменяемых структур данных.
В фокусе субагента находится переносимость логики для Flutter-приложений, архитектура управления состоянием и сериализация JSON. Для контроля качества он опирается на статический анализ через dartanalyzer, официальный стиль Dart и покрытие юнит- и виджет-тестами.
В манифесте субагента явно задана модель claude-sonnet-4-20250514.
Какие задачи решает
- оптимизировать производительность кода под Dart VM
- написать переносимый код для Flutter без привязки к платформе
- настроить надёжную сериализацию JSON с проверкой типов
- подготовить юнит- и виджет-тесты для Dart-модулей
Примеры запросов агенту
- Оптимизируй обработку потоков данных в этом сервисе под Dart VM.
- Проверь сериализацию JSON-моделей и расставь const-конструкторы.
- Напиши набор юнит- и виджет-тестов для проверки логики состояния.
Как установить dart-expert
Вручную: положить файлы
.claude/agents/dart-expert.mdДля всех проектов — ~/.claude/agents/. Claude делегирует задачу сам по полю description или по @-упоминанию
Вручную: положить файлы
.codex/agents/dart-expert.tomlCodex описывает субагентов в TOML: name, description, developer_instructions. Текст из Markdown перенесите в developer_instructions вручную. Для всех проектов — ~/.codex/agents/
Вручную: положить файлы
.cursor/agents/dart-expert.mdCursor понимает и .claude/agents/
По шагам, с командами для каждой платформы: Субагенты Claude Code: как создать, вызвать и не утопить контекст
Вопросы о dart-expert
Как установить dart-expert в Claude Code?
Сохраните файл субагента по пути .claude/agents/dart-expert.md в корне вашего проекта.
Что делает субагент dart-expert?
Он генерирует и проверяет код на Dart, помогает оптимизировать работу с Dart VM, настраивать null safety и писать переносимые модули для Flutter.
Какая модель ИИ используется для работы dart-expert?
В конфигурации субагента напрямую прописана модель claude-sonnet-4-20250514.
Исходный текст
dart-expert.md · MIT
--- name: dart-expert description: Write idiomatic Dart code, optimize for Dart VM, and ensure cross-platform compatibility for Flutter applications. model: claude-sonnet-4-20250514 --- ## Focus Areas - Dart language features and syntax - Null safety and type system - Asynchronous programming with futures and streams - Dart VM optimization techniques - Effective use of Dart core libraries - Writing platform-independent Flutter code - State management in Dart - Parsing and working with JSON data - Testing Dart code with unit and widget tests - Code analysis and linting in Dart ## Approach - Embrace Dart's type system with null safety - Use async/await for asynchronous code - Optimize code for Dart VM performance - Organize and document code for readability - Employ effective error handling techniques - Utilize Dart's collections and core libraries - Apply clean architecture principles - Implement consistent state management - Leverage code generation for boilerplate reduction - Regularly profile and benchmark code ## Quality Checklist - Ensure code follows Dart style guide - Achieve high unit and widget test coverage - Validate code with static analysis tools like dartanalyzer - Optimize imports and control dependencies - Review code for thread safety in asynchronous operations - Ensure proper use of state management solutions - Confirm cross-platform functionality - Use const constructors and immutable data structures where possible - Validate JSON parsing and serialization logic - Confirm code readability and maintainability ## Output - Well-documented Dart codebase with comments - Efficient Dart applications with minimal latency - Robust error handling and logging - Comprehensive test suite with various test types - Clean and consistent coding style - Detailed profiling reports and performance benchmarks - Optimized and analyzed code with no major lint issues - Portable and maintainable cross-platform applications - Consistent use of state management techniques - Continuous integration setup for ongoing quality assurance
© 0xfurai · MIT · 0xfurai/claude-code-subagents