flutter-apply-architecture-best-practices

flutter-apply-architecture-best-practices is a skill for Claude Code, Codex from sutchan/Agent-Skills-Hub. It costs 34 tokens per session (1,450 once invoked), scanned A, a copy of flutter-apply-architecture-best-practices, MIT.

A guide for structuring Flutter apps into separate UI, business-logic, and data layers. Flutter is a toolkit for building apps from one Dart codebase.

In plain words
What is it for?
Use it when designing Flutter projects or adding features that fetch data, manage screen state, and display reusable widgets.
Why use it?
It keeps screen code, application rules, and data access from becoming tangled, making features easier to change and maintain.

Skill for Claude CodeCodex

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

Good fit Use it when designing Flutter projects or adding features that fetch data, manage screen state, and display reusable widgets.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sutchan/agent-skills-hub/flutter-apply-architecture-best-practices
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 sutchan/Agent-Skills-Hub --skill flutter-apply-architecture-best-practices
Clone the repo
git clone --depth 1 https://github.com/sutchan/Agent-Skills-Hub

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-apply-architecture-best-practices

README.md
[![agentmods](https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/flutter-apply-architecture-best-practices/github.svg)](https://agentmods.dev/skills/sutchan/agent-skills-hub/flutter-apply-architecture-best-practices)
Your own site
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/flutter-apply-architecture-best-practices"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/flutter-apply-architecture-best-practices/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-apply-architecture-best-practices

Your own site · 80×15
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/flutter-apply-architecture-best-practices"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/flutter-apply-architecture-best-practices.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,450 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 95% copy Near-identical to another mod 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.00034 $0.01450
Opus 5.5 $0.00014 $0.00580
Sonnet 5.5 $0.00007 $0.00290
Haiku 4.5 $0.00003 $0.00145

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

Security

Grade A, and why

flutter-apply-architecture-best-practices 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.

Origin

This is a copy

95% identical to flutter-apply-architecture-best-practices — 11 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/flutter-apply-architecture-best-practices/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.

Architecting Flutter Applications

Contents

Architectural Layers

Enforce strict Separation of Concerns by dividing the application into distinct layers. Never mix UI rendering with business logic or data fetching.

UI Layer (Presentation)

Implement the MVVM (Model-View-ViewModel) pattern to manage UI state and logic.

  • Views: Write reusable, lean widgets. Restrict logic in Views to UI-specific operations (e.g., animations, layout constraints, simple routing). Pass all required data from the ViewModel.
  • ViewModels: Manage UI state and handle user interactions. Extend ChangeNotifier (or use Listenable) to expose state. Expose immutable state snapshots to the View. Inject Repositories into ViewModels via the constructor.

Data Layer

Implement the Repository pattern to isolate data access logic and create a single source of truth.

  • Services: Create stateless classes to wrap external APIs (HTTP clients, local databases, platform plugins). Return raw API models or Result wrappers.
  • Repositories: Consume one or more Services. Transform raw API models into clean Domain Models. Handle caching, offline synchronization, and retry logic. Expose Domain Models to ViewModels.

Logic Layer (Domain - Optional)

  • Use Cases: Implement this layer only if the application contains complex business logic that clutters the ViewModel, or if logic must be reused across multiple ViewModels. Extract this logic into dedicated Use Case (interactor) classes that sit between ViewModels and Repositories.

Project Structure

Organize the codebase using a hybrid approach: group UI components by feature, and group Data/Domain components by type.

lib/
├── data/
│   ├── models/         # API models
│   ├── repositories/   # Repository implementations
│   └── services/       # API clients, local storage wrappers
├── domain/
│   ├── models/         # Clean domain models
│   └── use_cases/      # Optional business logic classes
└── ui/
    ├── core/           # Shared widgets, themes, typography
    └── features/
        └── [feature_name]/
            ├── view_models/
            └── views/

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 Changed ab9c5168eee3
  2. 1mo ago Changed · +1 lines 7b1bd5a37f76
  3. 1mo ago Changed · +2 lines · -6 tokens per session f0c6ef9404e9
  4. 2mo ago Changed · -2 lines · +6 tokens per session 00497869976a
  5. 2mo ago First seen · 165 lines · 34 tokens per session scan A 5399e261dc42

Subscribe to this mod's changes

flutter-apply-architecture-best-practices is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (3 stars, last pushed 6d ago), licensed MIT. It adds 34 tokens to every session and 1,450 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to flutter-apply-architecture-best-practices, differing in 11 lines, and is treated as a copy.

Related

flutter-apply-architecture-best-practices compared with skills from other repositories

flutter-apply-architecture-best-practices next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-apply-architecture-best-practicessutchan/Agent-Skills-HubSkill36d agoMITA34Claude Code, Codex
compose-multiplatform-patternsshennawardana23/skillmeSkill41mo agoApache-2.0A95Claude Code
cocos-creator-adaptationWade-DevCode/awesome-coding-skills-cnSkill75mo agoMITA30Claude Code, Codex
wear-compose-m3android/skillsSkill11k7d agoApache-2.0A108Claude Code
android-intent-securityandroid/skillsSkill11k7d agoApache-2.0A79Claude Code
mlkit-agent-apiandroid/skillsSkill11k7d agoApache-2.0A147Claude Code
mobile-performanceWrongStack/WrongStackSkill444yesterdayMITA92Claude Code, Codex