flutter-smell-mounted-checks

Official

Detects and guides fixing Flutter mounted checks.

Authorbelluga
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Flutter UI often suffers from lifecycle-related defects when asynchronous work is performed. This includes checks of mounted/context.mounted, performing setState after an await, or navigating after asynchronous gaps, which can cause crashes, memory leaks, or inconsistent UI state. This Skill formalizes the detection and root-cause analysis of these smells and provides refactor guidance.

Core Features & Use Cases

  • Detect signals such as if (!mounted) / if (!context.mounted)
  • Detect setState after an await
  • Detect Navigator calls after async gaps in UI
  • Provide root-cause questions and the preferred fixes in order
  • Document acceptable exceptions and log every accepted exception to a project artifact

Quick Start

Scan the current Flutter UI for mounted/context.mounted signals, setState-after-await, and navigation after awaits, then apply the provided root-cause fixes.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: flutter-smell-mounted-checks
Download link: https://github.com/belluga/delphi-ai/archive/main.zip#flutter-smell-mounted-checks

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.