[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79N9C6XGP2A0YPRRJBFDDJQ":3,"skill-same:01M79N9C6XGP2A0YPRRJBFDDJQ":56},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":30,"commitSha":31,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M79N9C6XGP2A0YPRRJBFDDJQ","roguelike",null,"Build a roguelike: turn-based grid movement, procedural dungeons, permadeath, field-of-view, and loot tables. Use for a roguelike\u002Froguelite or turn-based grid dungeon crawler with procedural levels.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Froguelike\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: roguelike\ndescription: >\n  Build a roguelike: turn-based grid movement, procedural dungeons, permadeath, field-of-view,\n  and loot tables. Use for a roguelike\u002Froguelite or turn-based grid dungeon crawler with procedural levels.\nlicense: Apache-2.0\ncompatibility: Engine-agnostic design patterns; snippets are pseudocode (port to your engine)\nmetadata:\n  engine: none\n  category: genres\n  difficulty: advanced\n---\n\n# Roguelike\n\nA playbook for roguelikes — the turn engine, procedural dungeons, field-of-view, permadeath,\nand run economy. This is a **compositional** skill: it orchestrates procedural generation,\ntilemaps, save handling, and AI into a run-based game. It does not re-teach noise\u002FRNG or\ntilemap APIs; it defines the loop and the systems that make a *run* compelling.\n\n## When to use\n\n- Use when building a **turn-based, grid-based** dungeon crawler where each death ends the\n  run and the world is regenerated — a roguelike or \"roguelite\" (with meta-progression).\n- Use when designing procedural dungeons, FOV\u002Ffog-of-war, permadeath stakes, or loot tables.\n\n**When *not* to use:** real-time action with roguelike *dressing* → build the action genre\n(`platformer`\u002F`fps-shooter`) and layer `procedural-gen`. Deep stats\u002Fquests\u002Fdialogue without\npermadeath → `rpg`. Open-world needs\u002Fcrafting → `survival-crafting`.\n\n## What makes it a roguelike (design anchor)\n\nThe community reference is the **Berlin Interpretation** (RogueBasin, IRDC 2008): a set of\n\"roguelikeness\" factors, not a checklist. The high-value ones are the design targets:\n**random environment generation, permadeath, turn-based, grid-based, non-modal** (all actions\nin one mode), **complexity** (many item\u002Fmonster interactions), **resource management**,\n**hack-and-slash**, and **exploration & discovery**. Lean into these to feel roguelike; pick\nwhich to keep deliberately. \"Roguelite\" usually relaxes permadeath with meta-progression.\n\n## Core loop\n\n**Take a turn (move \u002F fight \u002F use) → the world resolves its turn → see new state → descend \u002F\nloot \u002F survive → die and restart with a fresh dungeon.** Replayability comes from the *world*\nchanging each run, not the player memorizing a fixed layout.\n\n## Must-have systems\n\n1. **Turn scheduler** — energy\u002Finitiative system so fast actors act more often (Pattern 2).\n2. **Grid map + movement** — tile coordinates; bump-to-attack; blocked\u002Fwalkable queries.\n3. **Procedural dungeon generator** — rooms + corridors, or BSP\u002Fcellular; guarantee connectivity.\n4. **Field of view + explored memory** — what's visible now vs. seen-before (Pattern 3 \u002F refs).\n5. **Combat + entities** — HP, attack\u002Fdefense, status; monsters obey the same rules as the player.\n6. **Loot + drop tables** — weighted, depth-scaled item\u002Fmonster spawning (refs).\n7. **Permadeath + (optional) meta-progression** — wipe the run; persist only unlocks\u002Fscore.\n8. **Message log + clear UI** — the player reasons from text\u002Fstate; surface numbers and events.\n\n## Design knobs\n\n| Knob | Effect | Notes |\n|------|--------|-------|\n| Dungeon size \u002F room count | run length, density | Scale with depth. |\n| Connectivity guarantee | no unreachable rooms | Always verify reachability after generation. |\n| Monster density \u002F depth curve | difficulty ramp | Spawn by depth-weighted table. |\n| Loot rarity weights | power variance | Rarer = bigger swing; identify adds discovery. |\n| FOV radius \u002F lighting | tension, information | Smaller radius = scarier, slower. |\n| Resource scarcity (food\u002FHP\u002Fammo) | pressure to descend | Core tension lever in classic RLs. |\n| Permadeath vs meta-progression | run stakes vs. retention | Roguelite softens the wall. |\n| Identification \u002F unknowns | exploration value | Unidentified items reward experimentation. |\n| Seedable RNG | daily runs, debugging | Always allow a fixed seed (see `procedural-gen`). |\n\n## Patterns\n\n### 1. Deterministic, seedable run RNG\n\n```python\n# Pseudocode. One seeded RNG per run makes dungeons reproducible (daily runs, bug repro).\nrun_seed = chosen_seed or random_seed()\nrng = Rng(run_seed)                 # use your engine's seedable RNG, not global random\ndungeon = generate_dungeon(rng, depth)   # same seed + depth => same dungeon\n# Persist run_seed in the save so a crash can resume the same world (see save-systems).\n```\n\n### 2. Energy-based turn scheduler (speeds differ)\n\n```python\n# Pseudocode. Each actor gains energy each tick and acts when it has enough.\n# Faster actors gain more per tick, so they act more often — no fixed \"player then enemies\".\nTURN_COST = 100\ndef next_actor(actors):\n    while True:\n        for a in actors:                 # stable order avoids ties favoring one side\n            a.energy += a.speed          # e.g. speed 100 = normal, 150 = hasted\n            if a.energy >= TURN_COST:\n                a.energy -= TURN_COST\n                return a                 # this actor takes exactly one action now\n```\n\n### 3. Field of view + explored memory\n\n```python\n# Pseudocode. Recompute visibility from the player each time they move.\nvisible = compute_fov(map, player.pos, radius=8)   # symmetric shadowcasting (see refs)\nfor cell in visible:\n    explored.add(cell)                  # remember it forever (dim \"fog of war\")\n# Render: visible -> lit; explored-but-not-visible -> dim; never-seen -> hidden.\n```\n\nUse a proven FOV algorithm (recursive shadowcasting or symmetric shadowcasting). Do not\nroll a naive raycast-per-cell — it produces asymmetric, \"blinking\" vision. See refs.\n\n## Pitfalls \u002F failure modes\n\n- **Disconnected dungeons** → rooms the player can't reach. Always run a connectivity\u002Fflood-fill\n  pass and carve corridors until every walkable cell is reachable.\n- **Naive FOV** → vision that flickers or is asymmetric (you see them, they don't see you).\n  Use shadowcasting; test symmetry.\n- **Real-time loop pretending to be turn-based** → input races and double-moves. Resolve one\n  discrete turn at a time; queue input.\n- **Flat difficulty** → no descent pressure. Scale monsters\u002Floot by depth and keep resources scarce.\n- **Permadeath that wipes meta-unlocks** → frustration. Separate *run* state (wiped) from\n  *profile* state (unlocks, scores) when saving (see `save-systems`).\n- **Save-scumming a \"permadeath\" game** → delete or invalidate the run save on load if you want\n  true permadeath; keep only the profile.\n- **Unreadable state** → the player can't plan. Show HP, turn results, and a message log.\n\n## Composition (build it from these skills)\n\n- **Generation:** `procedural-gen` (noise, seeded RNG, dungeon\u002Froom algorithms) — the engine of replayability.\n- **Map rendering:** `godot-tilemap` \u002F `unity-tilemap-2d` for the grid; `level-design` for set-piece rooms\u002Fvaults.\n- **Enemies:** `game-ai` for monster decision-making (often simple on a grid: seek\u002Fflee\u002Fpatrol).\n- **Persistence:** `save-systems` for run-resume, profile\u002Fmeta-progression, and true permadeath wipes.\n- **Scripting\u002Fdata:** `godot-resources` \u002F `unity-scriptableobjects` to define items, monsters, and drop tables as data.\n- **UI:** `godot-ui-control` for the message log, inventory, and HUD.\n- **Feel:** `game-feel` for hit\u002Fdeath juice — screen shake and hit-stop that sell impacts on a turn-based grid.\n\n## References\n\n- For dungeon-generation algorithms (rooms-and-corridors, BSP, cellular automata, connectivity),\n  FOV (shadowcasting), and weighted loot\u002Fspawn tables, read `references\u002Fgeneration-fov-loot.md`.\n","# Roguelike\n\nA playbook for roguelikes — the turn engine, procedural dungeons, field-of-view, permadeath,\nand run economy. This is a **compositional** skill: it orchestrates procedural generation,\ntilemaps, save handling, and AI into a run-based game. It does not re-teach noise\u002FRNG or\ntilemap APIs; it defines the loop and the systems that make a *run* compelling.\n\n## When to use\n\n- Use when building a **turn-based, grid-based** dungeon crawler where each death ends the\n  run and the world is regenerated — a roguelike or \"roguelite\" (with meta-progression).\n- Use when designing procedural dungeons, FOV\u002Ffog-of-war, permadeath stakes, or loot tables.\n\n**When *not* to use:** real-time action with roguelike *dressing* → build the action genre\n(`platformer`\u002F`fps-shooter`) and layer `procedural-gen`. Deep stats\u002Fquests\u002Fdialogue without\npermadeath → `rpg`. Open-world needs\u002Fcrafting → `survival-crafting`.\n\n## What makes it a roguelike (design anchor)\n\nThe community reference is the **Berlin Interpretation** (RogueBasin, IRDC 2008): a set of\n\"roguelikeness\" factors, not a checklist. The high-value ones are the design targets:\n**random environment generation, permadeath, turn-based, grid-based, non-modal** (all actions\nin one mode), **complexity** (many item\u002Fmonster interactions), **resource management**,\n**hack-and-slash**, and **exploration & discovery**. Lean into these to feel roguelike; pick\nwhich to keep deliberately. \"Roguelite\" usually relaxes permadeath with meta-progression.\n\n## Core loop\n\n**Take a turn (move \u002F fight \u002F use) → the world resolves its turn → see new state → descend \u002F\nloot \u002F survive → die and restart with a fresh dungeon.** Replayability comes from the *world*\nchanging each run, not the player memorizing a fixed layout.\n\n## Must-have systems\n\n1. **Turn scheduler** — energy\u002Finitiative system so fast actors act more often (Pattern 2).\n2. **Grid map + movement** — tile coordinates; bump-to-attack; blocked\u002Fwalkable queries.\n3. **Procedural dungeon generator** — rooms + corridors, or BSP\u002Fcellular; guarantee connectivity.\n4. **Field of view + explored memory** — what's visible now vs. seen-before (Pattern 3 \u002F refs).\n5. **Combat + entities** — HP, attack\u002Fdefense, status; monsters obey the same rules as the player.\n6. **Loot + drop tables** — weighted, depth-scaled item\u002Fmonster spawning (refs).\n7. **Permadeath + (optional) meta-progression** — wipe the run; persist only unlocks\u002Fscore.\n8. **Message log + clear UI** — the player reasons from text\u002Fstate; surface numbers and events.\n\n## Design knobs\n\n| Knob | Effect | Notes |\n|------|--------|-------|\n| Dungeon size \u002F room count | run length, density | Scale with depth. |\n| Connectivity guarantee | no unreachable rooms | Always verify reachability after generation. |\n| Monster density \u002F depth curve | difficulty ramp | Spawn by depth-weighted table. |\n| Loot rarity weights | power variance | Rarer = bigger swing; identify adds discovery. |\n| FOV radius \u002F lighting | tension, information | Smaller radius = scarier, slower. |\n| Resource scarcity (food\u002FHP\u002Fammo) | pressure to descend | Core tension lever in classic RLs. |\n| Permadeath vs meta-progression | run stakes vs. retention | Roguelite softens the wall. |\n| Identification \u002F unknowns | exploration value | Unidentified items reward experimentation. |\n| Seedable RNG | daily runs, debugging | Always allow a fixed seed (see `procedural-gen`). |\n\n## Patterns\n\n### 1. Deterministic, seedable run RNG\n\n```python\n# Pseudocode. One seeded RNG per run makes dungeons reproducible (daily runs, bug repro).\nrun_seed = chosen_seed or random_seed()\nrng = Rng(run_seed)                 # use your engine's seedable RNG, not global random\ndungeon = generate_dungeon(rng, depth)   # same seed + depth => same dungeon\n# Persist run_seed in the save so a crash can resume the same world (see save-systems).\n```\n\n### 2. Energy-based turn scheduler (speeds differ)\n\n```python\n# Pseudocode. Each actor gains energy each tick and acts when it has enough.\n# Faster actors gain more per tick, so they act more often — no fixed \"player then enemies\".\nTURN_COST = 100\ndef next_actor(actors):\n    while True:\n        for a in actors:                 # stable order avoids ties favoring one side\n            a.energy += a.speed          # e.g. speed 100 = normal, 150 = hasted\n            if a.energy >= TURN_COST:\n                a.energy -= TURN_COST\n                return a                 # this actor takes exactly one action now\n```\n\n### 3. Field of view + explored memory\n\n```python\n# Pseudocode. Recompute visibility from the player each time they move.\nvisible = compute_fov(map, player.pos, radius=8)   # symmetric shadowcasting (see refs)\nfor cell in visible:\n    explored.add(cell)                  # remember it forever (dim \"fog of war\")\n# Render: visible -> lit; explored-but-not-visible -> dim; never-seen -> hidden.\n```\n\nUse a proven FOV algorithm (recursive shadowcasting or symmetric shadowcasting). Do not\nroll a naive raycast-per-cell — it produces asymmetric, \"blinking\" vision. See refs.\n\n## Pitfalls \u002F failure modes\n\n- **Disconnected dungeons** → rooms the player can't reach. Always run a connectivity\u002Fflood-fill\n  pass and carve corridors until every walkable cell is reachable.\n- **Naive FOV** → vision that flickers or is asymmetric (you see them, they don't see you).\n  Use shadowcasting; test symmetry.\n- **Real-time loop pretending to be turn-based** → input races and double-moves. Resolve one\n  discrete turn at a time; queue input.\n- **Flat difficulty** → no descent pressure. Scale monsters\u002Floot by depth and keep resources scarce.\n- **Permadeath that wipes meta-unlocks** → frustration. Separate *run* state (wiped) from\n  *profile* state (unlocks, scores) when saving (see `save-systems`).\n- **Save-scumming a \"permadeath\" game** → delete or invalidate the run save on load if you want\n  true permadeath; keep only the profile.\n- **Unreadable state** → the player can't plan. Show HP, turn results, and a message log.\n\n## Composition (build it from these skills)\n\n- **Generation:** `procedural-gen` (noise, seeded RNG, dungeon\u002Froom algorithms) — the engine of replayability.\n- **Map rendering:** `godot-tilemap` \u002F `unity-tilemap-2d` for the grid; `level-design` for set-piece rooms\u002Fvaults.\n- **Enemies:** `game-ai` for monster decision-making (often simple on a grid: seek\u002Fflee\u002Fpatrol).\n- **Persistence:** `save-systems` for run-resume, profile\u002Fmeta-progression, and true permadeath wipes.\n- **Scripting\u002Fdata:** `godot-resources` \u002F `unity-scriptableobjects` to define items, monsters, and drop tables as data.\n- **UI:** `godot-ui-control` for the message log, inventory, and HUD.\n- **Feel:** `game-feel` for hit\u002Fdeath juice — screen shake and hit-stop that sell impacts on a turn-based grid.\n\n## References\n\n- For dungeon-generation algorithms (rooms-and-corridors, BSP, cellular automata, connectivity),\n  FOV (shadowcasting), and weighted loot\u002Fspawn tables, read `references\u002Fgeneration-fov-loot.md`.\n",{"name":5,"license":15,"metadata":24,"description":28,"compatibility":29},{"engine":25,"category":26,"difficulty":27},"none","genres","advanced","Build a roguelike: turn-based grid movement, procedural dungeons, permadeath, field-of-view, and loot tables. Use for a roguelike\u002Froguelite or turn-based grid dungeon crawler with procedural levels.\n","Engine-agnostic design patterns; snippets are pseudocode (port to your engine)","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add mistervaibhav\u002Fskills --skill roguelike",{"tool":42,"command":43},"bunx","bunx skills add mistervaibhav\u002Fskills --skill roguelike",{"tool":45,"command":46},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill roguelike","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Froguelike\u002FSKILL.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fgeneration-fov-loot.md","REFERENCE","参考文档",4956,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Froguelike\u002Freferences\u002Fgeneration-fov-loot.md",[57,65,73,81,88,95],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":61,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":77,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":69,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]