id: "dart-use-ffigen"
kind: "skill"
name: "dart-use-ffigen"
title: "Dart Use Ffigen"
description: "Guide agents to use `package:ffigen` to automatically generate FFI bindings instead of writing them manually. Use this skill when a task involves writing new FFI bindings, extending C/Objective-C/Swift integrations, or replacing hand-crafted `dart:ffi` setups."
category: "productivity"
source:
  repository: "dart-lang/skills"
  path: "skills/dart-use-ffigen/SKILL.md"
  commit: "f84b16872b5d186f4e877511b49b93c204a1c4ef"
  url: "https://github.com/dart-lang/skills/tree/f84b16872b5d186f4e877511b49b93c204a1c4ef/skills/dart-use-ffigen"
license:
  spdx: "BSD-3-Clause"
  from: "repository"
  redistributable: true
stars: 560
updated_at: "2026-11-16T22:26:36Z"
score: 0.8685
rank: 86
files_count: 1
bytes: 11636
has_scripts: false
trust_level: "unreviewed"
reviewed_by: "eval-v1"
source_tier: "official"
eval:
  version: "eval-v1"
  date: "2026-11-21T10:50:14Z"
  model: "claude-sonnet-5-5"
  score: 0.8685
  signals:
    tier: 1.0
    rubric: 1.0
    judge: 0.8467
    smoke: "not_run"
    popularity: 0.506
  rubric:
    score: 1.0
    trigger: 1.0
    scope: 1.0
    safety: 1.0
    injection: 1.0
    references: 1.0
    license: 1.0
    risky: []
    broken_references: []
  judge:
    trigger: 4
    scope: 5
    instructions: 4
    safety: 5
    injection: 5
    references: 5
    overall: 8
    verdict: "feature"
    rationale: "Focused on one job: generating FFI bindings with package:ffigen's FfiGenerator. It gives concrete conventions (tool/ffigen.dart, third_party paths, .g.dart outputs, preamble, recordUse) and a full worked example with a before/after comparison. Commands are safe (dart pub add, dart run, dart analyze). There are no external file references and no injection. Weaknesses: it's somewhat dart-lang/native-specific, and the rules on recordUse and preamble are rigid. The Objective-C/Swift coverage promised in the description is thin."
  smoke:
    status: "not_run"
requires:
  tools: []
  runtimes: []
  network: false
  mcp: []
compat:
  - client: "claude-code"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "codex-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "cursor"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "gemini-cli"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "vscode-copilot"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "opencode"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "claude-desktop"
    status: "full"
    reasons: ["ok"]
    source: "derived"
  - client: "chat-mcp"
    status: "full"
    reasons: ["ok"]
    source: "derived"
files:
  - path: "SKILL.md"
    bytes: 11636
    sha256: "129ae526e854ea73e829dfa0f4f90fa5cb6e9b80a86aefd1bdd5d761afa4b676"
    url: "https://raw.githubusercontent.com/dart-lang/skills/f84b16872b5d186f4e877511b49b93c204a1c4ef/skills/dart-use-ffigen/SKILL.md"
alternates:
  - name: "dart-use-ffigen"
    repository: "flutter/agent-plugins"
    path: "skills/dart-use-ffigen/SKILL.md"
    commit: "ff6d472ee66dbed566c4500edee460c94fde0a02"
    url: "https://github.com/flutter/agent-plugins/tree/ff6d472ee66dbed566c4500edee460c94fde0a02/skills/dart-use-ffigen"
    license: "BSD-3-Clause"
    stars: 3199
    score: 0.7393
    similarity: 1.0
    reason: "identical content"
icon: "https://versatile.sh/avatars/dart-lang.png"
