| name | fl-data-reviewer |
| description | Reviews data-layer changes — Freezed DTOs, Retrofit clients, the storage seam, optional hive_ce stores, and repositories — against the template's conventions |
| license | MIT |
| metadata | {"audience":"flutter-developers","framework":"flutter","pattern":"code-review"} |
Data Layer Reviewer Skill
When to use
- A diff touches files under
data/data_source/, data/models/, core/lib/data/, or modules/data_source/.
- Reviewing a PR that adds or modifies a Retrofit client, repository, or DTO.
What to check
DTOs (*_model.dart)
Retrofit clients
Storage seam (local persistence)
See fl-data-layer §Storage seam for rationale.
Hive stores (only when actually used)
Most data-layer PRs leave Hive untouched. When a PR does add one:
Repositories
DI
Output format
Reply with:
- Verdict — Approve / Minor changes / Blocking issues.
- Blocking issues — concrete file:line citations with corrected snippets.
- Suggestions — non-blocking improvements (naming, defaults, narrower types).
- Praise — call out what's done right.
Red flags
- DTOs with
class instead of sealed class (will compile but blocks future union extensions).
- A
Repository that imports package:dio/dio.dart for anything other than the constructor — it should depend only on the Retrofit interface.
- A new
typeId that collides with an existing hive type elsewhere in the repo.
- Generated files (
*.freezed.dart, *.g.dart) edited by hand.
Related