Skip to content
flutter avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full ffigen workflow: adding the dev dependency, writing tool/ffigen.dart, running it, and running dart analyze
  • Includes configuration guidance for FfiGenerator, Headers, Functions, and Output, with a worked SQLite C library example
  • Enforces no hand-written DynamicLibrary.lookup or @Native bindings, precise Functions.includeSet filters, and .g.dart output under lib/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 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Generating FFI Bindings using package:ffigen

Contents

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

Similar to Dart Use Ffigen

More CLI & Terminal