dart-build-cli-app
Build Reliable Dart CLI Applications
Dart CLI projects need consistent command routing, error handling, tests, and release steps. This skill provides practical guidance for building and distributing them.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "dart-build-cli-app" from https://skillstore.io/skills/flutter-dart-build-cli-app.md and its manifest at https://skillstore.io/api/skills/flutter-dart-build-cli-app/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“dart-build-cli-app”。 Add a backup subcommand to a Dart CLI.
预期结果:
- Suggested CommandRunner registration and argument definitions.
- Validation and non-zero exit behavior for invalid input.
- A test plan for process output and generated files.
正在使用“dart-build-cli-app”。 Prepare a Dart CLI for Linux distribution.
预期结果:
- A validation sequence for formatting, analysis, and tests.
- Host and Linux compilation command guidance.
- Notes about target operating system and architecture flags.
安全审计
安全All 53 static findings are false positives. The scanner interpreted Markdown inline-code markers and fenced Dart examples as Ruby or shell backtick execution. The skill provides standard Dart CLI development guidance and contains no prompt injection, data-exfiltration intent, or system-reconnaissance behavior.
风险因素
⚙️ 外部命令 (49)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/flutter-dart-build-cli-app/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/flutter-dart-build-cli-app?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/flutter-dart-build-cli-app?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/flutter-dart-build-cli-app/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/flutter-dart-build-cli-app.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 引用
flutter. (2026). dart-build-cli-app security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/flutter-dart-build-cli-app/audits/1BibTeX 引用
@techreport{flutter-flutter-dart-build-cli-app-2026,
author = {flutter},
title = {dart-build-cli-app security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/flutter-dart-build-cli-app/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-build-cli-app security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "flutter"
date-released: "2026-08-30"
url: "https://skillstore.io/skills/flutter-dart-build-cli-app/audits/1"
identifiers:
- type: other
value: "skillstore:flutter-dart-build-cli-app:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Start a command-line tool
Create a Dart CLI with a conventional directory layout and basic argument parsing.
Add a subcommand safely
Plan command routing, validation, help text, error handling, and automated tests.
Prepare a native release
Validate, compile, and choose host or Linux cross-compilation targets for distribution.
试试这些提示
Help me structure a new Dart CLI named inventory_tool. Include bin and lib/src responsibilities and basic argument parsing.
Help me add an import subcommand to my Dart CommandRunner. Define its flags, validation, exit behavior, and tests.
Show me how to test a Dart CLI command with test_process and test_descriptor, including stdout, exit code, and filesystem assertions.
Create a release checklist for my Dart CLI. Include formatting, analysis, tests, host compilation, and Linux cross-compilation considerations.
最佳实践
- Keep executable entry points in bin and implementation details in lib/src.
- Return descriptive errors to stderr with appropriate non-zero exit codes.
- Run formatting, static analysis, and automated tests before compiling releases.
避免
- Do not place all command logic directly in the bin entry point.
- Do not swallow exceptions when the command cannot recover safely.
- Do not release a compiled executable without validating help text and user flows.