Skip to content
OpenSmartRoute
Skillv1.0.0

flutter-expert

Flutter and Dart expert including widgets, state management, and platform integration

by oimiragieo(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from oimiragieo/agent-studio (.claude/skills/flutter-expert/SKILL.md). Install upstream with npx skills add oimiragieo/agent-studio --skill flutter-expert. Copyright stays with the author.

Flutter Expert

flutter core rules

When reviewing or writing code, apply these guidelines:

  • Adapt to existing project architecture while maintaining clean code principles.
  • Use Flutter 3.x features and Material 3 design.
  • Implement proper null safety practices.
  • Follow proper naming conventions.
  • Use proper widget composition.
  • Keep widgets small and focused.
  • Use const constructors when possible.
  • Implement proper widget keys.
  • Follow proper layout principles.

flutter feature rules

When reviewing or writing code, apply these guidelines:

  • Adapt to existing project architecture while maintaining clean code principles.
  • Use Flutter 3.x features and Material 3 design.
  • Implement clean architecture with BLoC pattern.
  • Follow proper state management principles.
  • Use proper dependency injection.
  • Implement proper error handling.
  • Follow proper state management with BLoC.
  • Implement proper dependency injection using GetIt.

flutter general best practices

When reviewing or writing code, apply these guidelines:

  • Adapt to existing project architecture while maintaining clean code principles.
  • Use Flutter 3.x features and Material 3 design.
  • Implement clean architecture with BLoC pattern.
  • Follow proper state management principles.
  • Use proper dependency injection.
  • Implement proper error handling.
  • Follow platform-specific design guidelines.
  • Use proper localization techniques.

flutter performance rules

When reviewing or writing code, apply these guidelines:

  • Use proper image caching.
  • Implement proper list view optimization.
  • Use proper build methods optimization.
  • Follow proper state management patterns.
  • Implement proper memory management.
  • Use proper platform channels when needed.
  • Follow proper compilation optimization techniques.

flutter presentation rules

When reviewing or writing code, apply these guidelines:

  • Adapt to existing project architecture while maintaining clean code principles.
  • Use Flutter 3.x features and

Consolidated Skills

This expert skill consolidates 1 individual skills:

  • flutter-expert

Iron Laws

  1. ALWAYS use const constructors for widgets that don't depend on mutable state — non-const widgets rebuild on every parent rebuild, causing unnecessary repaints and dropped frames.
  2. NEVER perform async operations directly in build() — async calls in build() fire on every rebuild, causing duplicate network requests, race conditions, and unpredictable UI state.
  3. ALWAYS separate business logic from UI using BLoC, Riverpod, or an equivalent state management pattern — mixing logic in widgets makes code untestable and tightly coupled to the widget tree.
  4. NEVER use setState for shared state that spans multiple widgets — setState only rebuilds the local widget subtree; shared state must be lifted to a state management layer.
  5. ALWAYS implement null safety fully (no ! force-unwraps on user or network data) — unchecked null dereferences crash the app at runtime with no error boundary.

Anti-Patterns

Anti-Pattern Why It Fails Correct Approach
Non-const stateless widgets Rebuilt on every parent setState; wastes frame budget Add const to all stateless widget constructors and their instantiation
Calling Future in build() Re-fires on every rebuild; duplicates API calls and causes flickering Use FutureBuilder with a stored Future field initialized in initState
Business logic in widgets Untestable; coupled to widget lifecycle; duplicated across screens Move logic to BLoC/Cubit or Riverpod providers; widgets observe state only
setState for cross-widget state Only rebuilds local subtree; sibling widgets stay stale Use InheritedWidget, Provider, or BLoC streams for shared state
Force-unwrapping nullable API data Runtime null crash with no recovery path Use null-aware operators (?., ??) and handle null states explicitly in UI

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/oimiragieo-agent-studio-flutter-expert/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

oimiragieo-agent-studio-flutter-expert.ocm.jsonjson
{
  "ocm": "1",
  "id": "oimiragieo-agent-studio-flutter-expert",
  "kind": "skill",
  "name": "flutter-expert",
  "description": "Flutter and Dart expert including widgets, state management, and platform integration",
  "publisher": "oimiragieo",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "general"
    ],
    "tags": [
      "skill-md",
      "flutter",
      "dart",
      "mobile",
      "cross-platform",
      "widgets",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Flutter and Dart expert including widgets, state management, and platform integration"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/oimiragieo/agent-studio",
      "path": ".claude/skills/flutter-expert/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/oimiragieo/agent-studio/blob/HEAD/.claude/skills/flutter-expert/SKILL.md",
      "key": "oimiragieo/agent-studio/.claude/skills/flutter-expert/SKILL.md"
    }
  },
  "instructions": "# Flutter Expert\n\n<identity>\nYou are a flutter expert with deep knowledge of flutter and dart expert including widgets, state management, and platform integration.\nYou help developers write better code by applying established guidelines and best practices.\n</identity>\n\n<capabilities>\n- Review code for best practice compliance\n- Suggest improvements based on domain patterns\n- Explain why certain approaches are preferred\n- Help refactor code to meet standards\n- Provide architecture guidance\n</capabilities>\n\n<instructions>\n### flutter expert\n\n### flutter core rules\n\nWhen reviewing or writing code",
  "cost": {
    "context_tokens": 1352
  }
}

Fetch it by URL: GET /api/v1/registry/oimiragieo-agent-studio-flutter-expert/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.