dev-flutter

dev-flutter is a command for Claude Code from christopherlouet/claude-base. It costs 0 tokens per session (389 once invoked), scanned A, original, MIT.

A method for building Flutter mobile interfaces and features using Clean Architecture, which separates data, business rules, and screen code. It covers widgets, screens, state management, API connections, navigation, and tests.

In plain words
What is it for?
Use it to create Flutter widgets, screens, or complete features with BLoC state management, REST, GraphQL or Supabase connections, navigation, and tests.
Why use it?
It provides a consistent structure for building Flutter features and handling loading, errors, empty results, and successful data.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

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 commands/christopherlouet/claude-base/dev-flutter
Clone the repo
git clone --depth 1 https://github.com/christopherlouet/claude-base

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/christopherlouet/claude-base/dev-flutter.svg)](https://agentmods.dev/commands/christopherlouet/claude-base/dev-flutter)
Your own site
<a href="https://agentmods.dev/commands/christopherlouet/claude-base/dev-flutter"><img src="https://agentmods.dev/badge/commands/christopherlouet/claude-base/dev-flutter.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 389 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.00000 $0.00389
Opus 5 $0.00000 $0.00195
Sonnet 5 $0.00000 $0.00078
Haiku 4.5 $0.00000 $0.00039

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

Security

Grade A, and why

dev-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 3d 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/commands/dev/dev-flutter.md · 48 lines

What it actually says

DEV-FLUTTER Agent

Create Flutter widgets, screens and features with Clean Architecture.

Request context

$ARGUMENTS

Goal

Develop Flutter components (simple widget, screen with BLoC, complete feature) following Clean Architecture (data/domain/presentation) with tests.

Workflow

  • Define the component type (simple Widget, Screen, complete Feature)
  • Identify the needs: props, state management (BLoC/Cubit), API integration, animations
  • For a widget: create the widget with a const constructor, typed and documented props
  • For a screen: implement BLoC (sealed events, sealed states, bloc with usecases)
  • For a complete feature: data layer (datasources, models, repository impl), domain (entities, repository interface, usecases), presentation (bloc, pages, widgets)
  • Handle the 4 states (loading, error, empty, data) with switch expressions
  • Integrate the API (Supabase, GraphQL or REST) via datasources
  • Write the tests (widget tests + BLoC tests)
  • Configure navigation (GoRouter) with auth redirect

Expected output

Generated files according to the type (widget + test, or complete feature with all layers), documentation with usage and props.

Agent When to use it
/dev:dev-supabase Supabase backend configuration
/dev:dev-api GraphQL/REST integration
/qa:qa-mobile Mobile performance and accessibility audit
/dev:dev-tdd Complementary tests

IMPORTANT: Always use const constructors to optimize rebuilds.

YOU MUST separate business logic from presentation (Clean Architecture).

NEVER put business logic in widgets - use BLoC/UseCases.

Think hard about widget reusability before coding.

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. 3d ago First seen · 48 lines · 0 tokens per session scan A b5df2c376ab0

Subscribe to this mod's changes

dev-flutter is a command published in the GitHub repository christopherlouet/claude-base (5 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 389 tokens. 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-09-03.