Flutter data layer
List of custom agent skills
npx -y skills add pedromneto97/custom-skills --skill flutter-data-layerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
**WORKFLOW SKILL** — Short guidance for the data layer in Flutter Clean Architecture (dio + json_serializable).
SKILL.md
1.3 KB, as published. Nobody here has run it
Flutter Data Layer (summary)
Purpose: Short, opinionated defaults and pointers for implementing the data layer in a Flutter Clean Architecture app.
Defaults
- HTTP client: dio
- Serialization: json_serializable (codegen)
- Error handling: Only throw mapped/domain errors (example: 401 -> InvalidCredentialsException); rethrow unknown errors so callers can decide.
Details and examples are moved to the references/ docs and templates/ examples in this skill:
- Detailed repository & networking guidance: references/datasource.md
- Model & json_serializable guidance: references/model.md
- Working code templates: templates/
Rename guidance
- If an application only uses a remote source, prefer naming the component and folder
repository(and useRepositorysuffix) instead ofdatasource. Templates userepositoryfor that case.
Quick prompts
- "Scaffold a
Usermodel usingjson_serializableand aUserRepositoryImplusingdiothat maps 401 -> invalid credentials." - "Generate DTO tests:
fromJson,toJson, andtoEntity()round-trip forUserResponse."