component-checklist

star 2

Use when adding a new ECS component, MCP command, or engine capability. Checklist of all files that must be updated across Rust engine, web layer, and integration points.

Tristan578 By Tristan578 schedule Updated 4/3/2026

name: component-checklist description: "Use when adding a new ECS component, MCP command, or engine capability. Checklist of all files that must be updated across Rust engine, web layer, and integration points."

New Component / Command Checklist

When adding a new ECS component, update these domain-scoped files:

Rust Engine (4 required files)

  1. engine/src/core/<component>.rs — Component struct + marker (add pub mod in core/mod.rs)
  2. engine/src/core/pending/<domain>.rs — Request structs + queue methods + bridge fns
  3. engine/src/core/commands/<domain>.rs — Dispatch entry + handler function
  4. engine/src/bridge/<domain>.rs — Apply system + selection emit (register in bridge/mod.rs SelectionPlugin::build())

Rust Engine (supporting, if needed)

  1. engine/src/core/history.rsUndoableAction variant + EntitySnapshot field
  2. engine/src/core/entity_factory.rs — delete/duplicate/undo/redo + spawn_from_snapshot
  3. engine/src/core/engine_mode.rssnapshot_scene (separate query param)
  4. engine/src/bridge/events.rs — Emit function(s)
  5. engine/src/bridge/query.rs — Query handler (if component has query support)

Web Layer (4 required files)

  1. web/src/stores/slices/<domain>Slice.ts — State + actions (+ re-export from slices/index.ts)
  2. web/src/hooks/events/<domain>Events.ts — Event handler(s)
  3. web/src/lib/chat/handlers/<domain>Handlers.ts — Tool call handler(s) (registered in executor.ts handler registry)
  4. web/src/components/editor/<Inspector>.tsx — Inspector panel

Integration (5 required files)

  1. web/src/components/editor/InspectorPanel.tsx — Import + render
  2. web/src/components/chat/ToolCallCard.tsx — Display labels
  3. mcp-server/manifest/commands.json — MCP commands. Set visibility: 'public' or 'internal' (mandatory)
  4. web/src/data/commands.jsonCOPY of #16 (keep in sync)
  5. TESTING.md — Manual test cases
Install via CLI
npx skills add https://github.com/Tristan578/project-forge --skill component-checklist
Repository Details
star Stars 2
call_split Forks 1
navigation Branch main
article Path SKILL.md
More from Creator