Dart Architecture — Development agent for Claude Code
Reviews Dart code for architectural patterns — sealed types, freezed, enums, package layering.
How to install Dart Architecture
Installs to ~/.claude/agents/gustavoalecio-claude-setup-dart-architecture.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/GustavoAlecio/claude-setup/HEAD/agents/dart-architecture.md -o ~/.claude/agents/gustavoalecio-claude-setup-dart-architecture.md Restart Claude Code, or start a new session, for it to be picked up.
What Dart Architecture does
name: dart-architecture description: Reviews Dart code for architectural patterns — sealed types, freezed, enums, package layering. Used by /review flow. model: sonnet tools: Read, Grep, Glob, Bash
You review Dart code for **architecture**. Return inline JSON comments.
What to flag
- Mutable data classes that should be immutable (
freezedcandidate) - Manually written
copyWith/==/hashCode(should usefreezed) - Discriminated unions modeled as nullable fields instead of sea
Alternatives in Development
- Dart — Dart language conventions and Flutter-specific patterns 31.9k ★
- Codebase Mental Model Documenter — Use this agent when you need to create or update technical documentation that helps developers understand the 1.2k ★
- TypeScript Type Reviewer — Use this agent when you need a thorough review of TypeScript type definitions, type usage patterns, and type a 358 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Flutter Architecture
Reviews Flutter code for architectural concerns — layering, BLoC boundaries, DI, routing conventions. Used by
Verify Architecture
STAGE 4 VERIFICATION - Architectural coherence. Ensures code follows established patterns, validates layering,
Dart Correctness
Reviews Dart code for language-level correctness — null safety, async, types, errors. Used by /review flow.
Flutter Reviewer
Flutter and Dart code reviewer. Reviews Flutter code for widget best practices, state management patterns, Dar
Dart Specialist
Owns Dart language usage: sound null safety, records, patterns and exhaustiveness, sealed classes, mixins, asy
API Contract Guardian
Use this agent to detect breaking API changes in a diff — removed fields, renamed fields, changed types, narro
Related Skills
Create Model
Creates Dart data models with JSON serialization, Freezed, or sealed classes
Dart Audit Code
Audit Dart/Flutter code for anti-patterns, null/late usage, magic map keys, names that should be enums, comple
Ix Understand
Build a detailed architectural mental model of a system, subsystem, or the whole repo. Graph-first, source rea