01
Clean Architecture
Domain stays pure Dart. Widgets never talk to Firebase.
Agent skill · Anwar Safy
From the first screen down to Firestore rules. The agent does not freelance the architecture.
npx skills add anwarsafy/flutter-firebase-bloc-skill
Cursor, Claude Code, Copilot, Windsurf, Codex, Gemini, and the rest of the Agent Skills tools read the same rules.
Domain stays pure Dart. Widgets never talk to Firebase.
One state, an enum status, copyWith. A failed refresh keeps the data on screen.
Ordinary writes are not awaited. The UI listens for pending writes.
No client writes to role, plan, or isPro. No scraping a collection with list.
RTL from the first screen. No raw exception strings in the interface.
Format, analyze, test, obfuscation, and Crashlytics symbols are part of the gate.