Claude Cursor Skill

flutter-performance

Profile and improve Flutter runtime performance using profile-mode evidence, DevTools, frame analysis, rebuild inspection, memory, and app-size tools. Use for jank, slow startup, excessive work, leaks, or size regressions; route production logs, errors, and traces to flutter-obse

LLM Mart · 0 points · 0 views 0 listing impressions 0 install-command copies
Download thienqo-flutter-skills-skills_flutter-performance-af9552b.zip · 4 KB

Install

skills CLI npx skills add https://github.com/thienqo/flutter-skills/tree/main/skills/flutter-performance
Claude Code claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install thienqo-flutter-skills@llmmart
Git git clone https://github.com/thienqo/flutter-skills.git

The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole thienqo/flutter-skills collection as a plugin from our marketplace. Git is the plain clone.

Skill manifest

Flutter Performance

Measure a reproducible flow before changing code. Debug-mode timing is not release-performance evidence. A cause or fix named in the request is a hypothesis: confirm it with a measurement first.

Establish evidence

Record the target device, Flutter version, build mode, flow, dataset, and metric. Reproduce in profile mode on representative hardware when the issue is user-facing.

Diagnose by symptom

  • Frame jank: inspect UI/raster timing, expensive build/layout/paint, shader or image work.
  • Excess rebuilds: inspect state subscription scope and widget identity before adding const mechanically.
  • Slow startup: trace initialization and defer work not required for first useful frame.
  • Memory growth: compare repeated-flow snapshots and find retained ownership, listeners, controllers, or caches.
  • Large binaries: use Flutter's app-size analysis and compare like-for-like release artifacts.
  • CPU-heavy Dart: use timeline/CPU profiling and consider isolates only after locating the work.

Prefer removing or moving work over caching everything. Bound caches and preserve correctness.

Load profile and frame analysis for frame, CPU, image, rebuild, or web-rendering investigations. Load memory, startup, and size for retention, first-useful-frame, or artifact-size work.

Verification

Repeat the same scenario after the change and report before/after evidence with variance. Run correctness tests because performance changes often alter lifecycle or caching behavior.

Sources

Files (flutter-skills)
  • references
    • memory-startup-and-size.md 2.8 KB
      Loading…
    • profile-and-frame-analysis.md 3.9 KB
      Loading…
  • SKILL.md 2 KB
    ---
    name: flutter-performance
    description: Profile and improve Flutter runtime performance using profile-mode evidence, DevTools, frame analysis, rebuild inspection, memory, and app-size tools. Use for jank, slow startup, excessive work, leaks, or size regressions; route production logs, errors, and traces to flutter-observability.
    ---
    
    # Flutter Performance
    
    Measure a reproducible flow before changing code. Debug-mode timing is not release-performance evidence. A cause or fix named in the request is a hypothesis: confirm it with a measurement first.
    
    ## Establish evidence
    
    Record the target device, Flutter version, build mode, flow, dataset, and metric. Reproduce in profile mode on representative hardware when the issue is user-facing.
    
    ## Diagnose by symptom
    
    - Frame jank: inspect UI/raster timing, expensive build/layout/paint, shader or image work.
    - Excess rebuilds: inspect state subscription scope and widget identity before adding `const` mechanically.
    - Slow startup: trace initialization and defer work not required for first useful frame.
    - Memory growth: compare repeated-flow snapshots and find retained ownership, listeners, controllers, or caches.
    - Large binaries: use Flutter's app-size analysis and compare like-for-like release artifacts.
    - CPU-heavy Dart: use timeline/CPU profiling and consider isolates only after locating the work.
    
    Prefer removing or moving work over caching everything. Bound caches and preserve correctness.
    
    Load [profile and frame analysis](references/profile-and-frame-analysis.md) for frame, CPU, image, rebuild, or web-rendering investigations. Load [memory, startup, and size](references/memory-startup-and-size.md) for retention, first-useful-frame, or artifact-size work.
    
    ## Verification
    
    Repeat the same scenario after the change and report before/after evidence with variance. Run correctness tests because performance changes often alter lifecycle or caching behavior.
    
    ## Sources
    
    - [Flutter performance](https://docs.flutter.dev/perf)
    - [DevTools performance view](https://docs.flutter.dev/tools/devtools/performance)
    

Comments (0)

Sign in to join the conversation.

No comments yet.

Reviews (0)

No reviews yet.