Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add sutchan/Agent-Skills-Hub --skill dart-build-cli-appgit clone --depth 1 https://github.com/sutchan/Agent-Skills-HubWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/sutchan/agent-skills-hub/dart-build-cli-app)<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/dart-build-cli-app"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/dart-build-cli-app/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/dart-build-cli-app"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/dart-build-cli-app.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00024 | $0.03362 |
| Opus 5.5 | $0.00010 | $0.01345 |
| Sonnet 5.5 | $0.00005 | $0.00672 |
| Haiku 4.5 | $0.00002 | $0.00336 |
Grade A, and why
dart-build-cli-app scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
This is a copy
92% identical to dart-build-cli-app — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 253 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Building Dart CLI Applications
Contents
- 1. Core Architecture & Process Lifecycle
- 2. Streams, Diagnostics & Formatting
- 3. Project Configuration & Packaging
- 4. Argument Parsing & Command Routing
- 5. Native Async & Modern Stack Traces
- 6. Subprocess Spawning & AOT Resilience
- 7. Signal Handling & Terminal Teardown
- 8. Testing CLI Applications
- 9. Modern Compilation & Distribution
- 10. Workflows & Audit Checklist
- References & Examples
1. Core Architecture & Process Lifecycle
Avoid Destructive Exits (exit(N))
Calling dart:io's exit(int code) invokes Platform::Exit(code) in the C++ runtime. It immediately terminates the OS process without unwinding the Dart stack:
- Debugger Disconnect: When launched with
--pause-isolates-on-exit, the VM Service pauses isolates before shutdown to allow IDE inspection.exit()terminates the OS process before the VM Service can pause or inspect state. - Coverage Loss:
package:coveragequeries execution lines over VM Service RPCs during the paused-on-exit state.exit()destroys the process before RPC extraction, yielding 0% coverage. - Buffer Truncation:
stdoutandstderrare buffered asynchronousIOSinkstreams.exit()drops unflushed bytes. - Resource Leaks:
finallyblocks (closing locks, deleting temp directories) are bypassed.
Rule: Avoid calling exit(code) directly during normal execution; set exitCode = code or return an integer exit code from CommandRunner<int> (from package:args) and allow the asynchronous main() function to return naturally. Do not call exit() on unhandled errors; throw an unhandled Error or exception so the runtime unwinds cleanly and exits with a non-zero status.
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed f28b68add69d
- 1mo ago Changed · +1 lines 7f96b675984f
- 1mo ago Changed · +66 lines · -5 tokens per session 26ae5d4fb4c2
- 2mo ago Changed · -4 lines · +5 tokens per session 39c82e4ca39f
- 2mo ago First seen · 190 lines · 24 tokens per session scan A d261da55bda6
dart-build-cli-app is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (3 stars, last pushed 6d ago), licensed MIT. It adds 24 tokens to every session and 3,362 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 92% identical to dart-build-cli-app, differing in 7 lines, and is treated as a copy.
dart-build-cli-app compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| dart-build-cli-appsutchan/Agent-Skills-Hub | Skill | 3 | 6d ago | MIT | A | 24 | Claude Code, Codex |
| clairicsvngoku/coding-agents-skills | Skill | 12 | 21d ago | MIT | A | 80 | Claude Code, Codex |
| php-codeigniter-patternsshennawardana23/skillme | Skill | 4 | 1mo ago | Apache-2.0 | A | 78 | Claude Code |
| adk-go-agent-buildershennawardana23/skillme | Skill | 4 | 1mo ago | Apache-2.0 | A | 100 | Claude Code |
| go-expertshennawardana23/skillme | Skill | 4 | 1mo ago | Apache-2.0 | A | 107 | Claude Code |
| golang-concurrencyshennawardana23/skillme | Skill | 4 | 1mo ago | Apache-2.0 | A | 151 | Claude Code |
| golang-contextshennawardana23/skillme | Skill | 4 | 1mo ago | Apache-2.0 | A | 123 | Claude Code |