Book Generator logo

Book Generator

Community
egorfedorov
book-generator

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 artifacts.

Overview

Publisheregorfedorov
RepositorySlot-Casino-Game-Developer-Skills-for-Stake-Engine
Skill namebook-generator
Stars
63
Forks
16
Bundled files
5
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 5 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by egorfedorov on GitHub. Read the source before you install it.

Installation

Install the Book Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/egorfedorov/Slot-Casino-Game-Developer-Skills-for-Stake-Engine.git /tmp/Slot-Casino-Game-Developer-Skills-for-Stake-Engine
mkdir -p .claude/skills
cp -r /tmp/Slot-Casino-Game-Developer-Skills-for-Stake-Engine/book-generator .claude/skills/book-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Book Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Book Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Book Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.
  • Specify each mode name, mode cost, event file path, and weight table path.
  • Lock event schema and ID strategy before high-volume generation.
  1. Generate books deterministically.
  • Produce books_<mode>.jsonl (or .jsonl.zst) with stable id fields.
  • Ensure each record has required fields (id, events, payoutMultiplier).
  • Keep generator seeds/config versions in run logs. 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.
  • Include modes[] with name, cost, events, and weights.
  • Verify all referenced files exist and are mode-consistent.
  1. Run integrity validation before handoff.
  • Validate ID uniqueness and weight coverage.
  • Validate referenced files and schema-level required fields.
  • Treat any missing file, duplicate ID, or ID mismatch as release blocker.

Commands

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

Optional quick pass:

bash
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

  • references/workflow.md: step-by-step generation lifecycle.
  • references/data-contract.md: required fields and file contracts.
  • references/signoff-template.md: packaging and release checklist template.

Execution Rules

  • Keep IDs deterministic and stable across reruns unless version is intentionally bumped.
  • Keep index references relative and artifact-local.
  • Fail fast on schema/coverage mismatches instead of patching silently.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Book Generator AI skill do?

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 artifacts.

Why use Book Generator on TypingMind?

Because you install it once and use it with any model. Book Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Book Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/egorfedorov/Slot-Casino-Game-Developer-Skills-for-Stake-Engine/tree/main/book-generator. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Book Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Book Generator?

As many as you like. As long as a model supports skills, you can use Book Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Book Generator AI skill free?

It is published on GitHub by egorfedorov. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