Stake Engine Game Builder
Use this skill to ship a game that passes Stake Engine technical review.
Execute Workflow
- •Identify task type.
- •New game integration: implement full flow from URL parsing to RGS calls and replay mode.
- •Existing game audit: run compliance checklist and patch gaps.
- •Submission readiness: run test matrix and deliver fail/pass report with fixes.
- •Parse runtime query parameters first.
- •Read
sessionID,lang,device, andrgs_urlfrom game URL. - •Never hardcode RGS host.
- •Treat
langas ISO 639-1 code and keep UI stable even if onlyenis translated.
- •Implement mandatory RGS lifecycle.
- •Call
POST /wallet/authenticateon load before any other wallet endpoint. - •Use
config.minBet,config.maxBet,config.stepBet, andconfig.betLevelsfrom authenticate response. - •Place bets via play endpoint and finalize round with
POST /wallet/end-roundwhen round must be closed. - •Handle invalid session and balance errors explicitly.
- •Apply amount and display rules.
- •Keep money in integer micro-units (1.000000 precision).
- •Validate bet amount bounds and step divisibility before sending request.
- •Format balance by currency metadata in UI only; game math must stay currency-agnostic.
- •Implement mandatory replay mode.
- •Detect replay via
replay=truequery param. - •Fetch replay state from
GET {rgs_url}/bet/replay/{game}/{version}/{mode}/{event}. - •Disable live betting/session flow in replay mode.
- •Keep replay controls only (play / play again) and show final result.
- •Enforce frontend compliance.
- •Ship static frontend files only.
- •Load assets (fonts/images/audio) from Stake Engine CDN paths only.
- •Keep mobile and mini-player layouts readable and usable.
- •Provide rules/paytable, RTP, max win, and mode-cost details in UI.
- •Include mandatory disclaimer in rules popup.
- •Validate before handoff.
- •Test each mode across win/loss/max-win scenarios.
- •Test replay for each mode with provided event IDs.
- •Test currencies/languages matrix.
- •Check browser console/network for errors and external-resource leaks.
Output Contract
When delivering implementation or audit, return:
- •
ImplementedorMissingchecklist by area: URL/RGS, betting constraints, replay, UI compliance. - •Exact file-level patch plan.
- •Test matrix with pass/fail and reproduction steps for failures.
References
Load only what is needed:
- •RGS and wallet flow:
references/stake-engine-rgs.md - •Replay requirements:
references/stake-engine-replay.md - •Frontend/compliance checklist:
references/stake-engine-frontend-checklist.md