flutter-image-performance

flutter-image-performance is a skill for Claude Code, Codex from ariaramin/flutter-skills. It costs 165 tokens per session (3,618 once invoked), scanned A, original, MIT.

A guide for improving how Flutter apps load and display images. It follows the full path from downloading or reading an image through decoding, caching, rendering, and removal from memory.

In plain words
What is it for?
Use it to diagnose slow or memory-heavy image screens, choose image sizes, resize or decode images, tune in-memory caching and prefetching, handle animations, and measure changes.
Why use it?
It helps reduce wasted network transfer, CPU work, memory, graphics memory, storage, and battery use without guessing where the slowdown is. It also addresses large lists, cache limits, preloading, and layout stability.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to diagnose slow or memory-heavy image screens, choose image sizes, resize or decode images, tune in-memory caching and prefetching, handle animations, and measure changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ariaramin/flutter-skills/flutter-image-performance
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ariaramin/flutter-skills --skill flutter-image-performance
Clone the repo
git clone --depth 1 https://github.com/ariaramin/flutter-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flutter-image-performance

README.md
[![agentmods](https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-image-performance/github.svg)](https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-image-performance)
Your own site
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-image-performance"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-image-performance/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for flutter-image-performance

Your own site · 80×15
<a href="https://agentmods.dev/skills/ariaramin/flutter-skills/flutter-image-performance"><img src="https://agentmods.dev/badge/skills/ariaramin/flutter-skills/flutter-image-performance.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 165 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,618 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00165 $0.03618
Opus 5.5 $0.00066 $0.01447
Sonnet 5.5 $0.00033 $0.00724
Haiku 4.5 $0.00016 $0.00362

Measured 1mo ago against content hash 851b876763ee, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

flutter-image-performance scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/flutter-image-performance/SKILL.md · 313 lines

How it starts

The opening of the file, as written. The whole thing — 313 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Flutter Image Performance

Mission

Optimize the complete pipeline:

source → fetch/read → encoded bytes → decode/resample → decoded image
→ ImageCache → raster/texture → paint → display → eviction/disposal

Reduce wasted network, CPU, memory, GPU, storage, and battery work without sacrificing required quality, privacy, correctness, reliability, or maintainability. Never claim an optimization worked without before/after evidence when measurement is available.

Operating Rules

  1. Inspect before editing; identify the bottleneck before selecting a fix.
  2. Distinguish transfer bytes, encoded dimensions, decoded dimensions, logical size, physical size, cache footprint, and renderer memory.
  3. Prefer server/CDN resizing over downloading huge originals and fixing only client decode memory.
  4. Decode close to actual display need where supported.
  5. Treat Flutter ImageCache as in-memory image reuse, not persistent disk caching.
  6. Keep large collections lazy and prefetch narrowly.
  7. Bound caches, queues, retries, processing concurrency, and persistent storage.
  8. Reserve stable layout geometry before an image arrives.
  9. Keep provider/cache identities stable unless content identity changes.
  10. Treat Web as a separate image platform.
  11. Do not project Android/iOS native implementation details onto Flutter without evidence.
  12. Add packages only for demonstrated capability gaps.
  13. Let framework-owned resources remain framework-owned; explicitly dispose only directly owned low-level resources.
  14. Test realistic constrained devices, DPRs, window sizes, and cache states.
  15. Change one variable at a time and re-measure.
  16. Record platform/version uncertainty instead of inventing guarantees.

Version Gate

Before version-sensitive work inspect pubspec.yaml, pubspec.lock, target platforms, actual Flutter/Dart versions, and current API signatures. Inspect the exact Flutter tag/source when public docs conflict. Research baseline: Flutter 3.44.x / Dart 3.12.x-era behavior, 2026-08-09. Do not silently assume later Flutter behavior.

Read the full file on GitHub · 313 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 313 lines · 165 tokens per session scan A 851b876763ee

Subscribe to this mod's changes

flutter-image-performance is a skill published in the GitHub repository ariaramin/flutter-skills (11 stars, last pushed 23d ago), licensed MIT. It adds 165 tokens to every session and 3,618 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.

Related

flutter-image-performance compared with skills from other repositories

flutter-image-performance next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
flutter-image-performanceariaramin/flutter-skillsSkill1123d agoMITA165Claude Code, Codex
omh-apple-designrlaope/oh-my-hermesSkill6.2ktodayMITA21Claude Code
platform-conventionsOwl-Listener/designer-skillsSkill3.5k11d agoMITA55Claude Code, Codex
redteam-mobile-detail-packNetw0rkNoob/VulnClawSkill4.0k1mo agoMITA57Claude Code, Codex
android-pentestNetw0rkNoob/VulnClawSkill4.0k1mo agoMITA32Claude Code, Codex
offline-syncWrongStack/WrongStackSkill444todayMITA85Claude Code, Codex
flutter-mobileWrongStack/WrongStackSkill444todayMITA86Claude Code