hieudoanm/hieudoanm.github.io/dart

Claude Code and agent skill by hieudoanm/hieudoanm.github.io

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Best practices for writing Dart — the language conventions for client and server Dart code. Use when writing, structuring, or reviewing Dart — covers null safety, sound types, immutability, collections, async, classes, records/patterns, and tooling.

Install

npx vskill@latest install hieudoanm/hieudoanm.github.io/dart

SKILL.md

The same SKILL.md was published earlier as hieudoanm/hieudoanm.github.io/dart.

Dart Best Practices

Dart is the language behind Flutter — sound-null-safe, type-inferred, and compiled to native or web. Practical Dart leans on non-nullable by default with explicit null handling, final fields with constructor initialization, and async through Future/Stream that flows a token or completes cleanly. The analyzer (dart analyze) is the review gate, and classes are assembled by composition, not hierarchy sprawl.

When to use

Use when writing, structuring, or reviewing Dart.

Prerequisites

  • Basic familiarity with Dart and the project conventions.
  • For implementation, access to the relevant source code and development environment.

Scope boundary

  • When the project does not use this technology or pattern, or the task falls outside its scope; follow the project’s existing stack and conventions.

Essential checks

  • Non-nullable by default; ? is a promise to handle absence.
  • final first, const where possible, late only with a real invariant.
  • Compose with mixins/interfaces; keep hierarchies flat.
  • Exhaustive sealed types over dynamic dispatch.
  • Async flows a single completion path — with an error story.
  • dart analyze + dart format + dart test are part of "done".
  • [ ] Non-nullable types; ?./??/promotion over ! on untrusted data
  • [ ] Public signatures annotated; dynamic avoided; sealed types for hierarchies

Focus areas

  • 1. Null Safety
  • 2. Sound Types & Inference
  • 3. Immutability & Construction
  • 4. Collections
  • 5. Async & Streams
  • 6. Classes, Inheritance & Composition
  • 7. Errors & Domain Modeling
  • 8. Records, Patterns & Modern Dart
  • 9. Tooling & Style
  • 10. Testing

Detailed references

Related materials

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/hieudoanm/hieudoanm.github.io/dart/badge)](https://verified-skill.com/skills/hieudoanm/hieudoanm.github.io/dart)

Something wrong with this skill or its page? Tell us.