# godot-platform-desktop

A skill that walks your coding agent through window settings, key rebinding and Steam integration in Godot. Useful when your game ships on Windows, Linux or macOS.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 372 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-desktop/SKILL.md
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/skills/godot-platform-desktop

## What it does

The skill covers the desktop side of a Godot game: settings menus, window management, key rebinding, and store integration for Steam and Epic. It ships a set of scripts the agent reads before writing anything. Among them are `desktop_window_manager.gd` for DPI-aware multi-monitor positioning, `desktop_settings_persistent.gd` for `ConfigFile` persistence, `physical_input_rebinder.gd` for rebinds via `physical_keycode`, and `platform_sdk_wrapper.gd` for guarded Steamworks and Epic calls.

The order is fixed: window and DPI first, then settings, then rebinds, then close-request handling, and store SDK calls last. Settings and user data go to `user://` because `res://` is read-only in an exported build. Movement rebinds use `physical_keycode`, otherwise they break on AZERTY or Dvorak layouts. Steam and Epic calls sit behind an `Engine.has_singleton()` check so the game does not crash without the overlay installed.

Small traps matter too. On focus loss (Alt-Tab) the skill tells you to release held actions with `Input.action_release`, or the character keeps running after you come back. Before quitting, catch `NOTIFICATION_WM_CLOSE_REQUEST` and flush the `ConfigFile`. The skill targets Godot 4 and expects the agent to read the relevant script instead of improvising.

## 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-desktop -a claude-code
```

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

### Codex

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

2. **Manually: put the files in place**
- File: `.agents/skills/godot-platform-desktop/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-desktop -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/godot-platform-desktop/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-desktop
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/godot-platform-desktop/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-desktop -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-desktop/SKILL.md

## When to use it
- build a settings menu with resolution, window mode and volume
- rebind keys so WASD survives AZERTY and Dvorak layouts
- persist settings between launches under `user://`
- wire up Steamworks or Epic without crashing on builds that lack the SDK
- close the game on Alt+F4 without losing settings

## Example prompts
- Add a settings menu with resolution and window mode options, use the scripts from the godot-platform-desktop skill
- Set up input rebinding with physical_keycode so the layout does not break movement
- Wrap the Steam calls in Engine.has_singleton and add a stub for builds without the SDK

## Similar
- [spritecook-use-assets-in-godot](https://affpapa.org/en/nevibecode/skills/spritecook-use-assets-in-godot.md) — skill · 555 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-asset-generator](https://affpapa.org/en/nevibecode/skills/godot-asset-generator.md) — skill · 1000 installs
- [godot-mcp-enhanced](https://affpapa.org/en/nevibecode/mcp/godot-mcp-enhanced.md) — MCP server · ★ 103

From the same set: [thedivergentai/game-dev-agentic-skills](https://affpapa.org/en/nevibecode/by/thedivergentai/game-dev-agentic-skills.md) — 51 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
