# godot-game-loop-time-trial

godot-game-loop-time-trial is a Claude Code skill for Godot 4 racing trials, with ordered checkpoint validation, lap timing, and ghost playback.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 294 installs · ★ 983 repo stars
- 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-game-loop-time-trial/SKILL.md
- Updated: 2026-10-16
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/godot-game-loop-time-trial

## What it does

This skill supplies battle-tested structures for Godot 4 time trials and speedrun mechanics. Central to the setup is a sequence-validating `TimeTrialManager` that registers checkpoint overlaps within physics processing. It stops shortcut cheating by demanding that triggers fire in strict numerical order.

Ghost telemetry captures positions alongside Quaternion rotations at a fixed tick rate. The replayer mixes linear position interpolation with `Quaternion.slerp` for smooth visual steering. Euler interpolation is deliberately avoided to prevent gimbal lock artifacts during playback.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

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

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-game-loop-time-trial -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-game-loop-time-trial -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install thedivergentai/Game-Dev-Agentic-Skills skills/godot-game-loop-time-trial
```

2. **Manually: put the files in place**
- File: `.github/skills/godot-game-loop-time-trial/SKILL.md`

### Gemini CLI

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

2. **Platform CLI**
```bash
gemini skills install https://github.com/thedivergentai/Game-Dev-Agentic-Skills --path skills/godot-game-loop-time-trial
```

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add thedivergentai/Game-Dev-Agentic-Skills --skill godot-game-loop-time-trial -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-game-loop-time-trial/SKILL.md

## When to use it
- block track shortcuts by enforcing strict checkpoint sequences
- record and replay ghost runs smoothly via Quaternion slerp
- measure lap times with microsecond precision instead of coarse ticks
- store movement trajectories in PackedVector3Array to reduce garbage collection

## Example prompts
- Set up TimeTrialManager with checkpoint validation for my racing track in Godot 4
- Implement ghost recording and playback using ghost_recorder.gd and Quaternion slerp
- Format raw microsecond lap records into display strings for a leaderboard

## Similar
- [godot-tilemap](https://affpapa.org/en/nevibecode/skills/godot-tilemap.md) — skill · 11900 installs
- [godot-mcp](https://affpapa.org/en/nevibecode/mcp/sandraschi-godot-mcp.md) — MCP server · ★ 6 repo stars
- [game-godot-specialist](https://affpapa.org/en/nevibecode/skills/game-godot-specialist.md) — skill · ★ 57 repo stars
- [godot-ui-control](https://affpapa.org/en/nevibecode/skills/godot-ui-control.md) — skill · 13100 installs
- [scenario-godot-animation](https://affpapa.org/en/nevibecode/skills/scenario-godot-animation.md) — skill · 458 installs
- [scenario-godot-ui](https://affpapa.org/en/nevibecode/skills/scenario-godot-ui.md) — skill · 455 installs

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