Install any skill in seconds. Free to start, no credit card required.
Get Started Free →flutter/data-model
Add or update a dart_mappable data model in lib/src/models/content/, including adding format validation, regenerating code, and adding tests.
Passed 5 of 11 test cases with the skill, and 2 of 11 without it.
and 10 more in the full report
8 fixed2 passed either way11 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 8 test cases the skill fixed. Same model, same prompt, with and without the skill.
After creating a new content data model and running build_runner to produce the generated files, what specific CLI command should be executed to analyze the content models directory for lint issues?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies command dart analyze lib/src/models/content/. | Missed | Passed |
The instructions your model reads when the skill loads.
Add or update a typed content model in this project. Follow the established conventions below as much as possible.
All data models live in the lib/src/models/content directory and
should roughly follow this general structure:
import 'package:dart_mappable/dart_mappable.dart';
import 'content_validation.dart';
part '<filename>.mapper.dart';
/// Doc comment: What this model represents and where it's loaded from.
///
/// Expected data format:
/// - `field_name`: Description and constraints of the expected value.
@MappableClass()
class ModelName with ModelNameMappable {
ModelName({
required this.fieldOne,
required this.fieldTwo,
this.optionalField,
}) {
// Validate all fields beyond their Dart type.
checkFormat(isNotBlank(fieldOne), 'field_one must be a non-empty string.');
// For optional fields, only validate when present:
test cases passed, vs 2 / 11 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.