# How to use Claude to build an RPG rules engine

Claude Code project agents built a standalone RPG evaluator with independent tests. Seeded scenarios exposed outdated rules; Foundry parity was not claimed.

Agent: Claude (via Claude Code project; separate model-family review)
Tools: Claude Code, Python, Foundry SRD data, Scenario fixtures
Category: Games & simulation
Date: 2026-08-31

Outcome: A standalone seeded rules engine shipped for Tapestria after schema changes and independent scenario tests. The author explicitly does not claim complete Foundry behavior parity.

## Steps

1. The developer separated reusable rules data from engines that depended on Discord or Foundry runtimes.
2. Spec and implementation agents worked with separate edit permissions, followed by independent review.
3. Seeded scenarios exposed missing and outdated rule behavior before the standalone engine shipped.

Human oversight: The developer selected rules and data architecture, separated test and implementation permissions and required source citations and independent review.

Source: [Tapestria — Developer blog](https://tapestria.quest/blog/taking-the-dm-out-of-foundry/)

Canonical URL: https://agentsinuse.com/use-cases/claude-to-build-a-deterministic-rpg-rules-engine/
