Chat, Agent Mode, code completions, slash commands, MCP servers, and AGENTS.md across the modern Gemini-in-Android-Studio surface. Use when developing Android apps with gemini in android studio.
Scanned 9/8/2026
Install to Claude Code
npx -y skills add anubhavg-icpl/vibe --skill gemini-in-android-studio-expert --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Gemini In Android Studio Expert?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/anubhavg-icpl-gemini-in-android-studio-expert)More formats (shields.io, HTML) on the badges page.
---
name: gemini-in-android-studio-expert
description: Chat, Agent Mode, code completions, slash commands, MCP servers, and AGENTS.md across the modern Gemini-in-Android-Studio surface. Use when developing Android apps with gemini in android studio.
license: CC-BY-NC-SA-4.0
metadata:
risk: unknown
source: community
kind: mode
category: android-platform
tags: [android, android-studio, gemini, agent-mode, mcp, ai-coding-assistant]
---
# Gemini in Android Studio Expert Mode
You are an expert in driving Gemini inside Android Studio — both the chat sidebar and Agent Mode, the multi-step autonomous workflow that plans, edits, builds, and tests across many files. You know the slash command set, how to wire MCP servers, when to author skills, and how an `AGENTS.md` differs from a `.skills/` directory.
## Core Capabilities
- Gemini chat for code Q&A, generation, refactoring, unit-test scaffolding
- Agent Mode for multi-stage tasks (multi-file edits, build-fix loops, on-device verification)
- Built-in slash commands and custom commands (`.gemini/commands.json`)
- MCP (Model Context Protocol) server configuration
- Skill authoring under `.skills/` and `.agent/skills/`
- `AGENTS.md` for persistent project guidance
- Permissions, auto-approve, and safe tool use
- Connecting to remote MCP services (Figma, Notion, Linear, Canva, etc.)
## Modern Approach
### Chat vs Agent Mode
- **Chat**: synchronous Q&A with optional file attachments. Best for "explain this code", "convert this Java to Kotlin", "write a unit test for this function".
- **Agent Mode**: long-running, multi-step. The agent plans, requests permission to use tools (file read/write, search, build, run, deploy, MCP), executes, observes the result, and iterates. Best for "fix all the broken builds in this branch", "migrate this module from Views to Compose", "add a settings screen with a toggle persisted via DataStore".
Open Agent Mode by clicking the **Gemini** tool window > **Agent** tab.
### Slash commands
Built-in commands in agent mode include:
- `/tools` — list tools available to the current agent session
- `/mcp` — list configured MCP servers, connection state, and exposed tools
- `/help` — built-in command reference
Custom commands live in `.gemini/commands.json`:
```json
{
"commands": [
{
"name": "review-pr",
"description": "Review staged changes against our internal standards",
"prompt": "Review the staged diff for: (1) Compose stability issues, (2) missing instrumentation tests, (3) public API surface changes. Output as a checklist."
}
]
}
```
Invoke as `/review-pr` in chat or agent mode.
### MCP servers
Configure under **File > Settings > Tools > AI > MCP Servers** (or **Android Studio > Settings** on macOS). Enable MCP, then add servers — local stdio servers or remote HTTP servers. Configuration is persisted in an `mcp.json` file in Android Studio's config directory.
```json
{
"mcpServers": {
"figma": { "url": "https://mcp.figma.com" },
"internal-issues": { "command": "node", "args": ["./tools/issues-mcp.js"] }
}
}
```
Once connected, Agent Mode automatically lists those tools to the model and can call them on demand.
### Skills (project-local agent expertise)
Skills are **on-demand expertise** that the model loads only when relevant. Unlike `AGENTS.md` (always-on context), a skill is autonomously selected based on its description.
Layout:
```
project-root/
├── .skills/
│ └── migrate-to-compose-bom/
│ ├── SKILL.md
│ ├── scripts/
│ └── references/
└── .agent/skills/
└── ...
```
`SKILL.md`:
```yaml
---
name: migrate-to-compose-bom
description: Migrate a module from explicit Compose artifact versions to the Compose BOM. Trigger when the user asks about Compose version alignment.
metadata:
author: example-org
version: "1.0"
---
# Steps
1. Read the module's build.gradle.kts.
2. Replace explicit androidx.compose:* versions with `platform("androidx.compose:compose-bom:2026.04.01")`.
3. Run `./gradlew :module:dependencies` to verify alignment.
```
Format limits: name ≤ 64 chars (lowercase-hyphen-numbers), description ≤ 1024 chars, body ~10–20k chars.
You can also invoke a skill explicitly with `@skill-name` in the input box.
### AGENTS.md (persistent project context)
Place at the repo root. Used as system-prompt-like context every Agent Mode session. Document architectural conventions, coding standards, "do not touch X", build commands, and where the source of truth lives. It complements skills — skills handle on-demand workflows, AGENTS.md handles permanent guidance.
### Auto-approve and permissions
Under **Agent options**, enable **Auto-approve changes** for trusted workflows. The agent will still prompt for sensitive tools (shell exec, network calls). Manage tool-level permissions via **Settings > Tools > AI > Agent Permissions**.
## Common Pitfalls
- **Forgetting `AGENTS.md`**: the agent re-discovers project conventions every session and will produce off-pattern code.
- **Skills with vague descriptions**: the model won't pick them up. Treat the description as a tool-selection prompt — write it crisply.
- **Skills > 20k chars**: they exceed budget. Break large skills into multiple focused skills, or move detail into `references/` files that the skill instructs the agent to read on demand.
- **Granting `auto-approve` blindly**: agent can rewrite many files at once. Use it only on isolated branches.
- **Confusing remote MCP URL with stdio**: remote MCP requires the server to expose HTTP; local tools must be invoked via `command`/`args`.
- **Custom slash command body too long**: keep prompts focused; long prompts dilute the model's attention.
- **Editing `mcp.json` while Studio is running**: re-open the MCP settings panel or restart Studio for changes to take effect.
## Compatibility Notes
- Agent Mode requires the current generally-available Gemini in Android Studio (Otter / Panda feature drops, 2026).
- API key vs Studio sign-in: most users authenticate via Google account; an explicit API key is supported under **Settings > Tools > AI > Add an API key** for BYO-key workflows.
- Skills follow the [Agent Skills](https://agentskills.io/) open standard, so the same skill directory works across compatible agent runtimes.
- MCP is the same protocol Anthropic and others ship — your existing servers work in Studio.
## When to Use This Mode
Use this when onboarding a team to Agent Mode, designing a `.skills/` layout for a large repo, deciding what belongs in `AGENTS.md` vs a skill, wiring up an MCP server (internal Jira/Figma/Linear), or debugging "why doesn't the agent pick up my skill?". Pair with `android-agent-skills-expert-mode` for deep skill authoring and the broader Android skills repository.
## Sources
- [About Gemini in Android Studio](https://developer.android.com/studio/gemini/overview)
- [Agent Mode | Android Studio](https://developer.android.com/studio/gemini/agent-mode)
- [Extend Agent Mode with skills](https://developer.android.com/studio/gemini/skills)
- [Add an MCP server](https://developer.android.com/studio/gemini/add-mcp-server)
- [Chat with Gemini](https://developer.android.com/studio/gemini/chat)
- [LLM flexibility, Agent Mode improvements, and new agentic experiences in Android Studio Otter 3 Feature Drop](https://android-developers.googleblog.com/2026/01/llm-flexibility-agent-mode-improvements.html)
- [Increase Guidance and Control over Agent Mode with Android Studio Panda 3](https://android-developers.googleblog.com/2026/04/Increase-Guidance-and-Control-over-Agent-Mode-with-Android-Studio-Panda-3.html)
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!