Dart Setup Ffi Assets
Guides agents in compiling and packaging C/C++ source code into dynamic or static libraries (Code Assets) using Dart's Native Assets hook system (via hook/build.dart and hook/link.dart utilizing package:hooks and package:native_toolchain_c). Use when a user asks to: 'setup native assets', 'compile C/C++ source code', 'bundle dynamic libraries', 'build native C code', 'link native assets', 'implement build.dart or link.dart hooks', or 'integrate C/C++ interop in Dart/Flutter'. Helps agents avoid manual toolchain orchestration and configures secure hash-validated binary downloads or advanced linker tree-shaking with package:record_use mapping.
- Type
- Skill
- Author
- dart-lang
- GitHub stars
- 530
- Installs
- 12.1K
- Last updated
- October 16, 2026
Install
npx skills add https://github.com/dart-lang/skills --skill dart-setup-ffi-assetsAbout this skill
Guides agents through compiling and packaging C/C++ into dynamic or static libraries using Dart's Native Assets hook system, via hook/build.dart and hook/link.dart with package:hooks and package:native_toolchain_c. It handles tasks like setting up native assets, bundling libraries, and integrating C/C++ interop in Dart or Flutter. It also configures hash-validated binary downloads and linker tree-shaking with package:record_use, so agents can avoid manual toolchain orchestration.
Summary written with AI assistance from the project's public description.
Categories
More from dart-lang
Dart Add Unit Test
Write and organize unit tests for functions, methods, and classes using `package:test`. Use when creating new logic or fixing bugs to ensure code r...
by dart-lang
Dart Run Static Analysis
Execute `dart analyze` to identify warnings and errors, and use `dart fix --apply` to automatically resolve mechanical lint issues. Use during deve...
by dart-lang
Dart Use Pattern Matching
Use switch expressions and pattern matching where appropriate
by dart-lang
Dart Fix Runtime Errors
Uses get_runtime_errors and lsp to fetch an active stack trace, locate the failing line, apply a fix, and verify resolution via hot_reload.
by dart-lang
Similar Skills
Find Skills
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", o...
by vercel-labs
Grill Me
A relentless interview to sharpen a plan or design.
by mattpocock
Ai Video Generation
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0,...
by inference-sh
Ai Image Generation
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FL...
by inference-sh