Agent skill

Flutter Reducing App Size

by btwld in btwld/superdeck

Measures and optimizes the size of Flutter application bundles for deployment.

BSD-3-ClauseAuto-check passedMobile

Install Flutter Reducing App Size

skills CLI
$ npx skills add btwld/superdeck --skill flutter-reducing-app-size -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install btwld/superdeck flutter-reducing-app-size --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/btwld/superdeck.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/flutter-reducing-app-size .claude/skills/flutter-reducing-app-size && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
flutter-reducing-app-size
GitHub stars
130
Token cost
~1.4k tokens
SKILL.md length
602 words
Files
1
Skills in repo
23
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Measures and optimizes the size of Flutter application bundles for deployment.

  • Works in 4 steps: Identify the largest contributors to app… → Determine if the dependency or asset is… → Remove, replace, or optimize the… → …
  • Minimizing download size
  • SKILL.md covers Contents, Core Concepts, Workflow: Generating Size… and Workflow: Analyzing Size Data…, plus 3 more sections
  • Calls flutter and dart

What it does

Flutter Reducing App Size is an agent skill from btwld/superdeck. Measures and optimizes the size of Flutter application bundles for deployment. Use when minimizing download size or meeting app store package constraints.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Mobile, covering Cross-platform mobile apps, App store release and Mobile performance. It works with Flutter and iOS. The repository describes itself as: Presentation slides for Flutter with Flutter. The licence is BSD-3-Clause.

When your agent uses it

  • Minimizing download size
  • Meeting app store package constraints

Example prompts

  • “Use the flutter-reducing-app-size skill to measure and optimizes the size of Flutter application bundles for deployment”
  • “/flutter-reducing-app-size”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Identify the largest contributors to app size.
  2. Determine if the dependency or asset is strictly necessary.
  3. Remove, replace, or optimize the identified component.
  4. Regenerate the Size Analysis JSON and compare the new build against the old build using the DevTools "Diff" tab.

What it can do on your machine

Read from SKILL.md and the folder at commit 815a746. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • flutter
    • dart

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Flutter Reducing App Size loads about 1.4k tokens when it runs. Until then it costs about 45 tokens; SKILL.md has 602 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~45
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from btwld/superdeck at commit 815a746, republished under its BSD-3-Clause licence (© btwld). 602 words, ~1,414 tokens.

