clean-flutter

clean-flutter is a skill for Claude Code from uwuclxdy/agenticat. It costs 26 tokens per session (1,494 once invoked), scanned A, original, MIT.

A set of conventions for building Flutter apps with Dart. Flutter is a toolkit for making mobile, web, and desktop interfaces, while Dart is the language used to write them.

In plain words
What is it for?
Use it for Flutter project layout, Riverpod state management, routes and deep links, JSON models, unit and widget tests, and problems such as layout overflow or unnecessary rebuilds.
Why use it?
It gives consistent approaches to app structure, state, navigation, data models, and testing, helping avoid UI and asynchronous-code bugs.

Skill for Claude Code

Written for Claude Code: when-to-use in frontmatter.

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.

agentmods
npx agentmods add skills/uwuclxdy/agenticat/clean-flutter
Any agent
npx skills add uwuclxdy/agenticat --skill clean-flutter
Clone the repo
git clone --depth 1 https://github.com/uwuclxdy/agenticat

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 clean-flutter

README.md
[![agentmods](https://agentmods.dev/badge/skills/uwuclxdy/agenticat/clean-flutter.svg)](https://agentmods.dev/skills/uwuclxdy/agenticat/clean-flutter)
Your own site
<a href="https://agentmods.dev/skills/uwuclxdy/agenticat/clean-flutter"><img src="https://agentmods.dev/badge/skills/uwuclxdy/agenticat/clean-flutter.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,494 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00026 $0.01494
Opus 5 $0.00013 $0.00747
Sonnet 5 $0.00005 $0.00299
Haiku 4.5 $0.00003 $0.00149

Measured 6d ago against content hash 8cf66e32078f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

clean-flutter 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 6d 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/clean-flutter/SKILL.md · 74 lines

How it starts

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

Clean Flutter

Flutter and Dart conventions for writing, reviewing, and refactoring. The core rules below always apply. Load the one reference file matching the task's domain; don't load them all.

If the clean-code skill is installed, its language-agnostic principles (function size, naming hygiene, comment discipline) still apply. Where generic advice conflicts with Flutter idiom, this skill wins: "replace switch with polymorphism" maps to exhaustive switch over a sealed class, which in Dart is the intended tool, not a smell.

Task touches File
Project layout, MVVM layering, repository boundaries, Result references/architecture.md
Providers, Notifier/AsyncNotifier, ref.watch/read/listen, DI, autoDispose references/state-management.md
Routes, deep links, nested or guarded navigation references/navigation.md
Data models, freezed, JSON serialization, build_runner workflow references/models-serialization.md
Writing tests: unit, widget, golden, integration references/testing.md
Rebuild storms, async-gap crashes, layout overflow, dynamic leaks references/pitfalls.md
Picking a package (storage, network, forms, i18n, background), pubspec hygiene references/packages.md

Toolchain & Setup

  • Pin the Flutter SDK with fvm (.fvmrc, fvm use) and commit the pin so every machine and CI build the same stable SDK.
  • very_good_analysis in analysis_options.yaml as the lint floor. It layers strict-casts, strict-raw-types, and strict-inference on top of flutter_lints, catching the exact classes of mistake generated code produces (implicit dynamic, unchecked casts). Fix warnings; never loosen a rule to silence one. flutter analyze stays clean in CI.
  • Codegen (freezed, json_serializable, riverpod_generator, retrofit) runs through dart run build_runner build --delete-conflicting-outputs. Generated *.g.dart and *.freezed.dart are build output: regenerate after editing the annotated source, never hand-edit them. Detail in references/models-serialization.md.

Read the full file on GitHub · 74 lines

Files

What ships with it

7 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. 6d ago First seen · 74 lines · 26 tokens per session scan A 8cf66e32078f

Subscribe to this mod's changes

clean-flutter is a skill published in the GitHub repository uwuclxdy/agenticat (5 stars, last pushed 4d ago), licensed MIT. It adds 26 tokens to every session and 1,494 once invoked, about $0.0001 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