loom-dart

loom-dart is a skill for Claude Code, Codex from cosmix/loom. It costs 16 tokens per session (5,561 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,561 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.05561
Opus 5.5 $0.00006 $0.02224
Sonnet 5.5 $0.00003 $0.01112
Haiku 4.5 $0.00002 $0.00556

Measured 21d ago against content hash 7af253889868, 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 21d 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 dart test / flutter test
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. 21d 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 (62 stars, last pushed today), licensed MIT. It adds 16 tokens to every session and 5,561 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

Other skills, from other repositories

capacitor-plugin-spm-support

Adds Swift Package Manager support to an existing Capacitor plugin repository so apps using CapApp-SPM can consume it after CocoaPods Trunk goes read-only (expected December 2, 2026). Covers root Package.swift naming rules the Capacitor CLI depends on, CAPBridgedPlugin conversion (identifier, jsName, pluginMethods)…

Cap-go/capgo-skills · 218 tokens

idiomatic-go

Apply Go community idioms for API and package design, error and concurrency patterns, naming (initialisms, stutter, receivers), generics vs interfaces, and Go code review — including PR or diff review, questions about "the Go way", pointer vs value receivers, channels vs mutexes, and building Go language tooling…

TypeFox/agent-skills · 137 tokens

go-documentation

Write idiomatic Go doc comments that render correctly on pkg.go.dev — package comments, doc.go, exported-symbol comments, testable Example functions, deprecation notices — and publish or debug modules on pkg.go.dev (pkgsite, the module proxy). Use when writing or reviewing Go documentation, or when a developer used to…

TypeFox/agent-skills · 98 tokens

cocoapods-to-spm

Migrates an existing Capacitor iOS app from CocoaPods to Swift Package Manager (SPM) before CocoaPods Trunk goes read-only (expected December 2, 2026). Use when the app still has ios/App/Podfile, Pods/, Podfile.lock or App.xcworkspace and the user wants CapApp-SPM, runs or recovers from npx cap…

Cap-go/capgo-skills · 203 tokens

Jetpack Compose Conventions

State hoisting, remember/derivedStateOf patterns, modifier ordering, and preview annotations.

niels-emmer/myace · 24 tokens

Play Store Readiness

App signing, keystore management, API level targeting, privacy policy, and review guideline checks.

niels-emmer/myace · 24 tokens