<< All versions

Skill v1.0.0

currentLLM-judged scan90/100
alizainx/intelligence-systems-skills/dart-isolates-aot
──Details
PublishedOctober 21, 2026 at 06:28 PM
Content Hashsha256:04dd4199f5ae8de2...
Git SHA5d098c90c1e6
──Files
Files (1 file, 1.4 KB)
SKILL.md1.4 KBactive
SKILL.md · 26 lines · 1.4 KB

version: "1.0.0" name: dart-isolates-aot id: ISS-020 token_budget: 700 chain_with: [typescript-sound-types, kotlin-coroutines-multiplatform, swift-6-actor-isolation] description: "Dart 3 sound null-safety, exhaustive sealed classes/patterns, Isolate.run zero-copy message passing, and AOT native compilation."


dart-isolates-aot (ISS-020)

1. First-Principles Invariant

  • Bak/Larsen Isolate Share-Nothing Law: Execute CPU-intensive parsing, cryptography, and image processing inside Isolate.run(() => ...) and transfer large payloads via TransferableTypedData (O(1) move).

2. Fast-Pass Low-Token Protocol (Web & Coding Agents)

  • Model domain states with sealed class hierarchies and pattern-matching switch expressions (switch (event) { ... }) for compiler-verified exhaustiveness.

3. Zero-Bug & Zero-Vulnerability Guards

  1. Enable strict-casts: true, strict-inference: true, and strict-raw-types: true in analysis_options.yaml.
  2. Cancel every StreamSubscription and close every StreamController / HttpClient in dispose() or finally.
  3. Never use unawaited Futures without an explicit .onError handler or Completer error forwarding.
  4. Avoid dynamic and late variables unless initialized before first read by construction.
  5. Use typed data views (Uint8List, Float64List) for contiguous numerical and binary protocol buffers.

4. Verification Gate

  • dart analyze --fatal-infos --fatal-warnings && dart test
All versions