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
- 01Define a common map builder output
- 02Use a shared generator interface
- 03Validate reachability and spawn legality
- 04Inspect generator output with harnesses or snapshots
- 05Add FOV and pathfinding
- 06Limit monster knowledge by visibility or memory
Use cases
- 01Adding multiple procedural map generators
- 02Testing generated map reachability
- 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-aiAfter installing, type/rust-roguelike-procgen-aiin Claude Code to confirm it loaded.
Bundled filesreferences/procgen-ai-patterns.md
Details
From the project READMERust 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
- Define a map builder output type with map, starts, exits, and spawn points.
- Put each generator behind a shared trait or equivalent interface.
- Validate reachability and spawn legality before using a generated map.
- Add a small output harness or snapshot path for generator inspection.
- Implement FOV and pathfinding through map traits or adapter functions.
- 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.