- Home
- Skills
- Mobile Development
- Mobile App Size Reduction (Android and iOS)
Works with the AI Agents you already use
Mobile App Size Reduction (Android and iOS)
by Saizul Amin
Analyze and reduce Flutter and React Native app sizes using automated artifact reporting and CI budgets.
$7
Mobile App Size Reduction (Android and iOS)
Example session with this skill installed
Run the Mobile App Size Reduction skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the mobile app size
Here is what the Mobile App Size Reduction (Android and iOS) skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
apk-code-size-analysis_01.json: flutter-analyze-size (apk)
total 16.1 MB uncompressed
By category:
lib 12.8 MB 79.3%
assets 2.5 MB 15.4%
classes.dex 878.9 KB 5.3%
Largest files:
7.5 MB lib/arm64-v8a/libflutter.so
3.0 MB lib/arm64-v8a/libapp.so (Dart AOT)/package:flutter
2.5 MB assets/flutter_assets/assets/images/onboarding.png
2.3 MB lib/arm64-v8a/libapp.so (Dart AOT)/package:pocket_budget
878.9 KB classes.dex
0 finding(s)
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Mobile apps frequently suffer from size bloat that causes user drop-off during installation. This skill analyzes Flutter and React Native build artifacts to identify exactly what occupies space and provides a prioritized reduction plan.
What it does
- Multi-format analysis reads APK, AAB, IPA, or Flutter size JSONs to categorize space usage.
- Component breakdown splits report by dex, native libs, Flutter engine, Dart AOT, JS bundles, and assets.
- Issue detection flags unstripped libraries, debug builds, duplicate assets, and non-Hermes JS bundles.
- Budget enforcement integrates into CI to fail builds that exceed a defined megabyte threshold.
- Actionable strategy generates a prioritized list of optimizations based on bytes saved versus effort.
How it works
- Analyze artifacts by passing a build file like
app-release.aabor a Flutter size JSON to the report script. - Review the category table to see the compressed size and percentage impact of engine, code, and assets.
- Execute findings based on the prioritized plan, such as converting images to WebP or enabling R8 shrinking.
- Verify savings by re-running the analysis on a new release build to compare before and after metrics.
Frameworks & tools
This skill supports Flutter and React Native development. It interfaces with Python 3.8, bundletool, apkanalyzer, and the Flutter CLI.
Why this beats prompting it yourself
Generic prompts cannot parse binary artifact structures or CSV size data accurately. This skill uses a dedicated script to extract real metrics from your specific builds, ensuring recommendations are based on hard data rather than guesses about your dependencies.
Use cases
- Identify why a release build jumped significantly in size since the last version.
- Set up a CI gate to prevent merging PRs that push the app over a 30MB limit.
- Audit a React Native bundle to see if Hermes bytecode is correctly enabled.
- Optimize asset-heavy Flutter apps by identifying the largest individual image files.
Known limitations
Requires release builds for accurate measurement. Does not optimize runtime memory or startup latency. Analysis of AAB download sizes requires the bundletool utility.
Open source: saizul/mobile-app-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Mobile Development.
Requires release builds for accuracy. AAB download size metrics require bundletool. Does not address runtime memory or startup performance.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
- react-native-bundle-visualizer
Node.jssource-map-explorer
Python 3.8+