stake-game-developer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseStake Game Developer
Stake游戏开发者
Use this skill to design, validate, and ship Stake games with deterministic event playback and compliance gates.
使用该技能可设计、校验并发布具备确定性事件回放与合规校验机制的Stake游戏。
Workflow
工作流
- Define or review the game brief, modes, and constraints.
Load .
references/workflow.md - Validate book/index integrity before UI assumptions.
Run .
scripts/validate-books-index.mjs - Validate event stream contract and sequencing.
Run .
scripts/validate-rgs-events.mjs - Validate frontend integration expectations.
Load and
references/frontend-integration.md.20→ 5. Run compliance gate checks before release review. 21→ Runreferences/rgs-event-contract.mdusingscripts/audit-checklist.mjsandreferences/compliance-rules.json. 22→ 23→ 6. Final Approval Check. 24→ Validate full game againstreferences/compliance-checklist.md(PreChecks, Math, Frontend, Jurisdiction). 25→ 26→ ## Commands```bash node scripts/validate-books-index.mjs --index <path/to/index.json> --format text node scripts/validate-rgs-events.mjs --input <path/to/events.jsonl> --format text node scripts/audit-checklist.mjs --rules references/compliance-rules.json --target <project-or-doc-path> --social true --format textreferences/game-approval-checklist.md
Treat non-zero exits as hard blockers for release readiness.- 定义或审核游戏需求文档、游戏模式及约束条件。加载。
references/workflow.md - 在确定UI方案前,校验book/index的完整性。运行。
scripts/validate-books-index.mjs - 校验事件流合约及顺序。运行。
scripts/validate-rgs-events.mjs - 校验前端集成预期。加载和
references/frontend-integration.md。references/rgs-event-contract.md - 在发布审核前执行合规校验检查。使用和
references/compliance-rules.json运行references/compliance-checklist.md。scripts/audit-checklist.mjs - 最终审批检查。对照(预检查、数学模型、前端、司法管辖区要求)校验完整游戏。
references/game-approval-checklist.md
References
命令```bash
-
: End-to-end process and required gates.
references/workflow.md -
: Book generation and index validation expectations.
references/book-generation-validation.md -
: Required event order and field expectations.
references/rgs-event-contract.md -
: Deterministic player integration patterns.40→ -
references/frontend-integration.md: Stake checklist and jurisdiction requirements. 41→ -references/compliance-checklist.md: Machine-readable restricted phrase and required-phrase checks.references/compliance-rules.json -
: Comprehensive QA/Release sign-off gates.
references/game-approval-checklist.md -
: Stake Engine RGS API and wallet flow details.
references/stake-engine-rgs.md -
: Stake Engine replay mode requirements.
references/stake-engine-replay.md -
: Frontend compliance checklist.
references/stake-engine-frontend-checklist.md -
: CRITICAL formulas for API (x1e6) vs Book (x100) scaling. 43→ 44→ ## Execution Rules
references/currency-rules.md -
Strict Currency/Math Scaling:
- API (Wallet/RGS): Use scale.
1,000,000,display = api / 1e6.api = display * 1e6 - Books (Math/Events): Use scale.
100,multiplier = bookVal / 100.win = bet * (bookVal / 100) - Never mix these scales. See .
references/currency-rules.md
- API (Wallet/RGS): Use
-
Keep frontend stateless: never re-calculate payouts if events already provide them.
-
Validate data contracts before tuning UX or animation details.
-
Enforce compliance checks by default () unless user explicitly says otherwise.
--social true -
When reporting findings, include file path and line when available.
node scripts/validate-books-index.mjs --index <path/to/index.json> --format text
node scripts/validate-rgs-events.mjs --input <path/to/events.jsonl> --format text
node scripts/audit-checklist.mjs --rules references/compliance-rules.json --target <project-or-doc-path> --social true --format text
将非零退出码视为发布就绪的硬性阻碍。—
参考文档
—
- : 全流程步骤及必填校验关卡。
references/workflow.md - : 书籍生成及索引校验规范。
references/book-generation-validation.md - : 事件顺序及字段要求。
references/rgs-event-contract.md - : 确定性玩家集成模式。
references/frontend-integration.md - : Stake校验清单及司法管辖区要求。
references/compliance-checklist.md - : 机器可读的受限短语及必填短语校验规则。
references/compliance-rules.json - : 全面的QA/发布签字确认关卡。
references/game-approval-checklist.md - : Stake Engine RGS API及钱包流程详情。
references/stake-engine-rgs.md - : Stake Engine回放模式要求。
references/stake-engine-replay.md - : 前端合规校验清单。
references/stake-engine-frontend-checklist.md - : 关键 API(x1e6)与Book(x100)缩放规则公式。
references/currency-rules.md
—
执行规则
—
- 严格的货币/数学缩放规则:
- API(钱包/RGS): 使用缩放比例。
1,000,000,display = api / 1e6。api = display * 1e6 - Books(数学模型/事件): 使用缩放比例。
100,multiplier = bookVal / 100。win = bet * (bookVal / 100) - 绝对不要混用这些缩放比例。详见。
references/currency-rules.md
- API(钱包/RGS): 使用
- 保持前端无状态:若事件已提供派彩结果,切勿重新计算。
- 在优化UX或动画细节前,先校验数据合约。
- 默认强制执行合规检查(),除非用户明确说明无需执行。
--social true - 报告检查结果时,若有可用信息,需包含文件路径及行号。