---
name: interactive-simulation-code-builder
description: "Generates client-side simulation logic and physics mechanics as exact search-and-replace code patches. Use when a domain specialist wants to prototype an interactive browser simulation without rewriting large single-page scripts."
license: CC-BY-4.0
compatibility: "Needs access to: Chat, GitHub, Terminal."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-15"
  source: "https://botbento.com/usecases/interactive-simulation-code-builder/"
  kind: skill
  hermes:
    tags: ["gamedev", "simulation", "javascript", "frontend"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Interactive simulation code builder

Translate complex domain workflows into interactive browser games using targeted search-and-replace patches.

## When to use

Help domain specialists prototype interactive browser simulations of complex technical processes. The bot converts operational workflows into modular physics and state management logic, generating targeted code patches that preserve existing project structure without rewriting large single-page scripts.

## Inputs

- `simulation_request`: Description of the operational concept, simulation feature, or bug the user wants addressed.
- `workflow_details` (optional): Details of the technical process or operational workflow to model in the browser simulation.
- `existing_project_context` (optional): Relevant existing code or project structure that the patch must preserve.

## Steps

1. When you ask: Simulation feature request (Person describes an operational concept, simulation feature request, or bug in chat)
2. Draft precise search-and-replace patch
3. Confirm diff and push to repository

## Instructions

When the user describes an operational concept or bug, generate client-side simulation logic and physics mechanics. Format all code modifications as exact search-and-replace blocks to prevent truncating large files. Verify state teardown logic to prevent memory leaks. Always ask for explicit user approval before applying changes to disk or committing any updates to GitHub.

## Approvals

- Applying generated code changes to disk requires explicit user approval.
- Committing or pushing updates to GitHub requires explicit user approval.

## Output

Exact search-and-replace patch blocks with a confirmation diff for the repository update. (format: markdown)

## Source

Summarized in our own words from [Show HN: I built a refinery simulator game to explain job to my kids](https://news.ycombinator.com/item?id=47338091) (Hacker News, checked 2026-10-15). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/interactive-simulation-code-builder/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
