Book generator

From egorfedorov/Slot-Casino-Game-Developer-Skills-for-Stake-Engine · View interactive version

Book generator is an AI agent skill from the GitHub repository egorfedorov/Slot-Casino-Game-Developer-Skills-for-Stake-Engine. Generate, package, and validate weighted outcome books for slot/casino game modes. Use when defining mode book schemas, producing `books_*.jsonl(.zst)` files, generating `lookUpTable_*.csv` weights, assembling `index.json`, or running publication-ready integrity checks across books/index/weights art

How to use this skill

Skill file

Book Generator

Use this skill to create deterministic book packages that backend and replay systems can consume without schema drift.

Workflow

  1. Define mode contract first.
  1. Generate books deterministically.

21→ 3. Generate weight lookups.

22→ - Build lookUpTable_<mode>_0.csv with simulation ID, weight, and payout columns.

23→ - Column structure: id (simulation number), weight (probability), payoutMultiplier.

24→ - Keep weights positive and aligned to existing book IDs.

25→ - Normalize total weight policy per product requirements.

  1. Assemble index.json.
  1. Run integrity validation before handoff.

Commands

python3 scripts/check_books_package.py \
  --index <path/to/index.json>

Optional quick pass:

python3 scripts/check_books_package.py \
  --index <path/to/index.json> \
  --max-rows 50000

Output Contract

Return:

  1. Mode Map: mode names, costs, and referenced files.
  2. Integrity Findings: pass/fail by mode for books and lookup coverage.
  3. Patch Plan: exact generator/index files to adjust.
  4. Verification: commands and expected pass criteria.
  5. Residual Risks: unresolved blockers.

References

Execution Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.