# godot-platform-mobile

A skill that steers your coding agent through Godot's mobile side: touch input, screen cutouts, throttling and Android permissions.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 421 installs · ★ 893
- Author: thedivergentai
- License: LGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-platform-mobile/SKILL.md
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/skills/godot-platform-mobile

## What it does

This skill tells the agent how to handle the mobile half of a Godot project. It ships rules plus ready scripts: gesture recognition, safe-area insets via `DisplayServer`, a heat and battery monitor, Android runtime permissions, an in-app purchase boilerplate, haptic patterns, accelerometer and gravity fusion, VRAM optimisation.

The flow is decision-first. The agent walks a tree over control scheme, orientation and renderer, then loads only the scripts that match the branch. Gestures pull in `mobile_gesture_recognizer.gd`; adaptive orientation pulls in `orientation_layout_adaptor.gd` together with the `size_changed` signal.

The prohibitions carry more weight than the advice. Touch must not go through `InputEventMouseButton` — that path is unreliable on phones, so use `InputEventScreenTouch` and `InputEventScreenDrag`. Forward+ is a bad fit for phone GPUs; pick Mobile or Compatibility. Leaving ETC2/ASTC compression off ends in VRAM exhaustion and a crash. Android permissions are never granted for free: request them with `OS.request_permission()` at the moment the feature is used, not on cold boot, and confirm with `OS.get_granted_permissions()`. Big saves on the main thread trip ANR, so push disk I/O to background threads. If your project already has its own touch layer, these rules will fight it — check that two input handlers are not running at once.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-platform-mobile -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/godot-platform-mobile/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/godot-platform-mobile/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-platform-mobile -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/godot-platform-mobile/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-platform-mobile -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/godot-platform-mobile/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install thedivergentai/Game-Dev-Agentic-Skills godot-platform-mobile
```

2. **Manually: put the files in place**
- File: `.github/skills/godot-platform-mobile/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-platform-mobile -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-platform-mobile
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/godot-platform-mobile/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-platform-mobile -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/thedivergentai/Game-Dev-Agentic-Skills/tree/HEAD/skills/godot-platform-mobile/SKILL.md

## When to use it
- move controls from mouse events to multi-touch
- keep UI clear of the camera notch
- drop the frame rate while the app is backgrounded
- request Android permissions at the right moment
- turn on texture compression before shipping

## Example prompts
- Check my Godot mobile export against the godot-platform-mobile rules
- Add pinch-to-zoom using mobile_gesture_recognizer.gd
- Set up UI adaptation for notches and orientation changes

## Similar
- [build-mobile-threejs-games](https://affpapa.org/en/nevibecode/skills/build-mobile-threejs-games.md) — skill · 1300 installs
- [godot-gdscript](https://affpapa.org/en/nevibecode/skills/godot-gdscript.md) — skill · 6500 installs
- [godot-shaders](https://affpapa.org/en/nevibecode/skills/godot-shaders.md) — skill · 6500 installs
- [godot-ui](https://affpapa.org/en/nevibecode/skills/godot-ui.md) — skill · 2700 installs
- [godot-asset-generator](https://affpapa.org/en/nevibecode/skills/godot-asset-generator.md) — skill · 1000 installs
- [spritecook-use-assets-in-godot](https://affpapa.org/en/nevibecode/skills/spritecook-use-assets-in-godot.md) — skill · 555 installs

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 61 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
