agentsclimarketplace

Flutter data layer

Skill pedromneto97/custom-skills/skills/flutter-data-layer

**WORKFLOW SKILL** — Short guidance for the data layer in Flutter Clean Architecture (dio + json_serializable).From its SKILL.md

Install
npx -y skills add pedromneto97/custom-skills --skill flutter-data-layer

Assembled 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.

SKILL.md

1.3 KB, 256 tokens by cl100k_base, 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:

Rename guidance

  • If an application only uses a remote source, prefer naming the component and folder repository (and use Repository suffix) instead of datasource. Templates use repository for that case.

Quick prompts

  • "Scaffold a User model using json_serializable and a UserRepositoryImpl using dio that maps 401 -> invalid credentials."
  • "Generate DTO tests: fromJson, toJson, and toEntity() round-trip for UserResponse."

What ships with it: 5 files

3.3 KB alongside SKILL.md

references/

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.