mobile-compaction

Compact Android codebase context by module, layer, variant, or test scope.

61|17|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/ahmed3elshaer/everything-claude-code-mobile --skill mobile-compaction
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mobile-compaction
Source: https://github.com/ahmed3elshaer/everything-claude-code-mobile/tree/main/skills/mobile-compaction
Command: npx skills add https://github.com/ahmed3elshaer/everything-claude-code-mobile --skill mobile-compaction

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Large Android projects accumulate context and quickly exhaust tokens when exploring, refactoring, and maintaining codebases. This skill provides structured context compaction to keep essential information available while reducing noise.

Core Features & Use Cases

  • Module-Level Compaction: Focus on a single Android module, retaining its files and summarizing others.
  • Layer-Based Compaction: Target architecture layers (UI, Data, Domain) with selective retention and summarization.
  • Build Variant & Test Isolation: Narrow context around specific build variants or failing tests.
  • Pattern-Based & Workflow-Driven: Apply compaction by architecture patterns or ongoing tasks.
  • Use cases include deep feature refactors, cross-cutting architectural work, and large-scale debugging sessions.

Quick Start

Start by selecting a scope such as /compact --module=feature:auth or /compact --layer=ui to begin reducing context.

Frequently Asked Questions about mobile-compaction

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce token usage when working with large Android codebases?

Context compaction strategically summarizes less critical code while preserving essential context, reducing token consumption without losing task-critical information. Use scoped commands like /compact --module=feature:auth to focus on specific areas of your Android project.

Can I compact context around specific Android modules or architecture layers?

Yes, context compaction supports module-level isolation and layer-based targeting. Narrow your scope to UI, Data, or Domain layers, or focus on a single module to retain only relevant files while summarizing the rest.

How do I manage context during large Android refactors and architectural changes?

Define clear compaction scopes and preservation rules before starting. Use layer-based or module-focused workflows to keep essential architecture visible while reducing noise from unrelated code, enabling sustained work across complex refactors.

What's the best way to compact context for debugging failing tests in Android?

Build variant and test isolation narrows context around specific test failures. Apply variant-focused compaction to exclude unrelated build configurations and test code, keeping your debugging context lean and focused.

When should I use context compaction instead of manual code review?

Compaction is essential when token limits threaten your workflow—particularly during deep refactors, cross-cutting changes, or extended debugging. Use it to preserve focus when exploring large codebases where full context exhausts available tokens.

Does context compaction work with Android build variants and test suites?

Yes, the skill supports build variant and test-focused workflows, allowing you to isolate context around specific variants or failing tests while summarizing configuration and test code outside your scope.