map-gen

Automates Mozilla's 128x128 map.js level layouts including rooms, corridors, walls, spawns, bases, shrink zones.

1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/bsolidgold/mood --skill map-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: map-gen
Source: https://github.com/bsolidgold/mood/tree/main/.claude/skills/map-gen
Command: npx skills add https://github.com/bsolidgold/mood --skill map-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generating balanced, replayable level layouts for Mood's 128x128 grid can be time-consuming and error-prone. This Skill automates the creation and modification of maps, including room placement, corridors, walls, item spawns, base positions, and shrink-zone configuration.

Core Features & Use Cases

  • Layout generation: creates faction bases, connecting corridors, a central arena, and shrink-safe topologies.
  • Item placement: seeds pickups in contested and safe zones to balance risk/reward.
  • Guided tweaks: describes changes as arguments and updates js/map.js accordingly.

Quick Start

Describe the intended map changes as arguments and apply them to the map generation script to update js/map.js.

Frequently Asked Questions about map-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate balanced level layouts for a 128x128 grid map?

Level layout generation for a 128x128 grid automates room placement, connecting corridors, walls, and item spawns. It uses helper methods like wallRect and clearRect to create faction bases and central arenas while maintaining shrink-system compatibility.

What is the best way to place item spawns in contested and safe zones?

Item spawn placement balances risk and reward by seeding pickups across contested and safe zones. The generation script automates this distribution to ensure balanced gameplay dynamics without requiring manual coordinate calculations.

Can I use helper methods like wallRect and clearLine to modify map.js directly?

Helper methods like wallRect, wallLine, clearRect, and clearLine directly modify map.js. Describing your intended map changes as arguments allows the workflow to automatically apply these structural updates to the level file.

Does automated map generation support shrink zone configuration?

Automated map generation supports shrink zone configuration by creating shrink-safe topologies. It plans and verifies map changes to ensure the generated layout remains fully compatible with the game's shrink-system mechanics.

How do I test multiple iterations of base layout and corridors?

Testing multiple iterations of base layouts and corridors is achieved by describing specific changes as arguments to the generation script. This updates map.js accordingly, allowing rapid variation testing without manually redrawing the grid.