/senior-dev-flutter:flutter-architecture-decisionsfrom senior-dev-flutter
Guides Flutter state management selection (Riverpod vs Bloc vs signals vs setState), package/module boundaries, and concise MADR ADR records (<=55 lines). Use when scaffolding apps, migrating state, or resolving PR disputes on layer dependencies.
Ships in senior-dev-flutter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Flutter Architecture Decisions provides a pragmatic framework for selecting one primary state management solution (Riverpod, Bloc/Cubit, Signals, or setState), drawing high-bar package boundaries, and recording concise MADR records (docs/<feature-name>/adr-NNN-*.md <= 55 lines) and conditional blueprints (the ## Architecture section of docs/<feature-name>/spec.md, <= 50 lines) across Claude Code and Google Antigravity.
GoRouter/FFI/platform-channel topology shifts.## Architecture content.senior-architect-engineering or design-spec-expert.flowchart LR
A["Inspect AGENTS.md & DESIGN.md"] --> B["State Matrix & Package Gate"]
B --> C["Draft Concise MADR (<=55 lines)"]
C --> D{"Multi-Layer / Package?"}
D -->|"Yes"| E["Author spec.md ## Architecture (<=50 lines)"]
D -->|"No"| F["Skip Redundant Blueprint"]
Inspect root AGENTS.md (<= 90 lines wired to context/memory/MEMORY.md) and official Google root DESIGN.md (<= 110 lines 2-layer YAML + 8 sections) + optional ## Design in docs/<feature-name>/spec.md (<= 30 lines screen delta). Enforce clean UI (widgets/themes) -> Domain (use cases/entities) -> Data (repositories/DTOs/clients) separation.
Evaluate state complexity via references/state-management-decision-matrix.md: pick one primary solution per app (setState for local ephemeral state). Extract a separate package only if >= 2 hold: reused across apps, decoupled release cadence, 1-sentence public API, and standalone test suite.
Concise MADR (docs/<feature-name>/adr-NNN-*.md <= 55 lines): Follow references/adr-template.md—Status & Date, ## 1. Context (<= 5 lines), ## 2. Options Considered (2–3 concrete options), ## 3. Decision & Justification, and ## 4. Trade-offs & Reviewer Compliance (+ Pros / - Cons + 1-line lint/PR rule for flutter-reviewer). Sync doc/adr/ if used by the repo.
Blueprint (## Architecture in docs/<feature-name>/spec.md, <= 50 lines): Author ONLY when multiple layers or packages interact; skip when a single ADR suffices. Create spec.md from the 3-heading template (## Product, ## Design, ## Architecture) if missing and edit ONLY ## Architecture.
Change delta (later requests): when ADRs and ## Architecture already exist, read them; write a new adr-NNN-*.md only for this change's new structural decision (tag C-NN) and mark a replaced ADR Superseded. Never rewrite accepted ADRs.
Review checklist (### Review checklist): end ## Architecture with ### Review checklist: (a) a Wiring map, one row per screen or endpoint: screen/endpoint -> state/repository -> real source (endpoint, table, Firebase collection) -> exists | build in C-NN | demo approved; (b) 3-6 verifiable rules for reviewers (e.g. repositories never import UI, every migration has a downgrade). A source that does not exist is never stubbed: mark it build in C-NN or ask for a demo approval.
"Compare Riverpod vs Bloc for our offline-first cart flow and write a <=55-line MADR ADR."flutter-architecture-decisions or run dart analyze lib/ to inspect boundary imports before drafting.shared/core packages without a 1-sentence API or standalone tests.> 55 lines), a bloated ## Architecture (> 50 lines) or separate architecture.md, or redundant docs when changes already follow established architecture.dio, SQLite, or platform channels directly.docs/<feature-name>/adr-NNN-*.md (<= 55 lines) matches references/adr-template.md including the 1-line flutter-reviewer rule.## Architecture in docs/<feature-name>/spec.md (<= 50 lines) filled only for multi-layer/package interactions; zero cyclic dependencies.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
flutter-architecture, state-management, madr, package-boundaries, adr
npx claudepluginhub jggomez/expert-ai-developer-skills --plugin senior-dev-flutter10 skills in this plugin
/context-captureUse when finishing a task at State 5 (Ship & Finish) or when the user explicitly asks to "save context", "guarda contexto", "record decisions", or "hand off" — writes ultra-compact persistent memory to context/memory/ and ensures target-project root AGENTS.md (<= 90 lines) stays wired to DESIGN.md and MEMORY.md across Claude Code and Google Antigravity./context-restoreUse at session start (State 0) or when asked to "load context", "catch up", or "what was done before" — prioritizes LLM Wiki Progressive Disclosure (context/memory/MEMORY.md) across Claude Code and Google Antigravity while supporting user-confirmed restore for scripted sessions (context/sessions/)./flutter-performance-profilingUse when a Flutter app janks, drops frames, is slow to start, or feels heavy — diagnose with DevTools timeline, profile mode, the raster vs UI thread split, shader jank, and startup tracing, then fix the specific cause. Goes beyond the official flutter-fix-layout-issues (which resolves overflow/constraint errors) to runtime performance the analyzer cannot see./flutter-release-engineeringUse when setting up or reviewing how a Flutter app ships — build flavors and environment config (--dart-define-from-file), app signing, the flutter build matrix per platform, version/build-number strategy, store metadata, and whether to use an over-the-air update service (Shorebird). Covers release concerns the official Flutter/Dart skills do not./flutter-review-checklistUse when reviewing a Flutter/Dart pull request or auditing code quality — rebuild scope, const, keys, dispose/leak safety, async BuildContext, DESIGN.md & ADR conformance, and fail-honest <= 50-line verdicts./flutter-senior-orchestrationUse to run a Flutter feature or fix end to end — restoring cross-AI context (context/memory/), bootstrapping root AGENTS.md, 3-tier dynamic routing, capability and risk-gated subagent dispatch via docs/<feature-name>/PLAN.md, sequencing official flutter-*/dart-* skills, and dispatching parallel or sequential subagents (ui-ux-designer, flutter-architect, flutter-implementer, flutter-reviewer, flutter-release-engineer, qa-tester).Other plugins' skills for the same job