Download SKILL.mdSave it as .claude/skills/flutter-reducing-app-size/SKILL.md (or your agent's skills folder).
name
flutter-reducing-app-size
description
Measures and optimizes the size of Flutter application bundles for deployment. Use when minimizing download size or meeting app store package constraints.
metadata.model
models/gemini-3.1-pro-preview
metadata.last_modified
Thu, 12 Mar 2026 22:22:44 GMT

Reducing Flutter App Size

Contents

Core Concepts

  • Debug vs. Release: Never use debug builds to measure app size. Debug builds include VM overhead and lack Ahead-Of-Time (AOT) compilation and tree-shaking.
  • Upload vs. Download Size: The size of an upload package (APK, AAB, IPA) does not represent the end-user download size. App stores filter redundant native library architectures and asset densities based on the target device.
  • AOT Tree-Shaking: The Dart AOT compiler automatically removes unused or unreachable code in profile and release modes.
  • Size Analysis JSON: The --analyze-size flag generates a *-code-size-analysis_*.json file detailing the byte size of packages, libraries, classes, and functions.

Workflow: Generating Size Analysis Files

Use this workflow to generate the raw data required for size analysis.

Task Progress:

  • Determine the target platform (apk, appbundle, ios, linux, macos, windows).
  • Run the Flutter build command with the --analyze-size flag.
  • Locate the generated *-code-size-analysis_*.json file in the build/ directory.

Conditional Logic:

  • If targeting Android: Run flutter build apk --analyze-size or flutter build appbundle --analyze-size.
  • If targeting iOS: Run flutter build ios --analyze-size. Note: This creates a .app file useful for relative content sizing, but not for estimating final App Store download size. Use the Estimating iOS Download Size workflow for accurate iOS metrics.
  • If targeting Desktop: Run flutter build [windows|macos|linux] --analyze-size.

Workflow: Analyzing Size Data in DevTools

Use this workflow to visualize and drill down into the Size Analysis JSON.

Task Progress:

  • Launch DevTools by running dart devtools in the terminal.
  • Select "Open app size tool" from the DevTools landing page.
  • Upload the generated *-code-size-analysis_*.json file.
  • Inspect the treemap or tree view to identify large packages, libraries, or assets.
  • Feedback Loop:
    1. Identify the largest contributors to app size.
    2. Determine if the dependency or asset is strictly necessary.
    3. Remove, replace, or optimize the identified component.
    4. Regenerate the Size Analysis JSON and compare the new build against the old build using the DevTools "Diff" tab.
Show full SKILL.md (261 more words)Show less

Workflow: Estimating iOS Download Size

Use this workflow to get an accurate projection of iOS download and installation sizes across different devices.

Task Progress:

  • Configure the app version and build number in pubspec.yaml.
  • Generate an Xcode archive by running flutter build ipa --export-method development.
  • Open the generated archive (build/ios/archive/*.xcarchive) in Xcode.
  • Click Distribute App and select Development.
  • In the App Thinning configuration, select All compatible device variants.
  • Check the option to Strip Swift symbols.
  • Sign and export the IPA.
  • Open the exported directory and review the App Thinning Size Report.txt file to evaluate projected sizes per device.

Workflow: Implementing Size Reduction Strategies

Apply these strategies to actively reduce the compiled footprint of the application.

Task Progress:

  • Split Debug Info: Strip debug symbols from the compiled binary and store them in separate files.
  • Remove Unused Resources: Audit the pubspec.yaml and assets/ directory. Delete any images, fonts, or files not actively referenced in the codebase.
  • Minimize Library Resources: Review third-party packages. If a package imports massive resource files (e.g., large icon sets or localization files) but only a fraction is used, consider alternative packages or custom implementations.
  • Compress Media: Compress all PNG and JPEG assets using tools like pngquant, imageoptim, or WebP conversion before bundling them into the app.

Examples

Generating Size Analysis (Android)
bash
# Generate the size analysis JSON for an Android App Bundle
flutter build appbundle --analyze-size --target-platform=android-arm64
Splitting Debug Info (Release Build)
bash
# Build an APK while stripping debug info to reduce binary size
flutter build apk --obfuscate --split-debug-info=build/app/outputs/symbols
Reading the iOS App Thinning Size Report

When reviewing App Thinning Size Report.txt, look for the specific target device to understand the true impact on the user:

text
Variant: Runner-7433FC8E-1DF4-4299-A7E8-E00768671BEB.ipa
Supported variant descriptors: [device: iPhone12,1, os-version: 13.0]
App + On Demand Resources size: 5.4 MB compressed, 13.7 MB uncompressed
App size: 5.4 MB compressed, 13.7 MB uncompressed

Interpretation: The end-user download size (compressed) is 5.4 MB, and the on-device footprint (uncompressed) is 13.7 MB.

© btwld, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/flutter-reducing-app-size of btwld/superdeck.

Open the folder on GitHubat commit 815a746

Compare with similar skills

Flutter Reducing App Size next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Flutter Reducing App Size compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Flutter Reducing App Size this skillbtwld/superdeck130—~1.4kAutomated safety check: PassBSD-3-Clause
Senior Mobileborghei/Claude-Skills881—~1.9kAutomated safety check: PassMIT
OdevioOdevio/Odevio-CLI423—~7.6kAutomated safety check: PassMIT
Flutter Appccplugins/awesome-claude-code-plugins968—~1.1kAutomated safety check: NotesApache-2.0
Android Designhashgraph-online/awesome-codex-plugins1.2k—~2.5kAutomated safety check: PassApache-2.0
Ffmpeg Kit macOS Codesign Crashdivinevideo/divine-mobile266—~1.1kAutomated safety check: PassMPL-2.0

Similar skills

  • Senior Mobile

    borghei/Claude-Skills

    A skill your agent uses when the user asks to "build a mobile app", "scaffold React Native project", "create SwiftUI views", "set up Jetpack Compose", "optimize mobile performance", "configure Expo…

    881 GitHub stars~1.9k tokensUpdated yesterday
    MobileAuto-check passed
  • Odevio

    Odevio/Odevio-CLI

    Take a Flutter project to an iPhone or the App Store with Odevio - build, sign and publish iOS apps from Windows, Linux or macOS with no Mac and no Xcode.

    423 GitHub stars~7.6k tokensUpdated 13 days ago
    MobileAuto-check passed
  • Flutter App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new Flutter mobile app with clean architecture, Riverpod, FVM-pinned SDK, current packages, and no deprecated APIs.

    968 GitHub stars~1.1k tokensUpdated 1 mo ago
    MobileAuto-check: notes
  • Android Design

    hashgraph-online/awesome-codex-plugins

    A skill your agent uses when the user asks for an Android app, Compose UI, Material 3, Material You, Material 3 Expressive, Pixel-style app, foldable/adaptive layout, Play Store deliverable, React…

    1.2k GitHub stars~2.5k tokensUpdated today
    MobileAuto-check passed
  • Ffmpeg Kit macOS Codesign Crash

    divinevideo/divine-mobile

    Fix Flutter macOS app crash at launch due to FFmpeg Kit library loading failure.

    266 GitHub stars~1.1k tokensUpdated today
    Media & CreativeAuto-check passed
  • Engine Whats New

    flutter/flutter

    Generates the "what's new" release summary and diff file for changes in the Flutter engine (//engine/src/flutter) between two releases (e.g., 3.47 vs 3.44).

    179k GitHub stars~978 tokensUpdated today
    MobileAuto-check passed

More from btwld/superdeck

All 23 skills in this repo
  • Create, review, or edit SuperDeck Markdown presentations and Flutter presentation apps.

    130 GitHub stars~649 tokensUpdated 10 days ago
    Auto-check passed
  • Adds home screen widgets to a Flutter app for Android and iOS.

    130 GitHub stars~2.2k tokensUpdated 10 days ago
    Auto-check passed
  • Flutter Animating Apps

    btwld/superdeck

    Implements animated effects, transitions, and motion in a Flutter app.

    130 GitHub stars~1.9k tokensUpdated 10 days ago
    Auto-check passed
  • Architects a Flutter application using the recommended layered approach (UI, Logic, Data).

    130 GitHub stars~1.8k tokensUpdated 10 days ago
    Auto-check passed
  • Flutter Building Forms

    btwld/superdeck

    Builds Flutter forms with validation and user input handling.

    130 GitHub stars~1.4k tokensUpdated 10 days ago
    Auto-check passed
  • Builds Flutter layouts using the constraint system and layout widgets.

    130 GitHub stars~1.5k tokensUpdated 10 days ago
    Auto-check passed

Works with

Categories

Questions about Flutter Reducing App Size

What does Flutter Reducing App Size do?

Measures and optimizes the size of Flutter application bundles for deployment. Flutter Reducing App Size is an agent skill from btwld/superdeck. Measures and optimizes the size of Flutter application bundles for deployment.

When should I use Flutter Reducing App Size?

Flutter Reducing App Size fits situations like: minimizing download size; meeting app store package constraints.

How do I install Flutter Reducing App Size in Claude Code?

Run `npx skills add btwld/superdeck --skill flutter-reducing-app-size -a claude-code`. Or copy the skill folder (.agents/skills/flutter-reducing-app-size in btwld/superdeck) into .claude/skills/flutter-reducing-app-size in your project. Claude Code loads it when a task matches its description.

How do I install Flutter Reducing App Size in Codex?

Run `npx skills add btwld/superdeck --skill flutter-reducing-app-size -a codex`. Or copy the skill folder (.agents/skills/flutter-reducing-app-size in btwld/superdeck) into .agents/skills/flutter-reducing-app-size in your project. Codex loads it when a task matches its description.

Can I use Flutter Reducing App Size in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add btwld/superdeck --skill flutter-reducing-app-size -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/flutter-reducing-app-size, .gemini/skills/flutter-reducing-app-size, .github/skills/flutter-reducing-app-size and .opencode/skills/flutter-reducing-app-size in your project.

What does Flutter Reducing App Size need to run?

Going by SKILL.md and its folder, Flutter Reducing App Size needs the command-line tools its instructions call (flutter and dart).

Does Flutter Reducing App Size access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Flutter Reducing App Size safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Flutter Reducing App Size use?

Flutter Reducing App Size is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Flutter Reducing App Size use?

About 1.4k tokens (SKILL.md is roughly 5.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Flutter Reducing App Size?

Skills that share tags, products or a category with Flutter Reducing App Size: Senior Mobile (borghei/Claude-Skills, 881 stars), Odevio (Odevio/Odevio-CLI, 423 stars), Flutter App (ccplugins/awesome-claude-code-plugins, 968 stars) and Android Design (hashgraph-online/awesome-codex-plugins, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Flutter Reducing App Size?

btwld (a GitHub organization) maintains it in btwld/superdeck, which has 130 GitHub stars. The repository holds 23 skills in this directory. The repository was last updated on September 28, 2026.

Source: btwld/superdeck on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.