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.
npx skills add Poorgramer-Zack/dart-expert-skills --skill freezedgit clone --depth 1 https://github.com/Poorgramer-Zack/dart-expert-skillsWrote 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.
[](https://agentmods.dev/skills/poorgramer-zack/dart-expert-skills/freezed)<a href="https://agentmods.dev/skills/poorgramer-zack/dart-expert-skills/freezed"><img src="https://agentmods.dev/badge/skills/poorgramer-zack/dart-expert-skills/freezed/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.
<a href="https://agentmods.dev/skills/poorgramer-zack/dart-expert-skills/freezed"><img src="https://agentmods.dev/badge/skills/poorgramer-zack/dart-expert-skills/freezed.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00113 | $0.01442 |
| Opus 5 | $0.00056 | $0.00721 |
| Sonnet 5 | $0.00023 | $0.00288 |
| Haiku 4.5 | $0.00011 | $0.00144 |
Grade A, and why
generating-freezed-models 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.
How it starts
The opening of the file, as written. The whole thing — 171 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Freezed Guide (v3.2.x)
Goal
Generate immutable data classes, union types, and deep copyWith using Freezed v3.2.x. Complements Dart 3 sealed classes by adding copyWith, ==/hashCode, and JSON serialization via json_serializable.
Instructions
1. Dependencies and Environment Setup
Because Freezed relies heavily on code generation, ensure your pubspec.yaml is fully configured:
dependencies:
freezed_annotation: ^3.2.5
json_annotation: ^4.11.0 # If mutual conversion with JSON is required
dev_dependencies:
build_runner: ^2.14.1
freezed: ^3.2.5
json_serializable: ^6.13.1 # If mutual conversion with JSON is required
2. Defining an Immutable Data Class
import 'package:freezed_annotation/freezed_annotation.dart';
// You MUST declare part files; the name must exactly match the current file
part 'user_model.freezed.dart';
part 'user_model.g.dart'; // If utilizing JSON serialization
// Freezed 3.x: prefer `sealed` modifier for exhaustive pattern matching
@freezed
sealed class UserModel with _$UserModel {
const factory UserModel({
required String id,
required String name,
@Default(18) int age,
@JsonKey(name: 'is_active') @Default(true) bool isActive,
}) = _UserModel;
// Required for JSON serialization
factory UserModel.fromJson(Map<String, Object?> json) =>
_$UserModelFromJson(json);
}
After every model change, run
dart run build_runner build -d.
3. Custom Getters and Methods
To add computed properties or methods, add a private parameterless constructor.
@freezed
abstract class Product with _$Product {
// private constructor required to add custom methods
const Product._();
const factory Product({
required double price,
required double discountRate,
}) = _Product;
// Custom Getter
double get discountedPrice => price * (1 - discountRate);
// Custom Method
bool isFree() => discountedPrice == 0;
}
4. Generic Types Support
@freezed
@JsonSerializable(genericArgumentFactories: true) // required for generic JSON parsing
sealed class PaginatedResponse<T> with _$PaginatedResponse<T> {
const factory PaginatedResponse({
required int currentPage,
required int totalPages,
required List<T> data,
}) = _PaginatedResponse<T>;
// fromJson for generics requires a conversion function parameter
factory PaginatedResponse.fromJson(
Map<String, dynamic> json,
T Function(Object? json) fromJsonT,
) => _$PaginatedResponseFromJson(json, fromJsonT);
}
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.
- 12d ago First seen · 171 lines · 113 tokens per session scan A d2c8aa4afa3d
generating-freezed-models is a skill published in the GitHub repository Poorgramer-Zack/dart-expert-skills (7 stars, last pushed 1mo ago), licensed MIT. It adds 113 tokens to every session and 1,442 once invoked, about $0.0006 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.
Other skills, from other repositories
firebase-ai
Use when setting up firebaseai, generating text/chat with Gemini, streaming AI output, building multimodal prompts, or handling AI errors.
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…
signals-hooks
Comprehensive reactive state hooks for integration with flutterhooks.
signals-flutter
Highly optimized Flutter UI bindings and GPU rendering for reactive signals.
flutter-pre-caching
Use when preloading fonts, asset/network images, Lottie/Rive animations, local JSON/config, warming initial API data, or optimizing Flutter Web startup.
bloc
Use when creating a Cubit or Bloc, modeling state with sealed classes or status enums, wiring BlocBuilder/BlocListener/BlocProvider, writing bloc tests, or choosing between Cubit and Bloc.