dart

dart is a skill for Claude Code, Codex from ndisisnd/cook. It costs 50 tokens per session (2,209 once invoked), scanned A, original, MIT.

A style and correctness guide for Dart 3.x code, the programming language used by Dart and Flutter applications.

In plain words
What is it for?
Use it when writing or reviewing Dart code, especially code involving nullable values, sealed classes, records, collections, async work, or naming conventions.
Why use it?
It reduces common errors and keeps code consistent by covering null safety, immutable data, modern pattern matching, asynchronous code, and imports.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when writing or reviewing Dart code, especially code involving nullable values, sealed classes, records, collections, async work, or naming conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ndisisnd/cook/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 ndisisnd/cook --skill dart
Clone the repo
git clone --depth 1 https://github.com/ndisisnd/cook

Made for: Claude Code, Codex.

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 dart

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ndisisnd/cook/dart"><img src="https://agentmods.dev/badge/skills/ndisisnd/cook/dart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,209 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.00050 $0.02209
Opus 5.5 $0.00020 $0.00884
Sonnet 5.5 $0.00010 $0.00442
Haiku 4.5 $0.00005 $0.00221

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

Security

Grade A, and why

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 2mo 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.

standards/dart/SKILL.md · 224 lines

How it starts

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

Dart Standards

Priority: P0 — Language Correctness

Null Safety

  • Avoid !. Prefer local promotion, null-check patterns, and private final fields.
  • Use ! only for documented invariants or framework/external boundaries where non-null is guaranteed but not expressible to the analyzer.
  • Prefer ?., ??, and null-aware patterns over forced unwrapping.
  • AVOID late if you need to check whether the variable was initialised — use nullable + null-check instead.
  • DON'T explicitly initialise variables to null; let the type system express optionality.

Immutability

  • Use const > final > var. Use @freezed for data classes.
  • Prefer final for all class members. Use var only for locally-obvious short-lived locals.
  • AVOID public late final fields without initializers.

Pattern Matching (Dart 3.x)

Use switch expressions with exhaustive patterns and destructuring. Supported pattern types:

Pattern Example
Constant case 42:
Variable case var x:
Wildcard case _:
Object case Circle(radius: var r):
Record case (String name, int age):
List case [first, ...rest]:
Map case {'key': var v}:
Logical-or `case 1
Guard case var x when x > 0:
String describe(Shape s) => switch (s) {
  Circle(radius: var r) when r > 10 => 'large circle',
  Circle(radius: var r) => 'circle r=$r',
  Rectangle(width: var w, height: var h) => '${w}x$h rect',
};

Records

  • Use records for returning multiple values: (String, int).
  • Use named fields for clarity beyond two elements: ({String name, int age}).

Class Modifiers (Dart 3.x)

Choose the right modifier to express API intent explicitly:

Modifier Extends outside lib Implements outside lib Use for
sealed no no Exhaustive domain state (enables exhaustive switch)
final no no Closed hierarchy — no extension or implementation
base yes no Allow inheritance, prevent external implementation
interface no yes Pure contracts — implementation only

Read the full file on GitHub · 224 lines

Files

What ships with it

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

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. 2mo ago First seen · 224 lines · 50 tokens per session scan A 28a4c77aea69

Subscribe to this mod's changes

dart is a skill published in the GitHub repository ndisisnd/cook (2 stars, last pushed 8d ago), licensed MIT. It adds 50 tokens to every session and 2,209 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-08-31.

Related

Other skills, from other repositories

matlab

Builds, reviews, migrates, and plans MATLAB or GNU Octave numerical workflows. Use for arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 44 tokens

optimize-for-gpu

GPU-accelerates scientific Python on NVIDIA hardware and verifies that the result is correct and faster. Use for CUDA/GPU optimization; CPU-bound NumPy, SciPy, pandas, scikit-learn, NetworkX, scikit-image, vector-search, image-processing, graph, simulation, or file-I/O workloads; CuPy, cuDF, cuML, cuGraph, cuVS…

K-Dense-AI/scientific-agent-skills · 151 tokens

pennylane

Builds and differentiates PennyLane quantum circuits, hybrid PyTorch or JAX models, molecular VQE and QAOA workflows. Use for variational quantum algorithms, quantum machine learning, simulator validation, and moving validated circuits to provider plugins. For hardware-specific compilation use qiskit or cirq; for…

K-Dense-AI/scientific-agent-skills · 74 tokens

laravel-specialist

Build and configure Laravel 10+ applications, including creating Eloquent models and relationships, implementing Sanctum authentication, configuring Horizon queues, designing RESTful APIs with API resources, and building reactive interfaces with Livewire. Use when creating Laravel models, setting up queue workers…

Jeffallan/claude-skills · 86 tokens

shiny-py-optimize

Diagnose and fix performance problems in Shiny for Python apps — slow startup, sluggish interactions, blocking operations, and apps that struggle beyond a handful of concurrent users. Use when a Shiny for Python app is slow, hangs, recomputes too much, times out, or must support more users; when the user asks to…

posit-dev/skills · 105 tokens

ecto-patterns

Use when a task touches Ecto, even a how-to question: schemas, changesets, validations, queries, preloads, Multi, migrations, constraints, money fields. Load it before writing Ecto code. Skip for Ash.

oliver-kriska/claude-elixir-phoenix · 51 tokens