language-dart

language-dart is a skill for Claude Code from lugassawan/swe-workbench. It costs 58 tokens per session (1,260 once invoked), scanned A, original, MIT.

A Dart coding guide covering null safety, Futures, Streams, widget composition, and Riverpod architecture. Dart is the language commonly used to build Flutter applications.

In plain words
What is it for?
Use it when writing Dart or Flutter code involving widgets, asynchronous work, streams, state management, or dependency setup.
Why use it?
It helps prevent null-assertion crashes and unhandled asynchronous errors while keeping Flutter code organized.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the swe-workbench plugin — 61 skills, 25 commands, 23 agents, 4 hooks shipped together

Good fit Use it when writing Dart or Flutter code involving widgets, asynchronous work, streams, state management, or dependency setup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lugassawan/swe-workbench/language-dart
Install

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.

Any agent
npx skills add lugassawan/swe-workbench --skill language-dart
Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench

Made for: Claude Code.

Or install swe-workbench, the plugin that ships this one along with the rest of its 61 skills, 25 commands, 23 agents, 4 hooks.

Wrote 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.

agentmods badge for language-dart

README.md
[![agentmods](https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-dart/github.svg)](https://agentmods.dev/skills/lugassawan/swe-workbench/language-dart)
Your own site
<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/language-dart"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-dart/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.

agentmods 80×15 button for language-dart

Your own site · 80×15
<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/language-dart"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/language-dart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,260 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00058 $0.01260
Opus 5.5 $0.00023 $0.00504
Sonnet 5.5 $0.00012 $0.00252
Haiku 4.5 $0.00006 $0.00126

Measured 1mo ago against content hash c0f89e6bc22b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

language-dart 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.

skills/language-dart/SKILL.md · 92 lines

How it starts

The opening of the file, as written. The whole thing — 92 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Dart

Null safety

  • Sound null safety is on by default (Dart ≥2.12) — no unsound nulls sneak through.
  • Non-nullable is the default; append ? only when a value can genuinely be absent (String? name).
  • late defers initialization for values assigned before first read (DI fields, initState fields) — a late field read before assignment throws.
  • ! (null-assertion) asserts non-null; prefer narrowing (if (x != null)) or ?./?? over !, since ! throws at runtime.
  • ??= for lazy default assignment; ?? for fallback expressions.
String greet(String? name) => 'Hello, ${name ?? 'stranger'}';

Async — Futures and Streams

  • Future<T> wraps a value that arrives later; async/await reads like sync code.
  • Unhandled Future errors surface as unhandled exceptions — always try/catch around await, or attach .catchError.
  • Stream<T> models a sequence over time; await for consumes it, StreamController produces it.
  • Completer<T> bridges callback-based APIs into a Future.
  • Future.wait([...]) for concurrent futures; don't await sequentially in a loop when the work is independent.
Future<User> fetchUser(String id) async {
  try {
    final res = await api.get('/users/$id');
    return User.fromJson(res.data);
  } on DioException catch (e) {
    throw UserFetchException(id, e);
  }
}

Widget composition

  • StatelessWidget is the default; reach for StatefulWidget only when the widget owns mutable state across rebuilds.
  • build() must be pure and fast — no side effects, no I/O; it can run many times per frame.
  • Compose small widgets instead of deep inheritance — extract a widget class, not a private _buildX() method, when it needs its own const or rebuild boundary.
  • const constructors on leaf widgets let Flutter skip rebuilding subtrees whose inputs didn't change.
  • Pass a Key (ValueKey, ObjectKey) when reordering or diffing a list of like-typed widgets, or state attaches to the wrong element.

Read the full file on GitHub · 92 lines

Files

What ships with it

1 file 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.

Changes

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.

  1. 1mo ago First seen · 92 lines · 58 tokens per session scan A c0f89e6bc22b

Subscribe to this mod's changes

language-dart is a skill published in the GitHub repository lugassawan/swe-workbench (3 stars, last pushed yesterday), licensed MIT. It adds 58 tokens to every session and 1,260 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

wasm

WebAssembly (WASM) integration, WASI, component model, Rust/Go to WASM compilation. Use when implementing WASM modules, browser/edge compute, or polyglot runtime.

TheBeardedBearSAS/claude-craft · 0 tokens

language-idioms-refiner

Facilitate a structured conversation to define language-specific idioms and patterns for a repository. Produces a language-idioms.md document consumed by multiple atoms to adapt pseudocode defaults to the project's language. Use when setting up a new project, switching languages, or when the user says 'setup…

techygarg/lattice · 92 tokens

functions-development

Build serverless Go or Python functions for Falcon Foundry apps. TRIGGER when user asks to "create a function", "write a serverless function", "build backend logic", runs foundry functions create, or needs help with FDK handler patterns, function testing, or collection integration from functions. Also TRIGGER when…

CrowdStrike/foundry-skills · 195 tokens

go-core-idioms

Use when writing or reviewing idiomatic sequential Go — error handling, slog logging, generics, interfaces, style. Not for concurrency (go-concurrency).

fusengine/agents · 37 tokens

go-testing-quality

Use when writing or reviewing Go tests, adding coverage, benchmarking, or profiling a Go program. Not for CI/lint wiring (go-tooling-security) or non-Go tests.

fusengine/agents · 40 tokens

go-standard

A Go programming style guide based on Go's standard library. It covers project structure, naming, error handling, and tests.

ggombee/code-forge · 17 tokens