What problem does it solve? Integrating native C/C++ libraries into Dart or Flutter packages normally requires manual toolchain orchestration, platform-specific build scripts, and fragile binary distribution. This Skill guides agents through Dart's Native Assets hook system so native code is compiled, linked, and bundled automatically during standard commands like dart run and dart test. ## Core Features & Use Cases - Local Compilation with Tree-Shaking: Implements hook/build.dart and hook/link.dart using package:hooks and package:native_toolchain_c to compile C sources with host toolchains (GCC, Clang, MSVC) and strip unused symbols via LinkerOptions.treeshake with FFIgen record-use mappings. - Precompiled Binary Downloads: Configures build hooks that download platform-specific dynamic libraries with MD5/SHA-256 hash verification and an offline local_build fallback flag. - Verification Workflow: Provides checklists for validating output binaries (.so, .dylib, .dll), confirming symbol stripping with nm or dumpbin, and testing offline compliance. - Use Case: A developer wrapping SQLite in a Dart package uses this Skill to generate the build hook that compiles sqlite3.c per target platform and the link hook that tree-shakes unused symbols, shrinking the shipped binary. ## Quick Start Set up Dart Native Assets hooks to compile my C source files in third_party/ into a bundled dynamic library with tree-shaking enabled.