roguelike
What it does
This skill guides building roguelikes where each run has a random dungeon and death ends the run. It is for developers making turn-based dungeon crawlers or roguelite games.
When to use it
- βWhen you are building a turn-based grid dungeon crawler with random levels.
- βWhen you want death to end the run and reset the world.
- βWhen you need field of view, fog of war, or loot tables for a dungeon game.
Skill link
https://github.com/gamedev-skills/awesome-gamedev-agent-skills/blob/main/skills/genres/roguelike/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βI want to build a turn-based roguelike where each run has a new random dungeon, I can only see nearby tiles, and death ends the run.β
5 new skills a week. 1 minute to read.
How it works
The agent builds a turn engine on a grid, generates the dungeon from a seed, and adds field of view so the player sees only what they can reach. It sets up permadeath and loot tables, and keeps all actions in one mode.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Roguelike
A playbook for roguelikes β the turn engine, procedural dungeons, field-of-view, permadeath, and run economy. This is a compositional skill: it orchestrates procedural generation, tilemaps, save handling, and AI into a run-based game. It does not re-teach noise/RNG or tilemap APIs; it defines the loop and the systems that make a run compelling.
When to use
- Use when building a turn-based, grid-based dungeon crawler where each death ends the run and the world is regenerated β a roguelike or "roguelite" (with meta-progression).
- Use when designing procedural dungeons, FOV/fog-of-war, permadeath stakes, or loot tables.
When not to use: real-time action with roguelike dressing β build the action genre
(platformer/fps-shooter) and layer procedural-gen. Deep stats/quests/dialogue without
permadeath β rpg. Open-world needs/crafting β survival-crafting.
What makes it a roguelike (design anchor)
The community reference is the Berlin Interpretation (RogueBasin, IRDC 2008): a set of "roguelikeness" factors, not a checklist. The high-value ones are the design targets: random environment generation, permadeath, turn-based, grid-based, non-modal (all actions in one mode), complexity (many item/monster interactions), resource management, hack-and-slash, and exploration & discovery. Lean into these to feel roguelike; pick which to keep deliberately. "Roguelite" usually relaxes permadeath with meta-progression.
Core loop
Take a turn (move / fight / use) β the world resolves its turn β see new state β descend / loot / survive β die and restart with a fresh dungeon. Replayability comes from the world changing each run, not the player memorizing a fixed layout.
Must-have systems
- Turn scheduler β energy/initiative system so fast actors act more often (Pattern 2).
- Grid map + movement β tile coordinates; bump-to-attack; blocked/walkable queries.
- Procedural dungeon generator β rooms + corridors, or BSP/cellular; guarantee connectivity.
- Field of view + explored memory β what's visible now vs. seen-before (Pattern 3 / refs).
- Combat + entities β HP, attack/defense, status; monsters obey the same rules as the player.
- Loot + drop tables β weighted, depth-scaled item/monster spawning (refs).
- Permadeath + (optional) meta-progression β wipe the run; persist only unlocks/score.
- Message log + clear UI β the player reasons from text/state; surface numbers and events.
Design knobs
| Knob | Effect | Notes |
|---|---|---|
| Dungeon size / room count | run length, density | Scale with depth. |
| Connectivity guarantee | no unreachable rooms | Always verify reachability after generation. |
| Monster density / depth curve | difficulty ramp | Spawn by depth-weighted table. |
| Loot rarity weights | power variance | Rarer = bigger swing; identify adds discovery. |
| FOV radius / lighting | tension, information | Smaller radius = scarier, slower. |
| Resource scarcity (food/HP/ammo) | pressure to descend | Core tension lever in classic RLs. |
| Permadeath vs meta-progression | run stakes vs. retention | Roguelite softens the wall. |
| Identification / unknowns | exploration value | Unidentified items reward experimentation. |
| Seedable RNG | daily runs, debugging | Always allow a fixed seed (see procedural-gen). |
Patterns
1. Deterministic, seedable run RNG
# Pseudocode. One seeded RNG per run makes dungeons reproducible (daily runs, bug repro).
run_seed = chosen_seed or random_seed()
rng = Rng(run_seed) # use your engine's seedable RNG, not global random
dungeon = generate_dungeon(rng, depth) # same seed + depth => same dungeon
# Persist run_seed in the save so a crash can resume the same world (see save-systems).
2. Energy-based turn scheduler (speeds differ)
# Pseudocode. Actors gain energy each tick and act when they have enough.
# Faster actors gain more per tick, so they act more often β no fixed "player then enemies".
TURN_COST = 100
def next_actor(actors):
while True:
for a in actors: # 1) serve anyone already ready, in a stable order
if a.energy >= TURN_COST:
a.energy -= TURN_COST # (or the cost of the action they choose)
return a # this actor takes exactly one action now
for a in actors: # 2) nobody is rea
FAQ
What is the Berlin Interpretation?
It is a community set of traits that define roguelikes, and the skill uses them as design goals.
Does it cover meta-progression?
Yes. It covers roguelite meta-progression as an option on top of permadeath.
Does it generate dungeons itself?
Dungeon generation is handled by the procedural generation skill, which this one uses.
Details
Original description by the author
Build a roguelike: turn-based grid movement, procedural dungeons, permadeath, field-of-view, and loot tables. Use for a roguelike/roguelite or turn-based grid dungeon crawler with procedural levels.
Popularity
- GitHub stars
- 6.6k
- Ranking position
- #13811
- License
- Apache-2.0
- Updated
- 10/28/2026
Comments
- β¦
More skills from this repository
router
6.6kHelps your agent pick the right game development skill for a request by detecting your engine and the kind of task you need.
ai-behavior-trees-utility-ai
6.6kHelps your agent build a behavior tree and utility AI system for game enemies and characters that choose actions by priority and score.
audio-design
6.6kTeaches your agent game audio mixing: buses, decibel volume, ducking under dialogue, adaptive music and sound effect variation.
camera-systems
6.6kHelps your agent build game cameras that follow smoothly, stay inside the level, and orbit or look around in 3D.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.