flutter-agentic CLAUDE.md

flutter-agentic CLAUDE.md is an instructions file for coding agents from abhinav503/flutter-agentic. It costs 1,171 tokens per session, scanned A, original, MIT.

A set of coding instructions for a Flutter project containing several apps and one shared Dart package. A monorepo is one repository that holds multiple related projects; here, the shared package is used by the apps.

In plain words
What is it for?
Use it when changing the shared core package or any app in the repository. It explains the folder layout, dependency rules, standard files, and where to find project conventions.
Why use it?
It gives coding agents consistent rules for finding files, sharing code, installing dependencies, and keeping app-specific code separate from reusable code.

Instructions file

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 instructions/abhinav503/flutter-agentic/claude-md
Clone the repo
git clone --depth 1 https://github.com/abhinav503/flutter-agentic

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-agentic CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/abhinav503/flutter-agentic/claude-md.svg)](https://agentmods.dev/instructions/abhinav503/flutter-agentic/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/abhinav503/flutter-agentic/claude-md"><img src="https://agentmods.dev/badge/instructions/abhinav503/flutter-agentic/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,171 This file is loaded in full into every session.
When invoked 1,171 The same file — it is already loaded in full.
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 $0.01171 $0.01171
Opus 5 $0.00585 $0.00585
Sonnet 5 $0.00234 $0.00234
Haiku 4.5 $0.00117 $0.00117

Measured 4d ago against content hash 3caf8f84315b, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

flutter-agentic CLAUDE.md 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 4d 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.md · 40 lines

How it starts

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

FlutterAgentic — AI Rules

Claude Code (this file) · Cursor.cursor/rules/ · GitHub Copilot.github/copilot-instructions.md · GeminiGEMINI.md · Codex/Android StudioAGENTS.md · Amazon Q.amazonq/rules/

Monorepo layout

This is a Dart pub-workspace monorepo: one shared core package consumed by multiple Flutter apps.

packages/core/   shared toolbelt → import 'package:core/core/…'   (no app-specific code)
apps/jokes/      demo app          apps/doc_scanner/  request/response app
apps/ai_chat/    streaming app
  • One flutter pub get at the repo root resolves all packages; editing core is live in any running app.
  • Run make targets from the repo root; run an app from its folder (apps/<app>). See docs/ai-rules/conventions.md for commands.
  • Each app: its own main.dart, app.dart, di/injection_container.dart, constants/ (ValueConst/ApiConstants), and feature/home/. core holds only generic constants (CoreConst). Keep core dependency-lean; each app lists only the deps it imports directly.

@docs/ai-rules/conventions.md @docs/reference/architecture.md @docs/explanation/end-goal.md

Read docs/ai-rules/design.md BEFORE writing any screen, scaffolding an app's UI, or restyling — it decides which style pack / theme preset an app uses (e.g. gravia for ecommerce) and sets the screen design rules and the blocks (core/ui/blocks/) to compose from. Read docs/how-to/contributing.md for contributor workflow and git hooks. Run /release to guide a full release — branch comparison, version bump, release notes, and GitHub Release creation. Read docs/how-to/add-feature-template.md when scaffolding a new feature — it has the full folder tree, empty class skeletons, DI registration order, and a forbidden-pattern checklist. Read docs/how-to/add-usecase.md when adding a use case — create the class and register it in injection_container.dart. Read docs/how-to/stream-usecase.md when an operation emits many values over time (SSE, sockets, LLM token streams) — covers the StreamUseCase base, BaseRepository.handleStream, consuming a stream in a BLoC with emit.forEach + cancellation, and single-state design, with examples from the ai_chat app. Read docs/how-to/design-screen-state.md when designing BLoC events and states — covers business-logic naming, state design, retry context, and screen rendering rules with examples from the jokes feature. Read docs/how-to/review-code.md when asked to review, audit, or check generated code — run through the full checklist and report ✅/❌ per section. Read docs/how-to/change-app-id.md when the user asks to change the application ID or bundle identifier — covers Android (build.gradle.kts + MainActivity.kt package path) and iOS (project.pbxproj), with Xcode manual steps and provisioning notes. Read docs/how-to/rename-app.md when the user asks to rename the app — covers display name, package name, and all files that reference the old name. Read docs/how-to/connect-firebase.md (or run /connect-firebase) when connecting an app to Firebase — covers the FlutterFire CLI flow, per-app firebase_core, main.dart init, Android Gradle plugin, and the manual Xcode GoogleService-Info.plist step; it asks which app under apps/ to connect. Read docs/how-to/add-app-logo.md (or run /add-app-logo) when setting or changing an app's launcher icon — one brand image (asks the user for it) → every Android/iOS/web size via flutter_launcher_icons, with adaptive-icon safe-zone rules and a per-platform verification checklist. Read docs/how-to/add-splash-screen.md (or run /add-splash-screen) when adding a native boot splash to an app — flutter_native_splash with theme-derived light/dark colours and a centered logo (4x-density and Android-12 asset rules), plus a verification checklist; pairs with an optional Flutter splash route. Read docs/how-to/add-notification-feature.md (or run /add-notification-feature) when adding Firebase Cloud Messaging push notifications to an app — covers per-app firebase_messaging + flutter_local_notifications, foreground/background/terminated handling, tap-to-open-a-page routing, and image (rich) notifications, split into shared Flutter code + separate iOS / Android tracks; builds on /connect-firebase. Recommend testing FCM on a real Android device (emulator Play services is flaky). Read docs/explanation/ai-agents.md for per-agent install and usage. Read docs/tutorials/solid-principles.md to understand how SOLID principles are applied across all layers — useful context when designing new classes or reviewing layer boundaries. Read docs/tutorials/design-patterns-and-concepts.md for design patterns used in this codebase (Singleton, Repository, DTO, Either, Sealed Classes, Strategy, and more) — explains the why behind structural decisions.

Read the full file on GitHub · 40 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. 4d ago First seen · 40 lines · 1,171 tokens per session scan A 3caf8f84315b

Subscribe to this mod's changes

flutter-agentic CLAUDE.md is an instructions file published in the GitHub repository abhinav503/flutter-agentic (10 stars, last pushed 11d ago), licensed MIT. It adds 1,171 tokens to every session, about $0.0059 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.