scaffold-flutter-app

scaffold-flutter-app is a command for Claude Code from kumaran-is/claude-code-onboarding. It costs 19 tokens per session (1,089 once invoked), scanned A, original, MIT.

A command that creates a Flutter mobile app with Riverpod state management, clean architecture, GoRouter navigation, Firebase services, localization, and generated model support.

In plain words
What is it for?
Use it to start an iOS and Android app with Firebase initialization, crash reporting, guarded state, localized text, reusable architecture, and a sample feature.
Why use it?
It removes the large amount of initial mobile project configuration and sets conventions for organizing features, assets, errors, navigation, and application startup.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to start an iOS and Android app with Firebase initialization, crash reporting, guarded state, localized text, reusable architecture, and a sample feature.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/kumaran-is/claude-code-onboarding/scaffold-flutter-app
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.

Clone the repo
git clone --depth 1 https://github.com/kumaran-is/claude-code-onboarding

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 scaffold-flutter-app

README.md
[![agentmods](https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-flutter-app.svg)](https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-flutter-app)
Your own site
<a href="https://agentmods.dev/commands/kumaran-is/claude-code-onboarding/scaffold-flutter-app"><img src="https://agentmods.dev/badge/commands/kumaran-is/claude-code-onboarding/scaffold-flutter-app.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,089 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.00019 $0.01089
Opus 5 $0.00010 $0.00544
Sonnet 5 $0.00004 $0.00218
Haiku 4.5 $0.00002 $0.00109

Measured 5d ago against content hash 79456dcd39d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

scaffold-flutter-app 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 5d 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/scaffold-flutter-app.md · 60 lines

How it starts

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

Scaffold Flutter App

Create a new Flutter mobile application with the following:

App name / theme: $ARGUMENTS (default to "my_app" if not provided. If a theme is given like "fitness tracker" or "weather app", tailor the sample feature accordingly)

Steps

  1. Run flutter create --org com.company --platforms ios,android <name>
  2. Update pubspec.yaml with Riverpod 3.x, Freezed 3.x, GoRouter 15, Firebase, riverpod_lint (see flutter-templates.md for exact versions)
  3. Create build.yaml with riverpod_generator, json_serializable (snake_case), and freezed options; create l10n.yaml with arb-dir, template-arb-file, and output-class settings
  4. Create analysis_options.yaml with custom_lint plugin and riverpod_lint rules
  5. Create clean architecture folder structure:
    • assets/fonts/, assets/images/, assets/icons/, assets/lottie/, assets/raw/ — static assets (raw/ for design references, optional at runtime)
    • lib/main.dart — one line only: void main() => bootstrap(() => const App())
    • lib/bootstrap.dart — async init, FlutterError.onError → Crashlytics, Firebase.initializeApp, FirebaseAppCheck.activate, ProviderScope
    • lib/app.dartConsumerWidget + MaterialApp.router + theme wiring
    • lib/core/di/providers.dart — global @Riverpod(keepAlive: true) singletons (Dio, repositories)
    • lib/core/error/app_exception.dart — sealed exception hierarchy
    • lib/core/error/error_handler.dart — Crashlytics integration point
    • lib/core/network/dio_provider.dart + lib/core/network/interceptors/ — Dio setup
    • lib/core/storage/secure_storage_provider.dartflutter_secure_storage provider (sensitive data: tokens, keys)
    • lib/core/storage/hive_provider.darthive_flutter provider (non-sensitive: preferences, cache)
    • lib/core/router/app_router.dart + route_names.dart + guards/ — GoRouter config
    • lib/core/constants/ — app-wide constants (NO secrets — env vars only)
    • lib/core/utils/ — logger, formatters, validators
    • lib/core/extensions/ — Dart extension methods
    • lib/core/l10n/ — Localisation .arb files and generated l10n delegates
    • lib/design_system/tokens/ — one file per token type (see flutter-templates.md)
    • lib/design_system/typography/font_families.dart, app_text_styles.dart, app_text_theme.dart
    • lib/design_system/theme/app_theme.dart, app_color_scheme.dart, app_theme_extension.dart, theme_provider.dart
    • lib/design_system/components/ — buttons/, inputs/, cards/, dialogs/, loaders/
    • lib/features/<feature>/data/datasources/ — remote + local datasources
    • lib/features/<feature>/data/models/ — DTOs with .g.dart codegen
    • lib/features/<feature>/data/repositories/ — repository impl
    • lib/features/<feature>/domain/entities/ — pure Dart, Freezed
    • lib/features/<feature>/domain/repositories/ — abstract interface
    • lib/features/<feature>/domain/usecases/ — single-responsibility use cases
    • lib/features/<feature>/domain/value_objects/ — validated primitives (Email, Password)
    • lib/features/<feature>/presentation/providers/@riverpod notifier + Freezed state
    • lib/features/<feature>/presentation/screens/ — screen widgets
    • lib/features/<feature>/presentation/widgets/ — feature-scoped sub-widgets
    • lib/features/common/ — shared widgets + providers reused across features
    • test/unit/, test/widget/, test/integration/, test/helpers/ — test structure
  6. Create sample Freezed entity (domain) + DTO (data) with fromJson
  7. Create sample @riverpod notifier with Freezed sealed state
  8. Create sample ConsumerWidget screen + AsyncValue.when()
  9. Configure GoRouter as @Riverpod(keepAlive: true) with auth redirect guard
  10. Add a sample widget test using ProviderScope overrides
  11. Run dart run build_runner build --delete-conflicting-outputs
  12. Print summary of created files, next steps, and how to run

Read the full file on GitHub · 60 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. 5d ago First seen · 60 lines · 19 tokens per session scan A 79456dcd39d2

Subscribe to this mod's changes

scaffold-flutter-app is a command published in the GitHub repository kumaran-is/claude-code-onboarding (35 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 1,089 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-09-03.