/dart-flutter:dart-use-ffigenfrom Dart and Flutter
Generate Dart FFI bindings from native headers with package:ffigen. Use for new bindings, binding updates, and relevant native interop migrations.
Ships in Dart and Flutter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Inspect the existing bindings, headers, generator configuration, target platforms, and installed ffigen version. Prefer extending the project's generator setup. Use the current ffigen API for that version; do not assume a fixed generator script path, header folder, output folder, or file suffix.
Select the declarations the task needs and preserve ABI details, ownership rules, callbacks, and library loading behavior. Place generated code under the package's existing convention and mark it as generated. Include license notices required by the source and project; do not copy a third-party copyright header without checking its terms.
For Dart 3.13 native library tree shaking, use @RecordUse and a mapping when the target build uses Code Assets and the installed generator supports it. Treat this as optional for ordinary FFI bindings.
Regenerate bindings, inspect the diff, run analysis, and exercise at least one native call on each available target. Fix generator configuration before editing generated code manually. If the generator itself produces invalid code, record a minimal reproduction and report the limitation.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mordechai30/flutter-dart-skills --plugin dart-flutter26 skills in this plugin
/dart-add-unit-testAdd focused unit tests for Dart code with package:test, or flutter_test in Flutter projects. Use for new logic and regressions that can be checked without a running app./dart-build-cli-appBuild Dart command-line tools with sound argument parsing, streams, exit status, packaging, and subprocess behavior. Use for console apps and installed Dart executables./dart-collect-coverageCollect and inspect LCOV test coverage for Dart or Flutter projects. Use when the user requests a coverage report or needs to find untested behavior.Other plugins' skills for the same job