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.