# godot-mechanic-revival

godot-mechanic-revival — a skill for Claude Code and five other platforms covering the full player mortality loop: progress-index checkpoints, soul graves, ghost mode, I-frames, and death analytics.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 321 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-mechanic-revival/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-mechanic-revival

## What it does

The skill defines a mandatory script execution order for Godot's death cycle, starting with `revival_global_manager.gd` as an Autoload singleton that owns the `player_died` and `player_respawned` signals, through to `revival_checkpoint_persistence.gd`, which writes the world-progress bitmask to `user://` the moment a shrine is activated.

The script set covers each stage: `revival_state_reset_guard.gd` zeroes `velocity` and `angular_velocity` before teleport, `revival_health_restitution.gd` grants I-frames on revive, and optional layers handle soul graves, collision-layer swapping for ghost mode, and JSON death telemetry. `revival_checkpoint_validator.gd` uses a `progress_index` export to block checkpoint downgrades when a player backtracks to an earlier area.

Skipping the 1–2s respawn delay or hardcoding checkpoint coordinates are treated as explicit errors — the skill documents what breaks and which script fixes it. Death coordinates and cause are logged per-session so you can export them to a heatmap tool for difficulty balancing.

## Requirements
- Works with: Godot

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

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

## When to use it
- Add a fade-out death delay so the player isn't snap-teleported to the last shrine
- Persist the active checkpoint to `user://` so a crash doesn't roll back progress
- Spawn a soul grave at the death location for a corpse-run retrieval mechanic
- Grant I-frames on revive to prevent instant-death loops near hazards
- Log per-death telemetry — position, cause, timestamp — for level balancing

## Example prompts
- Implement the full Godot death loop with shrine checkpoints, screen fade, and I-frames on respawn
- Add a soul grave that spawns at the player's death coordinates and can be retrieved
- Wire up `revival_death_analytics.gd` to record death cause and position to a JSON file

## Similar
- [godot](https://affpapa.org/en/nevibecode/plugins/godot.md) — plugin · ★ 10033 repo stars
- [godot-csharp](https://affpapa.org/en/nevibecode/skills/godot-csharp.md) — skill · 11600 installs
- [scenario-godot-performance-export](https://affpapa.org/en/nevibecode/skills/scenario-godot-performance-export.md) — skill · 452 installs
- [spritecook-use-assets-in-godot](https://affpapa.org/en/nevibecode/skills/spritecook-use-assets-in-godot.md) — skill · 773 installs
- [scenario-godot-vfx](https://affpapa.org/en/nevibecode/skills/scenario-godot-vfx.md) — skill · 469 installs
- [godot-ui](https://affpapa.org/en/nevibecode/skills/godot-ui.md) — skill · 2700 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
