/senior-dev-flutter:flutter-senior-orchestrationfrom senior-dev-flutter
Orchestrates end-to-end Flutter feature delivery using a 6-state DAG with subagent dispatch, memory restoration, and risk-gated planning. Invoke for multi-screen flows, refactors, or release coordination.
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.
None: SKILL.md is the whole skill.
The Flutter Senior Orchestration skill governs end-to-end delivery of Flutter and Dart applications across a 6-state Graph Engineering DAG: silent Cross-AI LLM Wiki memory restoration (context/memory/MEMORY.md), target-project AGENTS.md (<= 90 lines) integration, 3-Tier Dynamic Routing, Capability & Risk-Gated Dispatch in PLAN.md (<= 50 lines per feature), parallel TDD implementation, tiered review (Adversarial Review Committee), Fail-Honest E2E transparency, and milestone memory persistence across Claude Code and Google Antigravity.
ui-ux-designer, flutter-architect), isolated parallel flutter-implementer tracks, and tiered verification (flutter-reviewer, flutter-release-engineer, qa-tester).python-expert, database-migration-expert) or single-turn Q&A without code edits..dart files (lib/, test/). Direct writes are restricted to docs/<feature-name>/PLAN.md, root AGENTS.md, root DESIGN.md, doc/adr/*.md, docs/ (docs/<feature-name>/), .agents/, and context/memory/.main, master, develop, or dev. At State 0, inspect git symbolic-ref --short HEAD and auto-branch (git checkout -b feat/<descriptive-slug> or fix/<slug>). On active feature branches, detect orthogonal requests (Scope Drift) and prompt via AskUserQuestion recommending feat/<new-slug>.AGENTS.md + DESIGN.md + MEMORY.md Integration: In State 0 / State 5, verify root AGENTS.md; if missing or if stack/commands/conventions changed, generate/update a concise root AGENTS.md (<= 90 lines) linking executable commands (flutter analyze, flutter test), root DESIGN.md, and context/memory/MEMORY.md.docs/<feature-name>/PLAN.md <= 50 lines | Root AGENTS.md <= 90 lines | Root DESIGN.md <= 110 linesdocs/<feature-name>/spec.md: ## Product <= 50 (product-analyst) | ## Design <= 30 (ui-ux-designer, screen delta only) | ## Architecture <= 50 (flutter-architect)adr-NNN-*.md <= 55 lines (only for a structural decision) | docs/<feature-name>/test-matrix.md <= 80 lines | docs/<feature-name>/evidence/*.pngflutter-reviewer, critic, challenger, e2e-blackbox-tester return their verdict in the final message (<= 50 lines: verdict, findings with file:line, required fixes).<= 15 lines (status, files changed, test command + exit code, next step). Never ask workers for long narratives.e2e-blackbox-tester returns BLOCKED or SKIPPED (e.g., mobile-only target without web, server couldn't start, Chromium unavailable), explicitly tell the user in the final summary: "Browser E2E was NOT executed (BLOCKED/SKIPPED): " — NEVER mask it as passed.| Tier | Scope & Triggers | Discovery & Alignment Gate | Build & Verification Protocol |
|---|---|---|---|
| Tier 1: Fast-Track | Single-widget localized UI/logic fix or doc/chore (< 2 files); state/routing/plugins unchanged. | SKIP State 1 discovery and AskUserQuestion modal (auto-proceed). | 1 flutter-implementer (shared working tree). Scoped flutter test (exit code 0) + quick flutter-reviewer check. |
| Tier 2: Standard | 2–4 files, new screen/view, multi-widget flow, local state, or route addition. | Capability-Gated State 1 (skip State 1 files if all SKIP). Mandatory AskUserQuestion modal. | Parallel flutter-implementer (Mode A/B). flutter-reviewer + qa-tester (test-matrix.md <= 80) + gated flutter-release-engineer. |
| Tier 3: Mission-Critical | Greenfield app, core state migration (Riverpod/Bloc), auth/payments, FFI/native plugins, store release. | Capability-Gated State 1 in docs/<feature-name>/. Mandatory AskUserQuestion sign-off. | Isolated parallel flutter-implementer. Adversarial Review Committee: flutter-reviewer + flutter-release-engineer + qa-tester (+ risk/web-gated specialists). |
Discovery & Architecture Triage (Invoke / SKIP) RubricEvery docs/<feature-name>/PLAN.md (<= 50 lines) MUST include a compact 5-row table justifying each specialist in 1 line:
| Subagent | INVOKE ONLY IF | SKIP WHEN |
|---|---|---|
product-analyst | Business scope, user stories, or acceptance criteria are missing/ambiguous (spec.md ## Product <= 50). | User prompt already specifies clear stories/criteria, or bugfixes, refactors, docs, chores. |
ui-ux-designer | Flutter screens/widgets/components are created/modified AND root DESIGN.md is missing or new mobile visual patterns/48x48dp touch tokens are needed (DESIGN.md <= 110, spec.md ## Design <= 30). | Non-visual data/repository/state tasks, or minor UI changes already covered by root DESIGN.md. |
flutter-architect | Genuine structural decision needed: state management pattern/contract shift, GoRouter/deep-link topology change, new native plugin/FFI/platform channel (adr <= 55, spec.md ## Architecture <= 50). | Changes follow established repository architecture (even across >= 2 files). |
flutter-release-engineer & Risk Gates | flutter-release-engineer ONLY IF pubspec.yaml, flavors, --dart-define-from-file, signing, native configs, or store bundles change (and Tier 3); Tier 3 critic ONLY IF diff >= 150 LOC / structural refactor; challenger ONLY IF auth, payments, concurrency/isolates, untrusted input, or destructive mutations (<= 50 lines). | Pure Dart widget/domain changes without pubspec/signing impact or high-risk security/concurrency surfaces. |
e2e-blackbox-tester | ALWAYS in every Tier when the project has a web/ target and UI or user flows changed: it builds and starts the app itself (verdict returned in final message <= 50 lines). | ALWAYS SKIP on mobile-only targets without web (iOS/Android-only) or pure data/logic layers. |
Zero-Bloat Fast-Forward: When ALL Discovery rows evaluate to
SKIP, skip State 1 discovery file bloat completely and proceed directly to theAskUserQuestionalignment modal and State 2 build.
Measured on real runs: later requests reused the first request's triage, so product, design and architecture were never considered again, and every change re-ran the whole suite.
C-NN, even on the same branch, feature and PLAN.md.PLAN.md; read context/memory/ only if not read this session), then add one row to the ## Changes table in PLAN.md: | C-02 | <request in one line> | Tier | product | design | arch | e2e | critic/challenger |, each cell INVOKE/SKIP plus a 3-5 word reason. Judge only what this change adds; never copy the previous row.US/AC tagged C-NN; a new screen or visual pattern -> the UI/UX designer adds the screen delta; a new schema, contract or dependency -> the architect writes a new ADR. Run the alignment gate again only when the change is Tier 2/3 and a discovery row is INVOKE.qa-tester with the change ID and the changed files. It extends test-matrix.md, runs only the affected tests, and runs the full suite at most once per change, skipping it when nothing changed since the last green full run.PLAN.md <= 50 lines: collapse finished change rows to one line each.qa-tester Completion Proof (requirements, tests, build, static checks, images, verdict) for that change. Dispatch qa-tester for it after the implementers and, when UI changed, after e2e-blackbox-tester.NOT DONE loops back: send the missing items to one implementer (within the 3 fix iterations), or report the change as unfinished with the exact gap.<= 8 lines, screenshot paths included) at the top of your final summary.These apply in every Tier when a task creates or changes UI on a project with a web/ target. Mobile-only projects still follow rules 1 and 2, and the final report must say the app was not run:
PLAN.md or ## Product, list each screen's data, its real source and whether that source exists. If one is missing, call AskUserQuestion: build it, connect an existing one, or approve a demo. Never decide this alone.demo-data: approved line naming the file in PLAN.md, the same marker in the file, and a visible demo label on screen. A screen with no data needs data-source: none in PLAN.md.e2e-blackbox-tester, which starts the app and its backend from the commands in root AGENTS.md and uses them. Tests with mocks do not prove a UI works.BLOCKED is not done: Report the task as unfinished, with the exact reason.### Review checklist, or yours in the change row of PLAN.md when the architect is SKIP). Pass it to implementers, qa-tester and reviewers; a row without a real source is a question for the user, never a stub.qa-tester runs flutter test integration_test/ -d <emulator|simulator|macos> against the real backend (or the Firebase emulator) and saves screenshots; with no device available it is BLOCKED, which is not done.AGENTS.md & Triage Gategit symbolic-ref --short HEAD; auto-branch feat/<descriptive-slug> or fix/<slug> off base branches; prompt via AskUserQuestion on Scope Drift.docs/<feature-name>/ exists (syncing docs/specifications/ if present). Silently read context/memory/MEMORY.md (~500 tokens); drill down on demand.AGENTS.md Check: Create or update root AGENTS.md (<= 90 lines) if missing or if stack/commands/conventions changed, linking commands, root DESIGN.md, and context/memory/MEMORY.md.docs/<feature-name>/PLAN.md (<= 50 lines): Classify Tier 1/2/3, complete the 5-row Invoke / SKIP triage table, and define Parallel Execution Tracks. The plan lives in the feature folder next to spec.md, ADRs and evidence; never in the repository root.SKIP. Otherwise dispatch ONLY INVOKE specialists sequentially (product-analyst -> ui-ux-designer -> flutter-architect, never in parallel: they share docs/<feature-name>/spec.md, each editing only its own section) within strict line budgets.Interactive User Alignment Gate): Auto-proceed on Tier 1. On Tier 2 & Tier 3, PAUSE and call AskUserQuestion summarizing scope, mobile UI design (DESIGN.md / spec.md ## Design), and Flutter architecture (spec.md ## Architecture / ADRs), asking: "Do you approve the product scope, UI design, and architectural decisions before proceeding to code implementation?" Wait for explicit approval.Owned Files in Mode A — Disjoint File Partitioning (shared working tree). Enforce Mode B — Git Worktree Isolation (isolation: "worktree" or git worktree) whenever tracks touch shared files (main.dart, router, pubspec.yaml, DI, build_runner).flutter-implementer instances run ONLY their assigned test file during TDD loops; full suite execution waits for State 3.flutter test (exit code 0) + flutter-reviewer check.flutter-reviewer (60/120fps, .dispose() leaks, BuildContext async gaps, semantics) + qa-tester (docs/<feature-name>/test-matrix.md <= 80 lines + exit code 0) + gated flutter-release-engineer.Adversarial Review Committee): Parallel flutter-reviewer, flutter-release-engineer, and qa-tester (test-matrix.md <= 80 + exit code 0), plus risk/web-gated critic, challenger, and e2e-blackbox-tester (verdicts returned in final message, <= 50 lines each, no report files).flutter-implementer. Always disclose BLOCKED/SKIPPED browser E2E honestly in the final summary.AGENTS.md Sync & LLM Wiki Memory UpdatePLAN.md, sync root AGENTS.md (<= 90 lines) if changed, and update context/memory/ (MEMORY.md <= 80-100 lines, topic pages if changed, 5-8 line log entry in context/memory/log/YYYY-MM-DD.md). Never write checkpoints on intermediate turns./skill flutter-senior-orchestration or flutter-feature-orchestrator, dispatching parallel Agent calls.Agent, gate alignment via AskUserQuestion, and verify with flutter analyze and flutter test.Invoke / SKIP row for a new request, or running the full suite once per agent instead of at most once per change..dart source or test files directly in the orchestrator.SKIP (e.g., running e2e-blackbox-tester on mobile-only targets without web, or flutter-architect when following existing patterns).BLOCKED or SKIPPED browser E2E as passed instead of explicitly reporting "Browser E2E was NOT executed (BLOCKED/SKIPPED): ".AskUserQuestion on Tier 2/3, omitting Mode B worktree isolation on shared files (pubspec.yaml, router, build_runner), omitting .dispose() or mounted checks, or committing raw secrets.State 0: Branch checked (feat/<slug> auto-created; Scope Drift checked); docs/<feature-name>/ created; context/memory/MEMORY.md read; root AGENTS.md (<= 90 lines) checked; docs/<feature-name>/PLAN.md (<= 50 lines) has 5-row Invoke / SKIP triage.State 1 & 1.5: Only capability-triggered specialists ran within line caps; Tier 2/3 AskUserQuestion approval received.State 2: Collision analysis enforced Mode A or Mode B; parallel flutter-implementer tracks ran scoped tests only.State 3 & 4: Tiered verification passed (flutter-reviewer 60/120fps & zero leaks, flutter-release-engineer, qa-tester test-matrix.md <= 80 & exit code 0 in Adversarial Review Committee); BLOCKED/SKIPPED E2E disclosed honestly.State 5: docs/<feature-name>/PLAN.md, root AGENTS.md (if changed), and context/memory/ updated once at completion.What SKILL.md sets; muted values are Claude Code's defaults
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-architecture-decisionsUse when choosing state management for a Flutter app (Riverpod vs Bloc vs signals vs setState), drawing package/module boundaries, deciding what belongs in the UI/logic/data layers, or recording a concise MADR Flutter ADR (<= 55 lines). Complements the official flutter-apply-architecture-best-practices skill./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.Other plugins' skills for the same job