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.