Flutter Reverse Engineering Skill for Claude Code
The most comprehensive Flutter app analysis skill for Claude Code. Reverse engineer any Flutter app from source code, APK files, or directly from a connected phone via ADB. Generates complete architecture blueprints with interactive diagrams.
v1.1.0 | Companion: Security Hardening Skill
Quick Start
# Step 1: Add the marketplace (one-time)
claude plugin marketplace add abhiabby3008/flutter-reverse-engineering-skill
# Step 2: Install the plugin
claude plugin install flutter-reverse-engineering
# Update to latest version
claude plugin update flutter-reverse-engineering
The skill auto-checks for updates every time it runs — you'll see a notification if a newer version is available.
What Is This?
You point it at any Flutter app — source code, an APK file, or a phone connected via USB — and it produces a complete technical blueprint. Architecture pattern, every dependency categorized, state management flow, API contracts, navigation map, design patterns, build config, and more. All in a structured report with visual Mermaid diagrams.
Think of it as onboarding onto any Flutter codebase in minutes instead of days.
Three Ways to Analyze
Mode A: Source Code
You have the Flutter project on your machine. Just open the project directory and say:
> analyze this Flutter project
> what's the architecture of this codebase?
> reverse engineer this app and generate documentation
The skill reads pubspec.yaml, lib/, build files, and key source files to produce a full analysis.
Mode B: APK / XAPK File
You have a .apk or .xapk file — from a download, a build folder, or anywhere on disk:
> reverse engineer ~/Downloads/competitor-app.apk
> analyze this APK: build/app/outputs/flutter-apk/app-release.apk
> what can I learn from this XAPK file?
The skill extracts the APK, verifies it's a Flutter app, then mines libapp.so for strings — finding API endpoints, class names, route names, storage keys, error messages, and potential hardcoded secrets.
Mode C: Connected Device (ADB)
Your phone is connected via USB or wireless ADB. The skill pulls the APK directly:
> my phone is connected, pull the Feelins app and analyze it
> pull com.example.app from my device
> list all apps on my phone
ADB not installed? No problem — the skill asks permission, then auto-installs Android Platform Tools from Google (~15MB). Supports Windows, macOS, and Linux.
21 Analysis Phases
APK & Device Phases (Modes B & C)
| Phase | What It Does |
|---|
| 0 | ADB Setup & APK Pull — auto-install ADB, connect to device (USB/wireless), find and pull the target app |
| 1 | APK Extraction — unzip, verify Flutter markers (libflutter.so, libapp.so, flutter_assets/), handle split APKs |
| 2 | APK Report — extract strings from compiled Dart, discover API endpoints, packages, routes, error messages, flag hardcoded secrets |
Source Code Phases (Mode A)
| Phase | What It Does |
|---|
| 3 | Project Identity — name, version, SDK constraints, Flutter channel, mono-repo detection |
| 4 | Dependency Analysis — categorizes every package across 16 categories (state management, networking, storage, Firebase, payments, media, etc.). Recognizes 100+ common packages |
| 5 | Architecture Detection — identifies Provider, BLoC, Riverpod, GetX, Clean Architecture, MVVM, MVC, or Feature-First patterns. Reads actual code to confirm, not just folder names |
| 6 | Folder Structure — complete annotated lib/ directory tree with file counts and purpose |
| 7 | State Management Deep Dive — provider/bloc/controller inventory, where state is provided, how UI consumes it, persistence, cross-cutting state |
| 8 | Domain Knowledge — data models, API contracts (endpoints, auth, error handling), business entities and relationships, enums and constants |
| 9 | Navigation & Routing — GoRouter, AutoRoute, GetX, Navigator 1.0/2.0 detection. Route map, guards, deep linking, tab structure |
| 10 | Service Layer — service inventory with singleton/instance pattern, dependencies, key methods |
| 11 | Design Patterns — singletons, repositories, factories, observers, DI, mixins, extensions with file locations |
| 12 | Build & Platform Config — platforms, min SDK, permissions, CI/CD, flavors, OTA (Shorebird), code signing |
| 13 | Code Quality — lint rules, test coverage, null safety, typed vs untyped models, error handling consistency |
| 14 | Feature & Screen Map — user-facing features tree with navigation entry points |
Advanced Phases (All Modes)