dart-use-ffigen
Generate Reliable Dart FFI Bindings with FFIgen
Manual Dart FFI bindings are error-prone and difficult to maintain. This skill guides agents to configure FFIgen, generate bindings, and verify outputs.
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "dart-use-ffigen" from https://skillstore.io/skills/dart-lang-dart-use-ffigen.md and its manifest at https://skillstore.io/api/skills/dart-lang-dart-use-ffigen/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「dart-use-ffigen」。 Generate bindings for sqlite3_libversion from third_party/sqlite/sqlite3.h.
預期結果:
A generator plan with one symbol filter, package-relative paths, licensed generated output, recorded-use metadata, and analyzer verification.
正在使用「dart-use-ffigen」。 Replace handwritten dynamic library lookups in a Dart package.
預期結果:
A migration summary identifying native headers, generated targets, required filters, removed manual bindings, and remaining runtime validation.
正在使用「dart-use-ffigen」。 Review an existing FFIgen setup for repository compliance.
預期結果:
A concise review covering dependency setup, file locations, preamble licensing, symbol scope, generation commands, and analyzer results.
安全審計
安全All 72 static findings are false positives caused by Markdown syntax, Dart type signatures, documented CLI commands, official links, and package-relative paths. The skill contains no executable payload, prompt injection, credential access, data exfiltration, or unsafe command construction. Its instructions perform expected FFI generation and local analysis.
風險因素
⚡ 包含腳本 (3)
⚙️ 外部命令 (50)
🌐 網路存取 (3)
📁 檔案系統存取 (2)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/dart-lang-dart-use-ffigen/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/dart-lang-dart-use-ffigen?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/dart-lang-dart-use-ffigen?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dart-lang-dart-use-ffigen/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/dart-lang-dart-use-ffigen.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
dart-lang. (2026). dart-use-ffigen security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dart-lang-dart-use-ffigen/audits/1BibTeX 引用
@techreport{dart-lang-dart-lang-dart-use-ffigen-2026,
author = {dart-lang},
title = {dart-use-ffigen security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/dart-lang-dart-use-ffigen/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "dart-use-ffigen security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "dart-lang"
date-released: "2026-08-22"
url: "https://skillstore.io/skills/dart-lang-dart-use-ffigen/audits/1"
identifiers:
- type: other
value: "skillstore:dart-lang-dart-use-ffigen:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 中你可以打造什麼
Create First Bindings
Generate focused Dart bindings from an existing C header and place outputs in the package structure.
Replace Manual FFI
Convert handwritten lookups and typedefs into a repeatable FFIgen workflow with generated metadata.
Standardize Native Integration
Review generator configuration, licensing, filters, output paths, and analyzer results across a repository.
試試這些提示
Create FFIgen bindings for [header path], include [symbols], and place generated files under [output directory].
Add tool/ffigen.dart for [package], resolve paths from Platform.script, preserve [license], and verify with dart analyze.
Inspect the existing manual Dart FFI bindings, derive precise FFIgen filters, generate replacements, and report compatibility concerns.
Design FFIgen configuration for [native API], including transitive headers, compiler options, leaf functions, recorded usage, licensing, and analyzer verification.
最佳實務
- Use narrow positive filters for headers and native declarations.
- Resolve generator paths from Platform.script so execution is independent of the current directory.
- Regenerate outputs and run dart analyze before completing the task.
避免
- Do not handwrite bindings when suitable native headers are available.
- Do not edit generated files to hide compilation errors.
- Do not generate an entire native API when only selected symbols are required.