tsq-dart

tsq-dart is a skill for Claude Code from sonature-lab/timsquad. It costs 63 tokens per session (746 once invoked), scanned A, original, MIT.

A guide to writing Dart 3+ code with sound null safety, structured asynchronous work, pattern matching, sealed classes, and the Effective Dart style.

In plain words
What is it for?
Use it when writing or changing Dart files, handling nulls and Futures, modelling states or errors, using pattern matching, or applying Dart formatting and lint rules.
Why use it?
It reduces crashes from unexpected null values and makes asynchronous code, states, errors, and code conventions more consistent.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit Use it when writing or changing Dart files, handling nulls and Futures, modelling states or errors, using pattern matching, or applying Dart formatting and lint rules.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonature-lab/timsquad/tsq-dart"><img src="https://agentmods.dev/badge/skills/sonature-lab/timsquad/tsq-dart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 63 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 746 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.00063 $0.00746
Opus 5 $0.00032 $0.00373
Sonnet 5 $0.00013 $0.00149
Haiku 4.5 $0.00006 $0.00075

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

Security

Grade A, and why

tsq-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 10d 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.

templates/base/skills/tsq-dart/SKILL.md · 72 lines

What it actually says

Dart Language Guidelines

Dart 3+ 기반 언어 패턴과 컨벤션. Flutter/서버 공통 적용.

Philosophy

  • Null safety는 타협 없음 — ! 대신 패턴으로 해결
  • 비동기는 구조화 — Future 체이닝보다 async/await
  • Sealed class로 불가능한 상태를 불가능하게
  • Effective Dart가 스타일 기준

Rules

Priority Rule Description
CRITICAL null-safety Sound null safety 패턴, late/! 남용 방지
CRITICAL async-patterns Future, Stream, Isolate, 에러 전파
HIGH type-system Sealed class, 패턴 매칭, Records (Dart 3+)
HIGH code-style Effective Dart, 네이밍, 문서화, linter 규칙

Quick Rules

Null Safety

  • String? 사용 시 반드시 null 체크 후 접근
  • ! (bang operator) 금지 — if/case/??로 해결
  • late 는 lifecycle이 보장될 때만 (initState 등)
  • collection은 whereType<T>()로 null 필터링

비동기

  • async/await 우선, then() 체이닝 금지
  • 독립 작업은 Future.wait([]) 로 병렬 실행
  • Stream 구독은 반드시 cancel (dispose)
  • 무거운 연산은 Isolate.run() 또는 compute()
  • Zone.current로 에러 포착하지 말 것 — try/catch 명시

타입 시스템 (Dart 3+)

  • sealed class 로 상태/에러 모델링 → switch exhaustive 체크
  • Records (int, String) 로 경량 튜플
  • 패턴 매칭 if (value case Pattern()) 적극 활용
  • extension type 으로 zero-cost wrapper (ID 타입 등)

스타일

  • dart_style 포매터 + analysis_options.yaml strict
  • lowerCamelCase (변수/함수), UpperCamelCase (클래스/enum)
  • 공개 API에 /// dartdoc 필수
  • part/part of 금지 — 파일 분리로 해결

Checklist

Priority Item
CRITICAL Bang operator (!) 없음
CRITICAL async/await 사용 (then 체이닝 없음)
CRITICAL Stream 구독 dispose 처리
CRITICAL sealed class로 상태 모델링
HIGH Future.wait으로 병렬 처리
HIGH late 사용 최소화 (lifecycle 보장 시만)
HIGH Effective Dart 네이밍 준수
HIGH 공개 API dartdoc 작성
MEDIUM extension type으로 ID 타입 래핑
MEDIUM analysis_options strict 모드
Files

What ships with it

4 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. 10d ago First seen · 72 lines · 63 tokens per session scan A 3bc2bcda538a

Subscribe to this mod's changes

tsq-dart is a skill published in the GitHub repository sonature-lab/timsquad (11 stars, last pushed 10d ago), licensed MIT. It adds 63 tokens to every session and 746 once invoked, about $0.0003 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-30.

Related

Other skills, from other repositories

dart-docs

Use this skill whenever the user asks about Dart, the client-optimized language for fast apps on any platform. Covers the full Dart 3.12 documentation including language tour (variables, operators, built-in types, records, collections, generics, typedefs, type system, patterns, control flow, error handling, functions…

pledgeandgrow/pledge-skills · 333 tokens

python-docs

Comprehensive Python 3.13 reference covering all language features: variables, built-in types, strings, control flow, functions, lambdas, decorators, classes, inheritance, dataclasses, enums, metaclasses, collections (list, dict, set, tuple, comprehensions), modules and packages, pip, venv, exceptions, context…

pledgeandgrow/pledge-skills · 251 tokens

Practical Data Transformations

Everyday data transformations using functional patterns - arrays, objects, grouping, aggregation, and null-safe access.

whatiskadudoing/fp-ts-skills · 26 tokens

at_client_skills-sdk

Use this skill when a developer is building a Dart or Flutter app that depends on atclient or atclientflutter from pub.dev, stores or shares data via the Atsign Protocol, needs onboarding (CRAM new-atsign, atKeys file, keychain, APKAM) or APKAM enrollment, or asks about AtCollection , CItem , Query , sub-collections…

atsign-foundation/at_client_sdk · 232 tokens

signals-dart

Advanced reactive state primitives, collections, mixins, and utilities of signalscore.

rodydavis/signals.dart · 20 tokens

signals-migration-6-to-7

Detailed guidelines, patterns, and rules for migrating codebases from signals.dart version 6.x to version 7.x.

rodydavis/signals.dart · 33 tokens