loom-dart

loom-dart is a skill for Claude Code, Codex from cosmix/loom. It costs 16 tokens per session (5,628 once invoked), scanned A, original, MIT.

Dart language guidance for Dart 3 and Flutter applications, covering packages, null safety, asynchronous code, streams, isolates, and widget lifecycles. Flutter is Dart's toolkit for building user interfaces, including mobile apps.

In plain words
What is it for?
Use it to create and maintain Dart packages or Flutter apps, manage dependencies, format and analyse code, and run selected tests.
Why use it?
It helps prevent errors such as unawaited work, using a screen context after waiting, creating repeated futures during rendering, and mishandling messages between isolates.

Skill for Claude CodeCodex

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

Good fit Use it to create and maintain Dart packages or Flutter apps, manage dependencies, format and analyse code, and run selected tests.

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

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 loom-dart

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/cosmix/loom/loom-dart"><img src="https://agentmods.dev/badge/skills/cosmix/loom/loom-dart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,628 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.00016 $0.05628
Opus 5.5 $0.00006 $0.02251
Sonnet 5.5 $0.00003 $0.01126
Haiku 4.5 $0.00002 $0.00563

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

Security

Grade A, and why

loom-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/loom-dart/SKILL.md · 468 lines

How it starts

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

Dart Language Expertise

Overview

Idiomatic, production-grade Dart 3 and Flutter: pub packages, sound null safety, records and patterns, futures and streams, isolates, and the widget lifecycle. Assumes the reader knows the syntax. The value is in what is easy to get wrong: unawaited futures, public fields that never promote, BuildContext used after an await, futures created in build, isolate message copying, and a test filter that matches by substring.

Tooling

dart (or flutter in a Flutter project) is the build tool, package manager, formatter, analyzer and test runner in one.

Task Command
New package dart create -t package spool / flutter create --template=package spool / flutter create app
Add / remove dep dart pub add path / dart pub remove path (flutter pub add in Flutter projects)
Add dev dep dart pub add dev:test
Resolve dart pub get (--enforce-lockfile in CI fails on drift from pubspec.lock)
Outdated / upgrade dart pub outdated / dart pub upgrade --major-versions
Format dart format .
Analyze dart analyze --fatal-infos / flutter analyze
Apply fixes dart fix --apply
Code generation dart run build_runner build --delete-conflicting-outputs
Test, whole suite (the stage gate's) dart test / flutter test; the changed code: dart test test/x_test.dart / flutter test test/x_test.dart
Native binary dart compile exe bin/spool.dart -o spool
  • Use dart pub add so pubspec.yaml and pubspec.lock stay in step. Commit pubspec.lock for applications.
  • Monorepos (3.6+): a root pubspec.yaml lists workspace: [packages/a, packages/b] and each member declares resolution: workspace, giving one shared resolution and one lockfile.
  • Generated files (*.g.dart, *.freezed.dart) come from build_runner; never edit them by hand.
# analysis_options.yaml
include: package:lints/recommended.yaml   # Flutter: package:flutter_lints/flutter.yaml

analyzer:
  language:
    strict-casts: true        # no implicit downcast from dynamic
    strict-inference: true
    strict-raw-types: true
  errors:
    unawaited_futures: error

linter:
  rules:
    - unawaited_futures
    - discarded_futures
    - cancel_subscriptions
    - close_sinks
    - avoid_print

Read the full file on GitHub · 468 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 Changed e2b0d1659ca7
  2. 2mo ago First seen · 468 lines · 16 tokens per session scan A 7af253889868

Subscribe to this mod's changes

loom-dart is a skill published in the GitHub repository cosmix/loom (66 stars, last pushed yesterday), licensed MIT. It adds 16 tokens to every session and 5,628 once invoked, about $0.0001 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-26.

Related

loom-dart compared with skills from other repositories

loom-dart next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
loom-dartcosmix/loomSkill66yesterdayMITA16Claude Code, Codex
capacitor-plugin-spm-supportCap-go/capgo-skillsSkill7919d agoMITA218Claude Code
idiomatic-goTypeFox/agent-skillsSkill51mo agoMITA137Claude Code
go-documentationTypeFox/agent-skillsSkill51mo agoMITA98Claude Code
cocoapods-to-spmCap-go/capgo-skillsSkill7919d agoMITC203Claude Code
SwiftUI Conventionsniels-emmer/myaceSkill1yesterdayMITA21Claude Code, Codex
Jetpack Compose Conventionsniels-emmer/myaceSkill1yesterdayMITA24Claude Code, Codex