Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Android 17 Memory Efficiency — AI Agent Marketplace

A Claude Code plugin marketplace that ships a single skill: android-memory-efficiency — an AI agent skill that audits and fixes an Android app's memory usage so it survives the per-app memory limits enforced starting in Android 17.

Built from:

Install (Claude Code)

Add this repo as a marketplace, then install the plugin:

/plugin marketplace add aliab/Android-17-Memory-Efficiency-AI-Skill
/plugin install android-memory-efficiency@android-memory-efficiency-marketplace

That's it. The skill auto-activates on Android memory topics (OOM, LeakCanary, bitmap memory, R8, onTrimMemory, Android 17 limits, …) or can be invoked directly with /android-memory-efficiency.

Other agents (Codex, Cursor, Gemini CLI, …)

The skill ships an AGENTS.md next to SKILL.md, so any agent that reads AGENTS.md files can use it. Either:

  • Drop the skill directory into your repo:
    git clone https://github.com/aliab/Android-17-Memory-Efficiency-AI-Skill.git
    cp -r Android-17-Memory-Efficiency-AI-Skill/plugins/android-memory-efficiency/skills/android-memory-efficiency /path/to/your/repo/
  • Or reference it from your project's root AGENTS.md:
    For Android memory work, read ./android-memory-efficiency/AGENTS.md and follow it.

Standalone (no agent)

The reference files are plain Markdown and the scripts are plain bash — both are useful without any agent. See plugins/android-memory-efficiency/skills/android-memory-efficiency/.

What the skill covers

Workstream Reference
Android 17 limit mechanics, MemoryLimiter:AnonSwap detection, adb simulation references/memory-limits.md
R8 full-mode config, keep-rule hygiene, Configuration Analyzer references/r8.md
Bitmap downsampling, RGB_565, vectors, pooling, duplicate-bitmap hunting references/images.md
Leak patterns (Compose + Views), LeakCanary profiler task references/leaks.md
onTrimMemory with the two levels that still fire references/trim-memory.md
ProfilingManager OOM/anomaly triggers, Perfetto Heap Dump Explorer references/profiling.md

Plus two scripts:

  • scripts/audit.sh — static grep audit of a project (no device needed)
  • scripts/simulate_limit.sh — impose a memory limit on a running app and watch for the kill
SKILL_DIR=plugins/android-memory-efficiency/skills/android-memory-efficiency

# static audit
"$SKILL_DIR/scripts/audit.sh" /path/to/android/project

# on-device: impose a 256 MB limit and watch for a limiter kill
"$SKILL_DIR/scripts/simulate_limit.sh" com.example.app 256

About

A portable AI agent skill that audits and fixes an Android app's memory usage so it survives the per-app memory limits enforced starting in Android 17

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages