mcpField
R
rust-roguelike-procgen-ai

rust-roguelike-procgen-ai

github.com/lvtd-llcDevelopment157 installsUpdated 8w ago
Repository

About rust-roguelike-procgen-ai

A skill for adding procedural map variety and tactical AI to Rust roguelikes while preserving testability. It covers shared generator interfaces, map validation, visibility-aware AI, and inspection harnesses.

Key features

  1. 01Define a common map builder output
  2. 02Use a shared generator interface
  3. 03Validate reachability and spawn legality
  4. 04Inspect generator output with harnesses or snapshots
  5. 05Add FOV and pathfinding
  6. 06Limit monster knowledge by visibility or memory

Use cases

  1. 01Adding multiple procedural map generators
  2. 02Testing generated map reachability
  3. 03Building AI around entity visibility and memory

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/lvtd-llc/skills --skill rust-roguelike-procgen-ai

After installing, type/rust-roguelike-procgen-aiin Claude Code to confirm it loaded.

Bundled filesreferences/procgen-ai-patterns.md

Details

From the project README

Rust Roguelike Procgen AI

Use this skill to add procedural map variety and tactical AI without losing testability. Keep generators behind a common interface, validate generated maps, and make AI depend on what entities can perceive.

Core Workflow

  1. Define a map builder output type with map, starts, exits, and spawn points.
  2. Put each generator behind a shared trait or equivalent interface.
  3. Validate reachability and spawn legality before using a generated map.
  4. Add a small output harness or snapshot path for generator inspection.
  5. Implement FOV and pathfinding through map traits or adapter functions.
  6. Gate monster knowledge through visibility or memory rules.

Read Next

Read references/procgen-ai-patterns.md for generator interfaces, FOV, pathfinding, map memory, AI checks, and test harness patterns.

Source Notes

Guidance is transformed and paraphrased from Hands-On Rust Chapters 9, 10, 11, and 12 and from the official companion source repository. Current crate context was checked against bracket-lib docs, including its pathfinding and geometry support.

Comments

Markdown supported