OpenParable
Skip to content
← Back to skills

Rexboard Miniboard And Composite

Development
rexboard-miniboard-and-composite

Rexboard Miniboard And Composite is an Agent Skill for development published in the rexrainbow/phaser3-rex-notes repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use this skill when working with RexBoard miniBoard, MiniBoard, board composite pieces, grouped chess pieces, drag mini board, place mini board, pull out and put back patterns, rotate or mirror composite pieces, or MiniBoard movement. Triggers on: RexBoard miniBoard, MiniBoard, board composite, drag mini board, place mini board, pullOutFromMainBoard, putOnMainBoard.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/rexrainbow/phaser3-rex-notes/blob/HEAD/skills/rexboard/rexboard-miniboard-and-composite/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/rexboard-miniboard-and-composite, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

RexBoard MiniBoard And Composite

Use this skill for grouped chess pieces that should move, rotate, mirror, drag, or place as one composite object.

Use This First

Choose MiniBoard when:

NeedUse
Several chess pieces act as one shapeMiniBoard
Drag/drop a composite onto a boardpullOutFromMainBoard, canPutOnMainBoard, putOnMainBoard, putBack
Rotate or mirror a compositerotate, rotateTo, mirror
Validate placement per childputTestCallback

For a single chess piece, use rexboard-board-and-chess or rexboard-movement-and-pathfinding instead.

Required Setup

This skill assumes RexBoard setup, a main board, and a compatible grid. If not, use setup, grid, and board skills first.

References

Read these only when needed:

  • references/miniboard-config.md: config fields, public API, placement methods, transforms, and interaction.
  • references/main-board-vs-mini-board.md: mental model and placement gotchas.
  • references/miniboard-recipes.md: reduced recipes for creating, placing, and drag-dropping a composite piece.

Core Rules

  • A MiniBoard has local tile coordinates for child chess.
  • putOnMainBoard maps local coordinates onto the main board.
  • Use canPutOnMainBoard before committing placement when placement can fail.
  • Use pullOutFromMainBoard and putBack for reversible drag/drop flows.
  • Keep MiniBoard and main board grids compatible unless implementing a deliberate conversion.

Source File Map

  • plugins/board/miniboard/MiniBoard.d.ts: config, child chess methods, placement, transforms, and interaction.
  • plugins/board/miniboard/Factory.js: miniBoard factory signature.
  • plugins/board/miniboard/mainboard/*.js: inspect placement details when needed.
  • plugins/board/board/Board.d.ts: main board placement target.

Related Skills

  • rexboard-board-and-chess: main board chess model and occupancy.
  • rexboard-rendered-tiles-and-pieces: rendered child chess objects.
  • rexboard-movement-and-pathfinding: movement concepts and blockers.
  • rexboard-grids-and-coordinates: grid compatibility and direction behavior.

Gotchas

  • Mini-board rotation and mirror operations are not the same as moving one chess piece.
  • MiniBoard child chess are Phaser game objects; use a normal board if the workflow needs plain data pieces.