dart-coding

dart-coding is a skill for Claude Code, Codex from Dynokostya/just-works. It costs 43 tokens per session (2,785 once invoked), scanned A, original, Apache-2.0.

A set of rules for writing and editing Dart code. Dart is a programming language used in projects such as Flutter applications, and these rules cover null values, asynchronous work, types, errors, and common mistakes.

In plain words
What is it for?
Use it while changing .dart files, especially when working with nullable values, asynchronous code, type checks, error handling, and lint or SDK settings.
Why use it?
It helps avoid crashes and type errors caused by unsafe null handling or assumptions about how Dart checks values. Project-specific conventions still take priority.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/dynokostya/just-works/dart-coding
Any agent
npx skills add Dynokostya/just-works --skill dart-coding
Clone the repo
git clone --depth 1 https://github.com/Dynokostya/just-works

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-coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/dynokostya/just-works/dart-coding.svg)](https://agentmods.dev/skills/dynokostya/just-works/dart-coding)
Your own site
<a href="https://agentmods.dev/skills/dynokostya/just-works/dart-coding"><img src="https://agentmods.dev/badge/skills/dynokostya/just-works/dart-coding.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,785 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00043 $0.02785
Opus 5 $0.00022 $0.01392
Sonnet 5 $0.00009 $0.00557
Haiku 4.5 $0.00004 $0.00279

Measured today against content hash 900bc26a4fbc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

dart-coding scanned grade A with 1 finding 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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

results.add(await fetch(id));
.claude/skills/dart-coding/SKILL.md · 309 lines

How it starts

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

Dart Coding

Match the project's existing conventions. When uncertain, read 2-3 existing files to infer the local style. Check pubspec.yaml for SDK constraints, analysis_options.yaml for lint rules, and any .dart_tool/ config for code generation. These defaults apply only when the project has no established convention.

Never rules

These are unconditional. They prevent bugs and crashes regardless of project style.

  • Never rely on a field null-check for promotion unless the field qualifies — flow analysis promotes locals and, since Dart 3.2, private final fields. Public final fields and private mutable fields are never promoted — the value could change between the test and the use. Copy to a local first.
// Wrong: _temp is mutable; not promoted to non-null
if (_temp != null) {
  print(_temp.length); // compile error or stale value
}

// Correct: local is promoted
final t = _temp;
if (t != null) {
  print(t.length);
}
  • Never use ! to "guarantee" non-null without prior verification! is a runtime cast that throws TypeError when the value is null. It silently turns a static type error into a production crash. Use ??, if-checks, or pattern matching first.
  • Never mix late with ?late String? confuses two distinct states (uninitialized vs explicitly null) and defeats the purpose of late. Pick one: late String (deferred init, never null) or String? (may be null at any time).
  • Never index a Map without a null-check or ! for known-present keysmap['k'] returns V?. Calling .length on the result without handling null is a compile error in null-safe code; using ! blindly turns missing keys into runtime crashes.
// Wrong: subscript returns null on missing key
final n = map['k'].length;

// Correct: handle missing key explicitly
final v = map['k'];
final n = v?.length ?? 0;

// Correct: assert presence with rationale
final n = map['k']!.length; // key inserted at line 12, guaranteed present

Read the full file on GitHub · 309 lines

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. today First seen · 309 lines · 43 tokens per session scan A 900bc26a4fbc

Subscribe to this mod's changes

dart-coding is a skill published in the GitHub repository Dynokostya/just-works (14 stars, last pushed yesterday), licensed Apache-2.0. It adds 43 tokens to every session and 2,785 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other skills, from other repositories

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

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

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

platform-detection

Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or conflicting VSTest/MTP configuration.…

dotnet/skills · 146 tokens

unity-version-split

Split a C# file into Unity 6.5+ and pre-Unity 6.5 variants. Use when a file needs different implementations for different Unity versions due to API changes (e.g., EntityId vs int, GetEntityId vs GetInstanceID).

IvanMurzak/Unity-MCP · 59 tokens

rust-pro

Master modern Rust (2024 edition) with async patterns, advanced type system features, and production-ready systems programming. Expert in the current Rust ecosystem including Tokio, axum, and modern crates. Use PROACTIVELY for Rust development, performance optimization, or systems programming.

vudovn/ag-kit · 58 tokens

omh-rust

This is a Hermes-native rust workflow skill.

rlaope/oh-my-hermes · 69 tokens