State Audit banner
thebirthdaygirl thebirthdaygirl

State Audit

Security community

Description

Audit the state management implementation across the project or in a specific file. Target: $ARGUMENTS (specific file/feature, or entire project if not specified) Delegate to the State Management Specialist agent. Scan for: **Provider / Riverpod issues** - `ref.read` used inside `build()` — should be `ref.watch` - `ref.watch` used inside callbacks (tap handlers, etc.) — should be `ref.read` - Provider missing `autoDispose` when it should have it (one-time data, screen-specific state) - Provi

Installation

Installs to ~/.claude/commands/thebirthdaygirl-flutter-factory-state-audit.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/thebirthdaygirl/flutter-factory/HEAD/.claude/commands/state-audit.md -o ~/.claude/commands/thebirthdaygirl-flutter-factory-state-audit.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository