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 ~/android-studio/. See memory-template.md for structure.
~/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
- Layout Inspector over print debugging for UI issues
- Profiler over manual timing for performance
- Database Inspector over manual queries
- Network Inspector over logging requests
4. Leverage Code Generation
- Live Templates for boilerplate (type abbreviation + Tab)
- File Templates for new components
- Generate menu (Cmd/Alt+N) for constructors, getters, overrides
5. Debugging Strategy
- Breakpoints with conditions for targeted debugging
- Evaluate Expression (Alt+F8) for runtime inspection
- Watches for tracking variables across frames
- Frame inspection to navigate call stack
Debugging Traps
- Setting breakpoints in hot loops → freezes IDE. Use conditional breakpoints.
- Debugging release builds → missing symbols. Debug with debug variant.
- Ignoring Logcat filters → drowning in logs. Filter by app package or tag.
- Not using "Attach Debugger" → missing app startup. Attach to running process.
Profiling Traps
- Profiling debug builds → misleading performance. Profile release builds.
- CPU Profiler without filtering → overwhelming data. Focus on specific methods.
- Memory Profiler heap dumps during GC → skewed results. Trigger GC first.
- Ignoring Network Profiler → missing slow API calls. Always check network timing.
Essential IDE Features
Layout Inspector
- Inspect live view hierarchy in running app
- 3D mode for seeing layer depth
- Attribute inspection for debugging constraints
- Works with Compose and View system
Database Inspector
- Query Room databases in real-time
- Edit values directly for testing
- Export data for analysis
- Requires API 26+ on device
Network Inspector
- Inspect OkHttp/Retrofit requests without code changes
- View request/response bodies
- Timeline for identifying slow calls
- Requires enabling in manifest for release
App Inspection
- Combined view of Database, Network, Background Tasks
- WorkManager task monitoring
- Background task scheduling 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
- File → Invalidate Caches / Restart for persistent issues
- Delete
.gradle and .idea folders as last resort
- Check Gradle JDK in Preferences → Build → Gradle
Build Variants
- Select variant in Build Variants panel
- Debug vs Release affects debugging capabilities
- Product flavors for different app configurations
SDK Manager
- Tools → SDK Manager for Android SDK updates
- Install platform tools matching target devices
- Keep build tools updated for latest features
Emulator Tips
- Cold Boot vs Quick Boot: use Quick Boot for speed
- Extended Controls (three dots) for sensors, location, battery
- Snapshots for saving specific device states
- Device mirroring for physical device control
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
Install with clawhub install <slug> if user confirms:
android — Android development patterns
kotlin — Kotlin language features
java — Java language patterns
Feedback
- If useful:
clawhub star android-studio
- Stay updated:
clawhub sync
1---
2name: android-studio
3slug: android-studio
4version: 1.0.0
5homepage: https://clawic.com/skills/android-studio
6description: Master Android Studio IDE with debugging, profiling, refactoring, and productivity shortcuts.
7metadata:
8 source: https://skillmd.com/skills/modbender/android-studio
9 clawdbot:
10 emoji: 🤖
11 requires:
12 bins: []
13 os:
14 - linux
15 - darwin
16 - win32
17changelog: Initial release with IDE workflows, debugging, profiling, and shortcuts.
18---
19
20## Setup
21
22On first use, read `setup.md` for integration guidelines.
23
24## When to Use
25
26User works with Android Studio IDE. Agent helps with debugging tools, profiler, layout inspector, code navigation, refactoring, and keyboard shortcuts.
27
28## Architecture
29
30Memory at `~/android-studio/`. See `memory-template.md` for structure.
31
32```
33~/android-studio/
34├── memory.md # Preferences and project context
35└── shortcuts.md # Custom shortcuts learned
36```
37
38## Quick Reference
39
40| Topic | File |
41|-------|------|
42| Setup process | `setup.md` |
43| Memory template | `memory-template.md` |
44| Shortcuts | `shortcuts.md` |
45| Debugging | `debugging.md` |
46
47## Core Rules
48
49### 1. Check IDE Version First
50Before suggesting features, confirm Android Studio version. Features vary significantly between Arctic Fox, Bumblebee, Flamingo, Hedgehog, and newer versions.
51
52### 2. Platform-Aware Shortcuts
53| Action | macOS | Windows/Linux |
54|--------|-------|---------------|
55| Search Everywhere | Double Shift | Double Shift |
56| Find Action | Cmd+Shift+A | Ctrl+Shift+A |
57| Recent Files | Cmd+E | Ctrl+E |
58| Navigate to Class | Cmd+O | Ctrl+N |
59| Navigate to File | Cmd+Shift+O | Ctrl+Shift+N |
60| Refactor This | Ctrl+T | Ctrl+Alt+Shift+T |
61| Run | Ctrl+R | Shift+F10 |
62| Debug | Ctrl+D | Shift+F9 |
63
64### 3. Use IDE Tools Over Manual Inspection
65- Layout Inspector over print debugging for UI issues
66- Profiler over manual timing for performance
67- Database Inspector over manual queries
68- Network Inspector over logging requests
69
70### 4. Leverage Code Generation
71- Live Templates for boilerplate (type abbreviation + Tab)
72- File Templates for new components
73- Generate menu (Cmd/Alt+N) for constructors, getters, overrides
74
75### 5. Debugging Strategy
761. Breakpoints with conditions for targeted debugging
772. Evaluate Expression (Alt+F8) for runtime inspection
783. Watches for tracking variables across frames
794. Frame inspection to navigate call stack
80
81## Debugging Traps
82
83- Setting breakpoints in hot loops → freezes IDE. Use conditional breakpoints.
84- Debugging release builds → missing symbols. Debug with debug variant.
85- Ignoring Logcat filters → drowning in logs. Filter by app package or tag.
86- Not using "Attach Debugger" → missing app startup. Attach to running process.
87
88## Profiling Traps
89
90- Profiling debug builds → misleading performance. Profile release builds.
91- CPU Profiler without filtering → overwhelming data. Focus on specific methods.
92- Memory Profiler heap dumps during GC → skewed results. Trigger GC first.
93- Ignoring Network Profiler → missing slow API calls. Always check network timing.
94
95## Essential IDE Features
96
97### Layout Inspector
98- Inspect live view hierarchy in running app
99- 3D mode for seeing layer depth
100- Attribute inspection for debugging constraints
101- Works with Compose and View system
102
103### Database Inspector
104- Query Room databases in real-time
105- Edit values directly for testing
106- Export data for analysis
107- Requires API 26+ on device
108
109### Network Inspector
110- Inspect OkHttp/Retrofit requests without code changes
111- View request/response bodies
112- Timeline for identifying slow calls
113- Requires enabling in manifest for release
114
115### App Inspection
116- Combined view of Database, Network, Background Tasks
117- WorkManager task monitoring
118- Background task scheduling inspection
119
120### Profiler Tools
121| Tool | Use Case |
122|------|----------|
123| CPU Profiler | Method timing, thread analysis |
124| Memory Profiler | Leaks, allocation tracking |
125| Energy Profiler | Battery usage patterns |
126| Network Profiler | Request timing, payload size |
127
128## Refactoring Shortcuts
129
130| Refactoring | macOS | Windows/Linux |
131|-------------|-------|---------------|
132| Rename | Shift+F6 | Shift+F6 |
133| Extract Method | Cmd+Alt+M | Ctrl+Alt+M |
134| Extract Variable | Cmd+Alt+V | Ctrl+Alt+V |
135| Extract Constant | Cmd+Alt+C | Ctrl+Alt+C |
136| Inline | Cmd+Alt+N | Ctrl+Alt+N |
137| Move | F6 | F6 |
138| Change Signature | Cmd+F6 | Ctrl+F6 |
139
140## Build Configuration
141
142### Gradle Sync Issues
143- File → Invalidate Caches / Restart for persistent issues
144- Delete `.gradle` and `.idea` folders as last resort
145- Check Gradle JDK in Preferences → Build → Gradle
146
147### Build Variants
148- Select variant in Build Variants panel
149- Debug vs Release affects debugging capabilities
150- Product flavors for different app configurations
151
152### SDK Manager
153- Tools → SDK Manager for Android SDK updates
154- Install platform tools matching target devices
155- Keep build tools updated for latest features
156
157## Emulator Tips
158
159- Cold Boot vs Quick Boot: use Quick Boot for speed
160- Extended Controls (three dots) for sensors, location, battery
161- Snapshots for saving specific device states
162- Device mirroring for physical device control
163
164## Plugin Recommendations
165
166| Plugin | Purpose |
167|--------|---------|
168| Key Promoter X | Learn shortcuts |
169| Rainbow Brackets | Bracket matching |
170| ADB Idea | Quick ADB commands |
171| JSON To Kotlin Class | Data class generation |
172| Compose Color Preview | Color visualization |
173
174## Related Skills
175Install with `clawhub install <slug>` if user confirms:
176- `android` — Android development patterns
177- `kotlin` — Kotlin language features
178- `java` — Java language patterns
179
180## Feedback
181
182- If useful: `clawhub star android-studio`
183- Stay updated: `clawhub sync`