dart-expert — Claude Code subagent: what it does, how to install
dart-expert writes idiomatic Dart code optimized for the Dart VM and Flutter cross-platform projects. Helps with null safety, async logic, and testing.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/dart-expert.mdWhat dart-expert does
This subagent guides Dart development with an emphasis on null safety and the core type system. It structures asynchronous workflows with Future and Stream, applying Dart VM performance techniques like immutable structures and const constructors.
The agent also addresses platform-agnostic code for Flutter, state management conventions, and JSON serialization. Quality checks rely on Dart style recommendations, widget and unit tests, and static analysis via dartanalyzer.
The subagent frontmatter explicitly configures claude-sonnet-4-20250514 as the underlying model.
What it helps with
- optimize Dart code execution for the Dart VM
- structure cross-platform business logic for Flutter apps
- implement type-safe JSON serialization and parsing
- write comprehensive unit and widget tests
Example prompts for the agent
- Refactor this asynchronous service to optimize Dart VM stream processing.
- Review this state logic and add const constructors where possible.
- Create unit and widget tests for the updated Flutter repository.
How to install dart-expert
Manually: put the files in place
.claude/agents/dart-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/dart-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/dart-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about dart-expert
How to install dart-expert in Claude Code?
Place the subagent definition file into .claude/agents/dart-expert.md within your project repository.
What does the dart-expert subagent do?
It assists with writing idiomatic Dart code, setting up async workflows, profiling Dart VM execution, and maintaining Flutter cross-platform architecture.
Which AI model does dart-expert use?
The subagent frontmatter specifies claude-sonnet-4-20250514.
Source text
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