flutter-domain-layer

flutter-domain-layer is a skill for Claude Code, Codex from pedromneto97/custom-skills. It costs 32 tokens per session (269 once invoked), scanned A, original, MIT.

A guide for building the domain layer of a Flutter app using Clean Architecture, a way to separate business rules from other code. It covers entities, repository interfaces, use cases, and domain errors.

In plain words
What is it for?
Use it to create immutable models, define repository contracts, add use cases with a standard call method, define errors, and write tests with fake repositories.
Why use it?
It gives the business-logic part of the app a consistent structure and keeps it independent of network or storage code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create immutable models, define repository contracts, add use cases with a standard call method, define errors, and write tests with fake repositories.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pedromneto97/custom-skills/flutter-domain-layer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add pedromneto97/custom-skills --skill flutter-domain-layer
Clone the repo
git clone --depth 1 https://github.com/pedromneto97/custom-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-domain-layer

README.md
[![agentmods](https://agentmods.dev/badge/skills/pedromneto97/custom-skills/flutter-domain-layer/github.svg)](https://agentmods.dev/skills/pedromneto97/custom-skills/flutter-domain-layer)
Your own site
<a href="https://agentmods.dev/skills/pedromneto97/custom-skills/flutter-domain-layer"><img src="https://agentmods.dev/badge/skills/pedromneto97/custom-skills/flutter-domain-layer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-domain-layer

Your own site · 80×15
<a href="https://agentmods.dev/skills/pedromneto97/custom-skills/flutter-domain-layer"><img src="https://agentmods.dev/badge/skills/pedromneto97/custom-skills/flutter-domain-layer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 269 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00269
Opus 5 $0.00016 $0.00134
Sonnet 5 $0.00006 $0.00054
Haiku 4.5 $0.00003 $0.00027

Measured 9d ago against content hash 7d284615c47d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

flutter-domain-layer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/flutter-domain-layer/SKILL.md · 31 lines

What it actually says

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."
Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 31 lines · 32 tokens per session scan A 7d284615c47d

Subscribe to this mod's changes

flutter-domain-layer is a skill published in the GitHub repository pedromneto97/custom-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 32 tokens to every session and 269 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

google-mobile-ads-android-migrate-to-next-gen

Migrates Android applications from the old, legacy Google Mobile Ads (GMA) SDK (com.google.android.gms:play-services-ads) to the new GMA Next-Gen SDK (com.google.android.libraries.ads.mobile.sdk:ads-mobile-sdk). Provides comprehensive mapping tables for imports, classes, and method signatures to help determine…

google/skills · 105 tokens

developer-device-platform-basics

Provides guidance and instructions on managing remote devices on Developer Device Platform (DDP). Use when reserving remote Android devices, establishing connection tunnels, checking session status, or extending/cancelling leases. Don't use for iOS or local device/hardware inquiries.

google/skills · 57 tokens

google-mobile-ads-validate

Validates a project's Google Mobile Ads (GMA) SDK integration for iOS, Android, or Unity projects. Use when conducting a full pre-launch audit of an app that integrates GMA SDK or when validating any individual GMA SDK integration checks, such as when validating ad unit IDs and ad formats, SKAdNetwork IDs, mediation…

google/skills · 84 tokens

wear-compose-m3

Expert guidance for working with Wear OS Compose Material3. Use this skill when creating, updating, or migrating Wear OS projects. This includes the androidx.wear.compose.material3, androidx.wear.compose.foundation, and androidx.wear.compose.navigation3 libraries. Also working with core components such as AppScaffold…

android/skills · 101 tokens

leanback-to-compose-tv-migration

Provides instructions and architectural patterns for migrating Android TV applications from legacy Leanback UI Toolkit, Android Views, or Support Fragments to Jetpack Compose for TV (androidx.tv). Use this skill for Leanback to Compose migrations, including browse screen, settings screen, authentication screen, login…

android/skills · 151 tokens

android-intent-security

Best practices for Android Intent security. Use this skill when auditing component configurations in AndroidManifest.xml activities, services, receivers) or source code handling incoming Intents (getIntent, getParcelableExtra) to prevent Intent Redirection and unauthorized access.

android/skills · 53 tokens