← 返回 Skills 市场
ivangdavila

Android Studio

作者 Iván · GitHub ↗ · v1.0.1
linuxdarwinwin32 ✓ 安全检测通过
685
总下载
1
收藏
6
当前安装
2
版本数
在 OpenClaw 中安装
/install android-studio
功能描述
Master Android Studio IDE with debugging, profiling, refactoring, and productivity shortcuts.
使用说明 (SKILL.md)

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

  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

  • 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 \x3Cslug> 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
安全使用建议
This skill appears to do what it says: guide you in Android Studio and optionally save a small memory under ~/android-studio/ with preferences and learned shortcuts. Before enabling it, decide whether you want the agent to store project/pain-point details in that folder; avoid saving secrets (API keys, passwords) into the memory file. If you prefer, ask the agent to operate without persisting data or to show proposed memory contents before saving. Because it’s instruction-only, there’s no installer download risk, but review any files the agent creates in your home directory.
功能分析
Type: OpenClaw Skill Name: android-studio Version: 1.0.1 The OpenClaw AgentSkills bundle for Android Studio is benign. All files (SKILL.md, debugging.md, memory-template.md, setup.md, shortcuts.md) contain only documentation and instructions for an AI agent to assist with Android Studio usage. There are no signs of prompt injection attempts, data exfiltration, malicious execution, persistence mechanisms, or obfuscation. The agent's instructions are focused on understanding the user's environment and providing helpful information, with file system access limited to local context storage (`~/android-studio/`) and standard `clawhub` commands for skill management.
能力评估
Purpose & Capability
Name/description (Android Studio IDE help: debugging, profiling, shortcuts) align with the included instructions and supporting files. There are no unexpected binaries, cloud credentials, or unrelated dependencies requested.
Instruction Scope
SKILL.md and companion files only provide IDE guidance and agent behavior (confirm IDE version, platform-aware shortcuts, debugging/profiling workflows). The skill asks the agent to read/write a small memory area under ~/android-studio/ to store preferences and learned shortcuts — this is coherent for a personalization assistant but is a privacy-sensitive action that should be performed only with user consent.
Install Mechanism
No install spec and no code files — the skill is instruction-only, so nothing is downloaded or written by an installer. This minimizes install-time risk.
Credentials
The skill declares no required environment variables, credentials, or config paths beyond the intended ~/android-studio/ memory folder. Requested access is proportionate to its purpose (storing IDE preferences and learned shortcuts).
Persistence & Privilege
always is false and the skill is user-invocable (normal). It asks to create/use ~/android-studio/memory.md and shortcuts.md — allowed for a personal assistant, but this creates persistent local data. There is no indication it modifies other skills or system-wide configs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install android-studio
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /android-studio 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Initial release
v1.0.0
Initial release with IDE workflows, debugging, profiling, and shortcuts.
元数据
Slug android-studio
版本 1.0.1
许可证
累计安装 6
当前安装数 6
历史版本数 2
常见问题

Android Studio 是什么?

Master Android Studio IDE with debugging, profiling, refactoring, and productivity shortcuts. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 685 次。

如何安装 Android Studio?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install android-studio」即可一键安装,无需额外配置。

Android Studio 是免费的吗?

是的,Android Studio 完全免费(开源免费),可自由下载、安装和使用。

Android Studio 支持哪些平台?

Android Studio 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 Android Studio?

由 Iván(@ivangdavila)开发并维护,当前版本 v1.0.1。

💬 留言讨论