domain

domain is a skill for Claude Code from launch52-ai/flutter-template. It costs 40 tokens per session (1,274 once invoked), scanned A, original, MIT.

A code generator for the domain layer, the part of an application that holds business concepts and rules independently of screens, databases, and frameworks. It creates pure Dart entities, enums, and repository interfaces from a feature specification.

In plain words
What is it for?
Use it after a feature's folder structure and specification have been created, when you need business objects, fixed value lists, or contracts for data repositories. It does not generate Flutter UI or database-specific code.
Why use it?
It provides a framework-independent foundation that is easier to test and less affected by changes in the user interface or data storage.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Good fit Use it after a feature's folder structure and specification have been created, when you need business objects, fixed value lists, or contracts for data repositories. It does not generate Flutter UI or database-specific code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/launch52-ai/flutter-template/domain
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 launch52-ai/flutter-template --skill domain
Clone the repo
git clone --depth 1 https://github.com/launch52-ai/flutter-template

Made for: Claude Code.

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 domain

README.md
[![agentmods](https://agentmods.dev/badge/skills/launch52-ai/flutter-template/domain/github.svg)](https://agentmods.dev/skills/launch52-ai/flutter-template/domain)
Your own site
<a href="https://agentmods.dev/skills/launch52-ai/flutter-template/domain"><img src="https://agentmods.dev/badge/skills/launch52-ai/flutter-template/domain/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 domain

Your own site · 80×15
<a href="https://agentmods.dev/skills/launch52-ai/flutter-template/domain"><img src="https://agentmods.dev/badge/skills/launch52-ai/flutter-template/domain.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,274 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.00040 $0.01274
Opus 5.5 $0.00016 $0.00510
Sonnet 5.5 $0.00008 $0.00255
Haiku 4.5 $0.00004 $0.00127

Measured 1mo ago against content hash fe15f385d204, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

domain 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 1mo 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.

.claude/skills/domain/SKILL.md · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Domain - Domain Layer Generator

Generate domain layer components from feature specifications. Creates the foundation that data and presentation layers build upon.

Philosophy

The domain layer is pure Dart with zero external dependencies:

  • No Flutter
  • No Freezed (that's for data layer DTOs)
  • No JSON serialization
  • Only language primitives

This ensures the domain is:

  • Framework-agnostic
  • Easily testable
  • Stable (changes least frequently)

When to Use This Skill

  • After /feature-init has created the folder structure
  • When you need to fill in entities, enums, or repository interfaces
  • When adding new domain concepts to an existing feature
  • User asks to "create domain", "generate entities", or "create repository interface"

What This Skill Creates

lib/features/{feature}/domain/
├── entities/
│   ├── {entity}.dart           # Pure Dart class
│   └── {value_object}.dart     # Value objects (if needed)
├── enums/
│   └── {enum_name}.dart        # Enum definitions
└── repositories/
    └── {feature}_repository.dart  # Abstract interface

Workflow

Step 1: Locate the Spec

Look for:

lib/features/{feature}/.spec.md     # If feature exists
docs/features/{feature}.spec.md     # If feature is new

If no spec exists, ask user to run /plan {feature} first.

Step 2: Extract Domain Requirements

From the spec, identify:

  • Entities - Section 2.1 (fields, types, required/optional)
  • Enums - Section 2.2 (values and descriptions)
  • Repository Interface - Section 2.3 (methods and signatures)
  • Value Objects - Composite types like LatLng, Money
  • Business Rules - Validation, computed properties

Step 3: Generate Code

Use reference files in reference/ directory as templates:

Component Reference File
Simple entity reference/entities/simple_entity.dart
Entity with computed reference/entities/entity_with_computed.dart
Entity with equality reference/entities/entity_with_equality.dart
Entity with copyWith reference/entities/entity_with_copywith.dart
LatLng value object reference/value_objects/lat_lng.dart
Money value object reference/value_objects/money.dart
Simple enum reference/enums/simple_enum.dart
Enum with properties reference/enums/enum_with_properties.dart
Enum with methods reference/enums/enum_with_methods.dart
Basic CRUD repository reference/repositories/basic_crud_repository.dart
Paginated repository reference/repositories/paginated_repository.dart
Offline repository reference/repositories/offline_repository.dart

Read the full file on GitHub · 166 lines

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. 1mo ago First seen · 166 lines · 40 tokens per session scan A fe15f385d204

Subscribe to this mod's changes

domain is a skill published in the GitHub repository launch52-ai/flutter-template (2 stars, last pushed 7mo ago), licensed MIT. It adds 40 tokens to every session and 1,274 once invoked, about $0.0002 per session on Opus 5.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

django-celery-expert

Expert Django Celery guidance for asynchronous task processing. Use when designing background tasks, configuring Celery workers, handling task retries and errors, optimizing Celery performance, implementing periodic tasks with Celery Beat, or setting up production monitoring for Celery. Do not use for general Django…

wilfredinni/django-starter-template · 115 tokens

django-expert

Expert Django backend development guidance. Use when creating Django models, views, serializers, or APIs; debugging ORM queries or migrations; optimizing database performance; implementing authentication; writing tests; or working with Django REST Framework. Follows Django best practices and modern patterns.

wilfredinni/django-starter-template · 55 tokens

nodejs-backend-patterns

Build production-ready Node.js backend services with Express/Fastify, implementing middleware patterns, error handling, authentication, database integration, and API design best practices. Use when creating Node.js servers, REST APIs, GraphQL backends, or microservices architectures.

ever-works/directory-web-template · 58 tokens

nodejs-best-practices

Node.js development principles and decision-making. Framework selection, async patterns, security, and architecture. Teaches thinking, not copying.

ever-works/directory-web-template · 33 tokens

upgrade-stripe

Guide for upgrading Stripe API versions and SDKs.

ever-works/directory-web-template · 13 tokens

writing-blogs

Writes, structures, and formats SEO-optimized blog posts for the Appwrite blog following established conventions for voice, tone, frontmatter, and post structure. Use when the user asks to write, draft, create, or outline a blog post, or when working with files in src/content/blog/posts/.

appwrite/appwrite · 64 tokens