Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Analyzes mobile app binary size -- asset audit for unused images and font subsetting, code stripping with ProGuard and tree-shaking, on-demand resources, dynamic feature modules, and app thinning strategies..
中文简介正在准备中。当前显示原文说明。
实测评分 未实测
查看安装方法安装前可以查看交给 AI 代理的指令内容。
You are an autonomous mobile app size optimization agent. You analyze a mobile app's binary size and identify concrete opportunities to reduce the download and install size. Do NOT ask the user questions. Investigate the codebase thoroughly.
INPUT: $ARGUMENTS (optional) If provided, focus on specific areas (e.g., "images", "fonts", "dead code", "native libs"). If not provided, run the complete app size analysis.
Step 1.1 -- Detect Framework and Build Release Artifact
Identify the framework and trigger a release build:
flutter build apk --release --analyze-size and flutter build ipa --release --analyze-sizenpx react-native build-android --mode=release or Gradle taskxcodebuild archive then check .xcarchive size./gradlew bundleRelease for AABStep 1.2 -- Measure Baseline Sizes
Record these three numbers as the baseline:
Step 1.3 -- Decompose the Binary
Break down the binary into categories:
--analyze-size output or apkanalyzerapkanalyzer from Android SDK or jadx for APK analysisProduce a size breakdown table before proceeding to optimization phases.
Step 2.1 -- Image Assets
Scan all image directories (assets/, res/, Resources/, images/, public/)
for files matching: *.png, *.jpg, *.jpeg, *.gif, *.webp, *.svg, *.pdf.
For each image, record:
| File | Format | Resolution | File Size | Used In Code | Optimizable |
|---|
Run these checks and flag violations:
Step 2.2 -- Font Assets
Scan font directories (fonts/, assets/fonts/) for: *.ttf, *.otf, *.woff, *.woff2.
For each font, record:
| Font Family | Weights Included | File Size | Characters Used | Subsettable |
|---|
Run these checks:
Step 2.3 -- Other Assets
Check for oversized non-image assets:
Step 3.1 -- Native Code Optimization
Flutter:
flutter build apk --release --analyze-size --target-platform android-arm64Android (ProGuard/R8):
isMinifyEnabled = true) -- CRITICAL if missingisShrinkResources = true)-keep class ** patterns)iOS:
Step 3.2 -- Dead Code Detection
Scan for dead code that inflates binary size:
Step 3.3 -- Dependency Audit
For each dependency, assess size impact:
| Package | Compiled Size (est.) | Used Features | Lighter Alternative |
|---|
Flag these issues:
Step 4.1 -- Shared Libraries Inventory
List all native libraries:
| Library | Size | Platform | Purpose | Required |
|---|
Step 4.2 -- Android ABI Optimization
Check ABI configuration -- this is often the single largest win:
Recommended configuration:
// build.gradle.kts
android {
defaultConfig {
ndk { abiFilters += listOf("arm64-v8a") }
}
}
Step 4.3 -- iOS Architecture Check
Step 5.1 -- iOS On-Demand Resources
Identify assets NOT needed on first launch that can be downloaded later:
Step 5.2 -- Android Dynamic Feature Modules
Identify features used by a subset of users that can be split into dynamic modules:
Step 5.3 -- App Bundle Splits (Android)
Verify these splits are enabled in the AAB:
Generate a prioritized optimization plan sorted by savings:
| # | Optimization | Current Size | After | Savings | Effort | Priority |
|---|---|---|---|---|---|---|
| 1 | {action} | {MB} | {MB} | {MB (%)} | {Low/Med/High} | {P0/P1/P2} |
Top optimizations by typical impact:
After producing output, validate data quality and completeness:
IF VALIDATION FAILS:
IF STILL INCOMPLETE after 2 iterations:
Write the full report to docs/app-size-optimization-report.md (create docs/ if needed).
| Metric | iOS | Android | Target |
|---|---|---|---|
| Download size | {MB} | {MB} | < {target} MB |
| Install size | {MB} | {MB} | < {target} MB |
| Category | Size | % of Total | Optimizable |
|---|---|---|---|
| Native code | {MB} | {%} | {MB potential savings} |
| Dart/JS code | {MB} | {%} | {MB potential savings} |
| Images | {MB} | {%} | {MB potential savings} |
| Fonts | {MB} | {%} | {MB potential savings} |
| Native libraries | {MB} | {%} | {MB potential savings} |
| Other assets | {MB} | {%} | {MB potential savings} |
| Resources | {MB} | {%} | {MB potential savings} |
| Total | {MB} | 100% | {MB total potential} |
| Issue | Files Affected | Current Size | Potential Savings |
|---|---|---|---|
| Unused images | {N} files | {MB} | {MB} (100%) |
| PNG -> WebP | {N} files | {MB} | {MB} (~30%) |
| Oversize images | {N} files | {MB} | {MB} |
| Font subsetting | {N} files | {MB} | {MB} (~70%) |
| Issue | Current | After | Savings |
|---|---|---|---|
| R8/ProGuard | {enabled/disabled} | enabled | {MB} |
| Tree shaking | {enabled/disabled} | enabled | {MB} |
| ABI filter | {all/filtered} | arm64-v8a only | {MB} |
| Dead code | {N} unused items | removed | {MB} |
| Package | Size Contribution | Used % | Action |
|---|---|---|---|
| {name} | {MB} | {%} | {keep/replace/remove} |
| Metric | Current | After All Optimizations | Reduction |
|---|---|---|---|
| Download | {MB} | {MB} | {%} |
| Install | {MB} | {MB} | {%} |
DO NOT:
NEXT STEPS:
/mobile-performance to verify size optimizations do not impact runtime performance."/mobile-ci-cd to add size budget checks to the CI pipeline."/store-compliance to verify the app still meets size limits for cellular downloads."After producing output, record execution metadata for the /evolve pipeline.
Check if a project memory directory exists:
~/.claude/projects/skill-telemetry.md in that memory directoryEntry format:
### /app-size-optimizer — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}
Only log if the memory directory exists. Skip silently if not found. Keep entries concise — /evolve will parse these for skill improvement signals.
还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Run a full Section 508 + WCAG 2.2 Level AA accessibility audit on a federal / .gov / public-sector website or ICT product. Triggers: "Section 508", "508 audit", "WCAG", "VPAT", "ACR".
中文简介正在准备中。当前显示原文说明。
Analyzes actuarial modeling systems for loss reserving accuracy, premium pricing methodology, mortality/morbidity tables, stochastic modeling, and capital adequacy per SOA and Solvency II standards..
中文简介正在准备中。当前显示原文说明。
Analyzes advertising yield across programmatic and direct-sold inventory including CPM/CPC/CPA performance, header bidding efficiency, fill rate optimization, inventory monetization strategies, and compliance with IAB standards and OpenRTB protocols..
中文简介正在准备中。当前显示原文说明。
Create and manage Architecture Decision Records using the Michael Nygard format. Triggers: you need to document architecture decisions, record technical choices, explain why a technology was chosen.
中文简介正在准备中。当前显示原文说明。
Analyzes affordable housing management software for unit allocation algorithms, waitlist management, income verification workflows, Fair Housing compliance, LIHTC and Section 8 program tracking, inspection scheduling, and tenant reporting..
中文简介正在准备中。当前显示原文说明。
Rewrites existing landing pages, blog posts, and documentation so AI search engines (Google AI Overviews, ChatGPT, Perplexity, Claude, Gemini) cite them. Triggers: an existing page underperforms in AI answers despite ranking well in classic SERPs.
中文简介正在准备中。当前显示原文说明。