Skip to main content
subagent CX Codex

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

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

What 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.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 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

Similar subagents

All subagents for Mobile →

From the same set137

The whole set →
celery-expert celery-expert — a Celery-focused subagent: task queues, retries, worker tuning, RabbitMQ and Redis brokers. Useful when jobs pile up or fire twice. CX Codex ★ 1,029repo stars mysql-expert mysql-expert — a subagent for MySQL query tuning, schema design, and replication setup. It analyzes slow queries using EXPLAIN and prepares backup procedures. CX Codex ★ 1,029repo stars mqtt-expert The mqtt-expert subagent helps design MQTT topics, choose QoS levels, and troubleshoot client-broker messaging. Use it for IoT communication and MQTT reviews. CX Codex ★ 1,029repo stars express-expert express-expert is a Claude Code subagent for building Express.js web apps with routes, middleware, and error handling. It activates for API, security, and configuration work. CX Codex ★ 1,029repo stars go-expert go-expert — a Go-focused subagent for reviewing code, concurrency, tests, and performance. Use it when building or maintaining a Go project. CX Codex ★ 1,029repo stars ava-expert ava-expert — a Claude subagent that takes over Ava test work: CLI flags, async cases, failing runs. Useful when the project's suite already runs on Ava. CX Codex ★ 1,029repo stars c-expert c-expert systems programming assistant for C99 and C11 standards. Helps produce leak-free code with bounds checking and functional Makefiles. CX Codex ★ 1,029repo stars stripe-expert stripe-expert is a Claude Code subagent for building Stripe API integrations, processing payments, and managing subscriptions. It handles tasks involving billing, webhooks, and payment workflows. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open