
两项Claude Code技能捆绑官方Stake Engine Math SDK + Web SDK工作流程——自助、精简文档、审批清单。
概览
把一个开发者从空白文件夹带到Stake Engine上能运行的老虎机游戏——Claude负责克隆、版本固定、烟雾测试,并回答所有问题。 两项Claude代码技能,捆绑在官方的Stake Engine Math SDK和Web SDK工作流程中。把它们放进去,问Claude“我想启动一个Stake Engine老虎机游戏”,观看示例运行。 这两个技能都指向上游的Stake Engine仓库——官方文档在https://stakeengine.github.io/math-sdk/,仓库在[[T1])中。它们通过脚本/update-sdk.sh 保持同步。 这样可以把两个技能复制到 ~/.claude/skills/。重启 Claude Code(或新开会话)来加载它们。 install.sh 还会提供安装Stake官方MCP服务器以实现实时文档访问(stake-engine-docs)。推荐——用[Y]接受。如果你想以后通过./install-mcp.sh 手动安装,可以跳过SKIP_MCP=1 ./install.sh。 “我想开一个Stake Engine老虎机游戏。
概述(AI 翻译)
把一个开发者从空白文件夹带到Stake Engine上运行的老虎机游戏——Claude负责克隆、版本固定、烟雾测试,并一路上回答所有问题。
两项Claude代码技能,捆绑了官方的Stake Engine Math SDK和Web SDK工作流程。把它们放进去,问Claude*“我想启动一个Stake Engine老虎机游戏”*,观看示例运行。
里面是什么
| 技能 | 自助 | 然后帮助 |
|---|---|---|
stake-math-sdk |
克隆 StakeEngine/math-sdk,Python 3.12+ venv,运行示例 |
GameState,下注模式,计算(线路、路径、簇、散、翻滚、棋盘)、优化器、书籍+查找表、数学批准率(RTP 90-98%,模式间±0.5%)) |
stake-web-sdk |
克隆 StakeEngine/web-sdk,节点22.16通过nvm,pnpm 10.5,抽烟故事书 |
Monorepo导航,书籍事件,Pixi组件,XState上下文,RGS HTTP API,前端审批(仅静态、仅CDN、迷你玩家、移动端、自动游戏规则) |
这两种技能都指向上游的 Stake Engine 仓库是真相的来源——官方文档在 ,仓库在 。它们通过 scripts/update-sdk.sh 保持同步。
安装
这会把两个技能都复制到~/.claude/skills/。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Stake Engine Skills for Claude Code
Take a developer from a blank folder to a working slot game on Stake Engine — Claude does the cloning, the version pinning, the smoke test, and answers every question along the way.
Two Claude Code skills bundling the official Stake Engine Math SDK and Web SDK workflows. Drop them in, ask Claude “I want to start a Stake Engine slot game”, watch a sample run.
What’s inside
| Skill | Bootstraps | Then helps with |
|---|---|---|
stake-math-sdk |
Clones StakeEngine/math-sdk, Python 3.12+ venv, runs a sample |
GameState, bet modes, calculations (lines, ways, cluster, scatter, tumble, board), the optimizer, books + lookup-tables, math approval (RTP 90-98%, ±0.5% between modes) |
stake-web-sdk |
Clones StakeEngine/web-sdk, Node 22.16 via nvm, pnpm 10.5, smokes Storybook |
Monorepo navigation, book events, Pixi components, XState context, RGS HTTP API, frontend approval (static-only, CDN-only, mini-player, mobile, autoplay rules) |
Both skills point at upstream Stake Engine repos as the source of truth — the official docs at and the repos in . They stay in sync via scripts/update-sdk.sh.
Install
# Download the latest release tarball, then:
tar -xzf stake-engine-skills-v0.1.0.tar.gz
cd stake-engine-skills
./install.sh
That copies both skills into ~/.claude/skills/. Restart Claude Code (or open a new session) to load them.
Or clone the repo directly:
git clone https://github.com/ReSkin-Games/stake-engine-skills.git
cd stake-engine-skills
./install.sh
install.sh will offer to also install Stake’s official MCP server for live doc access (stake-engine-docs). Recommended — accept with [Y]. Skip with SKIP_MCP=1 ./install.sh if you’d rather install it manually later via ./install-mcp.sh.
Use
Open Claude Code in any folder and say:
“I want to start a Stake Engine slot game.”
The math skill activates, runs detect-state.sh, finds no SDK present, and walks through the bootstrap. After it finishes there’s a working math-sdk clone next to you, the venv is set up, and a sample game has produced its books_*.jsonl and lookUpTable_*.csv.
When switching to frontend:
“Now let’s set up the Web SDK and start playing the sample in Storybook.”
The web skill activates, clones web-sdk, installs Node 22.16 via nvm, runs pnpm install, and tells you to run pnpm run storybook --filter=lines.
After that — ask the skill anything about the docs, the architecture, the approval checklist, how to add an event, how the optimizer works. The skills carry distilled references for every page of the official docs.
How it works
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add reskin-games/stake-engine-skills