Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
bbeierle12 avatar

Builder Ux

  • 56 installs
  • 8 repo stars
  • Updated August 4, 2026
  • bbeierle12/skill-mcp-claude

Builder-ux is a Claude skill providing prefab, undo/redo, ghost-preview, and selection UX systems for Three.js building games.

About

Builder-ux is a Claude skill for building-game user experience systems in Three.js. It covers prefab and blueprint save/load, undo/redo command patterns, ghost preview placement, multi-select, and copy/paste building mechanics. A game developer uses it to make block placement feel responsive when implementing player-constructed structures.

  • Prefab/blueprint save-load, undo/redo, ghost preview, and multi-select for Three.js builders
  • Ships BlueprintManager, CommandHistory, GhostPreview, and SelectionManager scripts
  • Command-pattern history with configurable max size for undo/redo

Builder Ux by the numbers

  • 56 all-time installs (skills.sh)
  • Ranked #152 of 247 Game Development skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

builder-ux capabilities & compatibility

Capabilities
undo redo · prefab system · ghost preview · multi select
Use cases
frontend · ui design
From the docs

What builder-ux says it does

Builder user experience systems for Three.js building games.
SKILL.md
Prefabs, blueprints, undo/redo, selection, and preview systems for building mechanics.
SKILL.md
const history = new CommandHistory({ maxSize: 50 });
SKILL.md
npx skills add https://github.com/bbeierle12/skill-mcp-claude --skill builder-ux

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs56
repo stars8
Last updatedAugust 4, 2026
Repositorybbeierle12/skill-mcp-claude

What it does

Add prefab save/load, undo/redo, ghost preview, and multi-select to a Three.js building game.

Who is it for?

Implementing responsive placement UX in a Three.js building or sandbox game.

Skip if: Non-game or non-Three.js UI work.

When should I use this skill?

Implementing prefab/blueprint save/load, undo/redo, ghost preview placement, multi-select, or copy/paste building mechanics.

What you get

Responsive, intuitive building placement UX in a Three.js game.

  • BlueprintManager
  • CommandHistory undo/redo
  • GhostPreview

By the numbers

  • CommandHistory maxSize 50 example
  • SelectionManager maxSelection 100 example

Files

SKILL.mdMarkdownGitHub ↗

Builder UX

Prefabs, blueprints, undo/redo, selection, and preview systems for building mechanics.

Quick Start

import { BlueprintManager } from './scripts/blueprint-manager.js';
import { CommandHistory, PlaceCommand, BatchCommand } from './scripts/command-history.js';
import { GhostPreview } from './scripts/ghost-preview.js';
import { SelectionManager } from './scripts/selection-manager.js';

// Initialize systems
const blueprints = new BlueprintManager();
const history = new CommandHistory({ maxSize: 50 });
const ghost = new GhostPreview(scene);
const selection = new SelectionManager({ maxSelection: 100 });

// Save selected pieces as blueprint
const { blueprint } = blueprints.save(selection.getSelection(), 'My Base');

// Load blueprint at new position
const { pieces } = blueprints.load(blueprint.id, newPosition, rotation);

// Place with undo support
history.execute(new PlaceCommand(pieceData, position, rotation, buildingSystem));
history.undo(); // Removes piece
history.redo(); // Restores piece

// Ghost preview with validity feedback
ghost.show('wall', cursorPosition, rotation);
ghost.setValid(canPlace); // Green/red color
ghost.updatePosition(newCursorPosition);

// Multi-select with box selection
selection.boxSelect(startNDC, endNDC, camera, allPieces);
selection.selectConnected(startPiece, getNeighbors); // Flood fill

// Batch operations
history.beginGroup('Delete selection');
for (const piece of selection.getSelection()) {
  history.execute(new RemoveCommand(piece, buildingSystem));
}
history.endGroup();

Reference

See references/builder-ux-advanced.md for:

  • Command pattern with PlaceCommand, RemoveCommand, UpgradeCommand, BatchCommand
  • Blueprint serialization format and versioning
  • Ghost preview rendering with pulse animation
  • Selection systems: single, additive, box, radius, connected
  • Copy/paste and blueprint sharing

Scripts

FileLinesPurpose
blueprint-manager.js~450Save, load, export/import building designs
command-history.js~400Undo/redo stack with command pattern
ghost-preview.js~380Transparent placement preview with snapping
selection-manager.js~420Multi-select, box select, group operations

Key Patterns

Command Pattern

Every building action becomes a command with execute() and undo(). This enables:

  • Undo/redo for free
  • Network replication (serialize command, send to server)
  • Macro recording (save command sequences)
  • Validation before execution

Blueprint System

Blueprints store relative positions, making them position and rotation independent. Key features:

  • Auto-centering on save
  • Rotation support on load
  • Export/import for sharing
  • Thumbnail generation

Ghost Preview

Shows placement intent before commitment:

  • Green = valid placement
  • Red = invalid (collision, no support)
  • Orange = blocked (permissions)
  • Pulse animation for visibility
  • Grid/rotation snapping

Selection Manager

Supports multiple selection modes:

  • Single click (replace selection)
  • Shift+click (additive)
  • Ctrl+click (toggle)
  • Box select (screen space)
  • Radius select (world space)
  • Connected select (flood fill)

Integration

// Full integration example
function setupBuildingUX(scene, buildingSystem) {
  const history = new CommandHistory({
    maxSize: 100,
    onChange: (status) => updateUndoRedoButtons(status)
  });
  
  const ghost = new GhostPreview(scene, {
    validColor: 0x00ff00,
    invalidColor: 0xff0000,
    snapGrid: 2,
    snapRotation: Math.PI / 4
  });
  
  const selection = new SelectionManager({
    maxSelection: 200,
    onSelectionChanged: (pieces) => updateSelectionUI(pieces)
  });
  
  const blueprints = new BlueprintManager({
    storage: localStorage,
    maxBlueprints: 50
  });
  
  // Keyboard shortcuts
  document.addEventListener('keydown', (e) => {
    if (e.ctrlKey && e.key === 'z') history.undo();
    if (e.ctrlKey && e.key === 'y') history.redo();
    if (e.ctrlKey && e.key === 'c') copySelection();
    if (e.ctrlKey && e.key === 'v') pasteBlueprint();
    if (e.key === 'r') ghost.rotate(Math.PI / 4);
  });
  
  return { history, ghost, selection, blueprints };
}

Design Philosophy

Building UX separates intent from execution. The ghost preview shows what will happen, the command executes it, and the history allows reversal. This separation enables blueprint placement (preview entire structure), batch undo (reverse multiple operations), and networked building (commands serialize for transmission).

Related skills

FAQ

What systems does builder-ux provide?

Blueprint save/load, command-history undo/redo, ghost preview, and multi-select selection managers.

What engine is it for?

Three.js building games.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.