add-monster

Add a new monster to the roguelike by editing monsters.js and palette base.js.

2|Updated Oct 15, 2025
One-click install
npx skills add https://github.com/PJensen/JSHack --skill add-monster
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-monster
Source: https://github.com/PJensen/JSHack/tree/main/.agents/skills/add-monster
Command: npx skills add https://github.com/PJensen/JSHack --skill add-monster

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a clear, repeatable workflow to introduce new monsters into the roguelike game's data model, ensuring consistency with the existing MONSTERS definitions, tiers, and palette.

Core Features & Use Cases

  • Standardized monster schema: id, name, tags, tier, stats, resistances, and visuals all conform to the game's data model.
  • Controlled integration: adds the monster to MONSTERS in the correct tier block, imports necessary callbacks, and updates the color palette entry.
  • Real-world use: a developer designs a novel creature for a new dungeon tier and wires it through the game’s balance rules and visuals, enabling quick playtesting.

Quick Start

Add a new monster by editing src/rules/data/monsters.js and wiring it into the MONSTERS array with the correct tier and a matching palette entry.

Frequently Asked Questions about add-monster

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

FAQPage Schema
How do I add a new monster to a roguelike game in JavaScript?

After adding a monster, you import necessary behavior callbacks for the MonsterDef and run the test suite with deno test --allow-read to validate the changes and ensure no existing monsters are affected.

What data does a monster definition require for a roguelike?

You must add a matching palette entry in src/display/palette/base.js alongside the MonsterDef to ensure correct visuals and balance within the roguelike game environment.

Can I use Deno to test new monster additions in a game?

Adding a monster involves wiring it into the correct tier block within the MONSTERS array and importing any new necessary callbacks to maintain game balance and controlled integration.

Why does adding a creature to a roguelike require updating the color palette?

Updating the color palette is required because the game's data model enforces consistency between monster attributes and visuals, necessitating a matching palette entry in src/display/palette/base.js to ensure correct rendering and balance.