---
name: porting-game-simulation-prototypes-to-rust
description: "Ports prototype game simulation logic into performant Rust crates using pure ECS modules and goal-oriented planners. Use when refactoring gameplay prototypes into native code and reviewing the proposed architecture."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, GitHub, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/porting-game-simulation-prototypes-to-rust/"
  kind: skill
  hermes:
    tags: ["rust", "gamedev", "refactoring", "simulation"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Porting game simulation prototypes to Rust

Rewrite logic prototypes into low-overhead Rust crates with clean architectures

## When to use

Collaborate with an AI engineer to refactor prototype game mechanics into performant native code. Translate high-level systems into pure entity-component logic, implement goal-oriented planners, and structure modules for smooth client rendering.

## Inputs

- `prototype_logic`: Prototype game logic or code to translate into Rust
- `target_scope` (optional): Which systems or modules to port, and any architecture preferences
- `performance_goals` (optional): Performance or benchmark targets to check against

## Steps

1. When you ask: Provide prototype logic (Person shares prototype game logic and asks to port it to Rust)
2. Translate to native ECS modules
3. Review proposed Rust architecture

## Instructions

Analyze existing prototype code and design target Rust module layouts. Draft pure, synchronous ECS logic and agent decision loops without extraneous dependencies. Run cargo checks and benchmarks in the terminal when directed. Always ask for confirmation before writing files, opening pull requests, or deleting obsolete branches.

## Approvals

- Writing files requires confirmation from a person.
- Opening pull requests requires confirmation from a person.
- Deleting obsolete branches requires confirmation from a person.

## Output

Proposed Rust module layout and ECS architecture for review. (format: markdown)

## Source

Summarized in our own words from [Show HN: A self-running space economy SIM in Rust and Bevy](https://news.ycombinator.com/item?id=48996187) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/porting-game-simulation-prototypes-to-rust/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
