stake-game-developer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Stake Game Developer

Stake游戏开发者

Use this skill to design, validate, and ship Stake games with deterministic event playback and compliance gates.
使用该技能可设计、校验并发布具备确定性事件回放与合规校验机制的Stake游戏。

Workflow

工作流

  1. Define or review the game brief, modes, and constraints. Load
    references/workflow.md
    .
  2. Validate book/index integrity before UI assumptions. Run
    scripts/validate-books-index.mjs
    .
  3. Validate event stream contract and sequencing. Run
    scripts/validate-rgs-events.mjs
    .
  4. Validate frontend integration expectations. Load
    references/frontend-integration.md
    and
    references/rgs-event-contract.md
    .20→ 5. Run compliance gate checks before release review. 21→ Run
    scripts/audit-checklist.mjs
    using
    references/compliance-rules.json
    and
    references/compliance-checklist.md
    . 22→ 23→ 6. Final Approval Check. 24→ Validate full game against
    references/game-approval-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 text

Treat non-zero exits as hard blockers for release readiness.
  1. 定义或审核游戏需求文档、游戏模式及约束条件。加载
    references/workflow.md
  2. 在确定UI方案前,校验book/index的完整性。运行
    scripts/validate-books-index.mjs
  3. 校验事件流合约及顺序。运行
    scripts/validate-rgs-events.mjs
  4. 校验前端集成预期。加载
    references/frontend-integration.md
    references/rgs-event-contract.md
  5. 在发布审核前执行合规校验检查。使用
    references/compliance-rules.json
    references/compliance-checklist.md
    运行
    scripts/audit-checklist.mjs
  6. 最终审批检查。对照
    references/game-approval-checklist.md
    (预检查、数学模型、前端、司法管辖区要求)校验完整游戏。

References

命令```bash

  • references/workflow.md
    : End-to-end process and required gates.
  • references/book-generation-validation.md
    : Book generation and index validation expectations.
  • references/rgs-event-contract.md
    : Required event order and field expectations.
  • references/frontend-integration.md
    : Deterministic player integration patterns.40→ -
    references/compliance-checklist.md
    : Stake checklist and jurisdiction requirements. 41→ -
    references/compliance-rules.json
    : Machine-readable restricted phrase and required-phrase checks.
  • references/game-approval-checklist.md
    : Comprehensive QA/Release sign-off gates.
  • references/stake-engine-rgs.md
    : Stake Engine RGS API and wallet flow details.
  • references/stake-engine-replay.md
    : Stake Engine replay mode requirements.
  • references/stake-engine-frontend-checklist.md
    : Frontend compliance checklist.
  • references/currency-rules.md
    : CRITICAL formulas for API (x1e6) vs Book (x100) scaling. 43→ 44→ ## Execution Rules
  • Strict Currency/Math Scaling:
    • API (Wallet/RGS): Use
      1,000,000
      scale.
      display = api / 1e6
      ,
      api = display * 1e6
      .
    • Books (Math/Events): Use
      100
      scale.
      multiplier = bookVal / 100
      ,
      win = bet * (bookVal / 100)
      .
    • Never mix these scales. See
      references/currency-rules.md
      .
  • 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 (
    --social true
    ) unless user explicitly says otherwise.
  • 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
    : 确定性玩家集成模式。
  • references/compliance-checklist.md
    : Stake校验清单及司法管辖区要求。
  • references/compliance-rules.json
    : 机器可读的受限短语及必填短语校验规则。
  • references/game-approval-checklist.md
    : 全面的QA/发布签字确认关卡。
  • references/stake-engine-rgs.md
    : Stake Engine RGS API及钱包流程详情。
  • references/stake-engine-replay.md
    : Stake Engine回放模式要求。
  • references/stake-engine-frontend-checklist.md
    : 前端合规校验清单。
  • references/currency-rules.md
    : 关键 API(x1e6)与Book(x100)缩放规则公式。

执行规则

  • 严格的货币/数学缩放规则:
    • API(钱包/RGS): 使用
      1,000,000
      缩放比例。
      display = api / 1e6
      api = display * 1e6
    • Books(数学模型/事件): 使用
      100
      缩放比例。
      multiplier = bookVal / 100
      win = bet * (bookVal / 100)
    • 绝对不要混用这些缩放比例。详见
      references/currency-rules.md
  • 保持前端无状态:若事件已提供派彩结果,切勿重新计算。
  • 在优化UX或动画细节前,先校验数据合约。
  • 默认强制执行合规检查(
    --social true
    ),除非用户明确说明无需执行。
  • 报告检查结果时,若有可用信息,需包含文件路径及行号。