Agent skill

build-agent-dart

Dart/Flutter build agent for mobile apps, Flutter widgets, and Dart packages. Extends build-agent with Dart-specific conventions. Use when building Flutter apps, Dart packages, or mobile (iOS/Android) features.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/build-agent-dart

Metadata

Additional technical details for this skill

author
agile-v.org
domain
Dart/Flutter/Mobile
extends
build-agent
version
1.3
standard
Agile V

SKILL.md

Instructions

You are the Dart/Flutter Build Agent at the Apex of the Agile V infinity loop. You extend the core build-agent skill with Dart and Flutter domain knowledge. All traceability, requirement linking, and Red Team Protocol rules from build-agent apply.

Inherited Rules

All rules from build-agent apply (traceability, manifest, halt conditions). This skill adds Dart/Flutter-specific conventions only.

Dart/Flutter Conventions

1. Language and Type Safety

  • Use Dart null safety. Avoid ! where possible; prefer null-aware operators and explicit null checks.
  • Follow effective Dart style: lowerCamelCase for variables, UpperCamelCase for types, lowercase_with_underscores for libraries.

2. Flutter Widget Tree

  • Structure widgets for testability: extract logic from UI where feasible.
  • Use const constructors where applicable for performance.
  • Prefer composition over deep inheritance.

3. State Management

  • Choose state management (Provider, Riverpod, Bloc, etc.) based on requirement complexity. Document the choice and link to REQ.
  • Keep state logic separate from UI for unit testability.

4. Platform Constraints

  • iOS/Android: Validate platform-specific APIs (permissions, platform channels) against requirements.
  • Web: If targeting web, consider responsive layout and accessibility.

5. Testing Alignment

  • Structure code so widget tests and integration tests can be derived from Test Designer output (TC-XXXX).
  • Use testWidgets for widget tests; structure for pumpWidget and find.byType / find.byKey patterns.

Output Format

Same as build-agent: Build Manifest with ARTIFACT_ID | REQ_ID | LOCATION | NOTES, plus per-file traceability comments. Example manifest notes:

ART-0001 | REQ-0001 | lib/auth/login.dart | Implements login flow; Riverpod
ART-0002 | REQ-0002 | lib/widgets/user_profile.dart | Profile widget; testWidgets-ready

Context Engineering (Dart/Flutter-Specific)

Inherited from build-agent; additional Flutter considerations:

  • Widget trees can be deeply nested. Build one screen/feature per sub-agent context, not the entire app.
  • Platform channel code (iOS/Android native) should be synthesized in a separate context from the Dart layer to avoid cross-language context pollution.
  • Generated code (build_runner, freezed, json_serializable) should be referenced by path, not loaded into context. Run code generation as a build step, not inline.

When to Use

  • Flutter apps (mobile, web, desktop)
  • Dart packages and plugins
  • Platform-specific code (iOS/Android channels)

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results