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.Ваш Агент по-прежнему должен показать план и запросить все подтверждения, требуемые политикой безопасности.
Ресурсы для AI-агентов
Используйте эти ссылки, когда AI-агенту, crawler или script нужен чистый контекст вместо полной страницы.
Протестировать
Использование «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_reportЗначок Markdown
[](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/1Цитата BibTeX
@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.
Часто задаваемые вопросы
What does this skill generate?
Which native languages are supported?
Does it write manual dart:ffi bindings?
Where should the generator live?
How are generated files verified?
What happens when generated code has errors?
Сведения для разработчиков
Автор
dart-langЛицензия
MIT
Ревизия Skillstore
r1
Примечание о версии
Автор не указал версию.
Репозиторий
https://github.com/dart-lang/skills/tree/fd779a7c469e12c126f843c1e3a3a74d0d359eb7/skills/dart-use-ffigenСсылка
5efede508cb827613f7c81e8722beb5acb53555f
Актуальность поддержки
22.08.2026
Использование
1 загрузок · 0 просмотров
Структура файлов
📄 SKILL.md