# Pedromneto97 Custom Skills Flutter Domain Layer

> Flutter Domain Layer (summary)

- Skill: `tomevault-io/pedromneto97-custom-skills-flutter-domain-layer` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/pedromneto97-custom-skills-flutter-domain-layer`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/pedromneto97-custom-skills-flutter-domain-layer/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/pedromneto97-custom-skills-flutter-domain-layer

---


# Flutter Domain Layer (summary)

Purpose: Minimal, opinionated guidance and templates for the domain/core layer.

Essentials
- Entities: immutable models and value objects (use `equatable` for equality).
- Repositories: abstract interfaces (ports) implemented by the data layer.
- Use cases: interactors exposing a `call()` method.
- Domain exceptions: typed domain errors; map infra errors in the data layer.

Structure
- Suggested layout: `lib/domain/entities/`, `lib/domain/repositories/`, `lib/domain/usecases/`, `lib/domain/exceptions.dart`
- Keep domain pure (no Dio or data imports).

Details and examples moved to reference docs:
- `references/entities.md`
- `references/repositories.md`
- `references/usecases.md`
- `references/exceptions.md`
- `templates/` — code templates (entity, repository, use case, exceptions)

Quick prompts
- "Scaffold `User` entity (Equatable), `UserRepository` interface, `GetUser` use case, and domain exceptions."
- "Create a `GetUser` unit test using a fake repository."

---
> Source: [pedromneto97/custom-skills](https://github.com/pedromneto97/custom-skills) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-06-25 -->

