applying-effective-dart

applying-effective-dart is a skill for Claude Code, Codex from Poorgramer-Zack/dart-expert-skills. It costs 92 tokens per session (1,867 once invoked), scanned A, original, MIT.

A Dart coding guide covering modern Dart 3 features and recommended practices for writing safer, easier-to-maintain code.

In plain words
What is it for?
Use it when adopting Dart 3.7 or later, refactoring Dart code, or deciding how to use records, patterns, sealed classes, dot shorthands, and null-aware collections.
Why use it?
It helps developers choose clear approaches for handling multiple values, matching data shapes, checking cases, and using newer Dart syntax.

Skill for Claude CodeCodex

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

Good fit Use it when adopting Dart 3.7 or later, refactoring Dart code, or deciding how to use records, patterns, sealed classes, dot shorthands, and null-aware collections.

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

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 applying-effective-dart

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/poorgramer-zack/dart-expert-skills/effective-dart"><img src="https://agentmods.dev/badge/skills/poorgramer-zack/dart-expert-skills/effective-dart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,867 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.00092 $0.01867
Opus 5 $0.00046 $0.00933
Sonnet 5 $0.00018 $0.00373
Haiku 4.5 $0.00009 $0.00187

Measured 12d ago against content hash 0102b0f9ca31, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

applying-effective-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 12d 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/effective-dart/SKILL.md · 164 lines

How it starts

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

Dart 3 Latest Features and Effective Dart Best Practices Guide

Goal

Covers Dart 3 features (through 3.10) and Effective Dart practices for writing safe, maintainable code.

Instructions

1. Dart 3 Features

1.1 Records

Records aggregate multiple typed values without requiring a dedicated class.

  • Best Practices:
    • Multiple Return Values: Prefer Records over throwaway wrapper classes.
    • Named Fields: Use named fields when returning more than two values or when semantics are ambiguous.
    // ✅ Recommended Usage
    ({double lat, double lon}) getLocation(String city) {
      return (lat: 25.0330, lon: 121.5654);
    }
    
1.2 Patterns and Destructuring

Patterns match and destructure data from Records, Lists, Maps, and custom objects.

  • Best Practices:
    • Destructuring on declaration: Extract values from Records or Lists directly at assignment.
    • Replace complex if-statements: Use if-case to validate shape and extract variables simultaneously.
    // ✅ Recommended Usage
    final json = {'user': ['Zack', 25]};
    if (json case {'user': [String name, int age]}) {
      print('User $name is $age years old.');
    }
    
1.3 switch Expressions and Exhaustive Checking

switch expressions return values and provide compile-time exhaustiveness for sealed classes and enums.

  • Best Practices:
    • Use as expression: Assign diverging values concisely with switch expressions.
    • Omit default: On sealed/enum types, omit default so the compiler catches unhandled cases when new variants are added.
1.4 Class Modifiers

Dart 3 class modifiers control inheritance and implementation boundaries.

  • Best Practices:
    • sealed: For Algebraic Data Types (ADTs). Enables exhaustive switch checking. Ideal for State or Result/Error types.
    • interface: Allows implements only; prevents extends.
    • final: Prevents both extends and implements from external libraries.
1.5 Wildcard Variables — Dart 3.7

Local variables and parameters named _ are now non-binding — they can be declared multiple times without name collision, and their value cannot be read.

Read the full file on GitHub · 164 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. 12d ago First seen · 164 lines · 92 tokens per session scan A 0102b0f9ca31

Subscribe to this mod's changes

applying-effective-dart is a skill published in the GitHub repository Poorgramer-Zack/dart-expert-skills (7 stars, last pushed 1mo ago), licensed MIT. It adds 92 tokens to every session and 1,867 once invoked, about $0.0005 per session on Opus 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.