Android studio

From clawic/skills · View interactive version

Android studio is an AI agent skill from the GitHub repository clawic/skills. Work fast in Android Studio IDE with debugging, profiling, refactoring, and productivity shortcuts.

How to use this skill

Skill file

Setup

On first use, read setup.md for integration guidelines.

When to Use

User works with Android Studio IDE. Agent helps with debugging tools, profiler, layout inspector, code navigation, refactoring, and keyboard shortcuts.

Architecture

Memory at ~/Clawic/data/android-studio/. See memory-template.md for structure.

~/Clawic/data/android-studio/
├── memory.md      # Preferences and project context
└── shortcuts.md   # Custom shortcuts learned

Quick Reference

| Topic | File |

|-------|------|

| Setup process | setup.md |

| Memory template | memory-template.md |

| Shortcuts | shortcuts.md |

| Debugging | debugging.md |

Core Rules

1. Check IDE Version First

Before suggesting features, confirm Android Studio version. Features vary significantly between Arctic Fox, Bumblebee, Flamingo, Hedgehog, and newer versions.

2. Platform-Aware Shortcuts

| Action | macOS | Windows/Linux |

|--------|-------|---------------|

| Search Everywhere | Double Shift | Double Shift |

| Find Action | Cmd+Shift+A | Ctrl+Shift+A |

| Recent Files | Cmd+E | Ctrl+E |

| Navigate to Class | Cmd+O | Ctrl+N |

| Navigate to File | Cmd+Shift+O | Ctrl+Shift+N |

| Refactor This | Ctrl+T | Ctrl+Alt+Shift+T |

| Run | Ctrl+R | Shift+F10 |

| Debug | Ctrl+D | Shift+F9 |

3. Use IDE Tools Over Manual Inspection

4. Leverage Code Generation

5. Debugging Strategy

  1. Breakpoints with conditions for targeted debugging
  2. Evaluate Expression (Alt+F8) for runtime inspection
  3. Watches for tracking variables across frames
  4. Frame inspection to navigate call stack

Debugging Traps

Profiling Traps

Essential IDE Features

Layout Inspector

Database Inspector

Network Inspector

App Inspection

Profiler Tools

| Tool | Use Case |

|------|----------|

| CPU Profiler | Method timing, thread analysis |

| Memory Profiler | Leaks, allocation tracking |

| Energy Profiler | Battery usage patterns |

| Network Profiler | Request timing, payload size |

Refactoring Shortcuts

| Refactoring | macOS | Windows/Linux |

|-------------|-------|---------------|

| Rename | Shift+F6 | Shift+F6 |

| Extract Method | Cmd+Alt+M | Ctrl+Alt+M |

| Extract Variable | Cmd+Alt+V | Ctrl+Alt+V |

| Extract Constant | Cmd+Alt+C | Ctrl+Alt+C |

| Inline | Cmd+Alt+N | Ctrl+Alt+N |

| Move | F6 | F6 |

| Change Signature | Cmd+F6 | Ctrl+F6 |

Build Configuration

Gradle Sync Issues

Build Variants

SDK Manager

Emulator Tips

Plugin Recommendations

| Plugin | Purpose |

|--------|---------|

| Key Promoter X | Learn shortcuts |

| Rainbow Brackets | Bracket matching |

| ADB Idea | Quick ADB commands |

| JSON To Kotlin Class | Data class generation |

| Compose Color Preview | Color visualization |

Related Skills

More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):

Feedback

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.