Dart Use Ffigen
Programmatic FFI binding generator that replaces hand-written dart:ffi code with package:ffigen output.
- CCM score
- 64 of 100
- skills.sh installs
- 17.6K
- GitHub stars
- 3.2K
- last updated
- Nov 28, 2026
Own this skill? Claim it
What it does
- Covers the full ffigen workflow: adding the dev dependency, writing
tool/ffigen.dart, running it, and runningdart analyze - Includes configuration guidance for
FfiGenerator,Headers,Functions, andOutput, with a worked SQLite C library example - Enforces no hand-written
DynamicLibrary.lookupor@Nativebindings, preciseFunctions.includeSetfilters, and.g.dartoutput underlib/src/third_party/ - Designed for Dart packages that wrap C, Objective-C, or Swift libraries and need record-use tree shaking for native assets
Install
$ npx -y skills add flutter/agent-plugins --skill dart-use-ffigen -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Generating FFI Bindings using package:ffigen
Contents
- Introduction
- Constraints
- FFIgen Overview
- Step-by-Step Workflow
- Concrete Example: Binding a C Library
- Verification Checklist
Introduction
Automate and standardize the generation of FFI bindings using package:ffigen (FfiGenerator). Writing FFI bindings by hand is error-prone, brittle, and highly discouraged.
Constraints
Details
- Repository
- github.com/flutter/agent-plugins
- Category
- CLI & Terminal
- First seen
- Nov 28, 2026
Questions
What does the dart-use-ffigen skill do?
The dart-use-ffigen skill guides an agent to use package:ffigen to generate FFI bindings automatically instead of writing them by hand. It applies when a task involves new FFI bindings, extending C, Objective-C or Swift integrations, or replacing hand-crafted dart:ffi setups.
How do I install the dart-use-ffigen skill?
Run npx -y skills add flutter/agent-plugins --skill dart-use-ffigen -y in your project. Once installed, the agent can write a tool/ffigen.dart generator script that produces bindings from native headers.
Where does dart-use-ffigen rank in its category?
It is in the CLI & Terminal category on Claude Marketplaces and ranks in the top 10 there, alongside skills such as herdr, gws-shared, opentui, cf-cli and pnpm. It sets itself apart by focusing on generating Dart FFI bindings with package:ffigen rather than writing them manually.
Who is dart-use-ffigen for?
It is for Dart and Flutter developers who need to call native C, Objective-C or Swift code through dart:ffi. It helps them keep binding generation standardized and avoid error-prone hand-written bindings.
More from flutter/agent-plugins
All 13- Dart Setup Ffi Assets17.5K
- Flutter Apply Architecture Best Practices47.7K
- Flutter Build Responsive Layout47.4K
- Flutter Fix Layout Issues44.3K
- Flutter Add Widget Test43.4K
- Flutter Add Integration Test42.1K
- Flutter Setup Declarative Routing41.5K
- Flutter Implement Json Serialization41.4K
- Flutter Add Widget Preview40.5K
- Flutter Setup Localization40.4K
- Flutter Use Http Package39.6K
- Dart Use Primary Constructors17.8K
Similar to Dart Use Ffigen
More CLI & Terminalbash-defensive-patternswshobson/agents14.6K installsMaster defensive Bash programming techniques for production-grade scripts. Use when writing robust shell scripts, CI/CD pipelines, or system utilities requiring
dart-use-ffigendart-lang/skills14.2K installsGuide agents to use `package:ffigen` to automatically generate FFI bindings instead of writing them manually. Use this skill when a task involves writing new FF
shellcheck-configurationwshobson/agents12.3K installsMaster ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring
cargo-workspace-managementgetcargohq/cargo-skills12K installsManage workspace users, API tokens, folders, roles, and submit reports to workspace management using the Cargo CLI. Use when the user wants to invite or manage
terminal-opsaffaan-m/ecc10.7K installsEvidence-first repo execution workflow for ECC. Use when the user wants a command run, a repo checked, a CI failure debugged, or a narrow fix pushed with exact
cmuxmanaflow-ai/cmux10.3K installsEnd-user control of cmux topology and routing (windows, workspaces, panes/surfaces, focus, moves, reorder, identify, trigger flash). Use when automation needs d