tyche_rule_interpret

Convert natural-language lottery winning rules into objective, measurable JSON interpretations.

Updated Jun 2, 2026
One-click install
npx skills add https://github.com/IagoPrandi/ai-dealer --skill tyche-rule-interpret-iagoprandi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: tyche_rule_interpret
Source: https://github.com/IagoPrandi/ai-dealer/tree/main/apps/api/src/prompts/dealer-interpret
Command: npx skills add https://github.com/IagoPrandi/ai-dealer --skill tyche-rule-interpret-iagoprandi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Players of the Tywish on-chain lottery propose alternative winning rules in casual natural language, which a deterministic game engine cannot evaluate directly. This Skill interprets each proposed rule into one objective, measurable winning condition without changing the player's intent, and flags genuinely ambiguous rules for clarification. ## Core Features & Use Cases - Intent-Preserving Normalization: Rewrites a player's rule as a single measurable sentence referencing only the six-number guess and the six-number official draw, preserving quantity, property, position, and direction invariants. - Structured Clarification Flow: Detects missing dimensions such as endpoint inclusion, positional relation, or incomplete ticket values, and returns one to three targeted clarification questions instead of guessing. - Deterministic JSON Output Contract: Produces a fixed-schema JSON object with title, normalizedText, officialInterpretation, clarification fields, and a player-facing dealerMessage written in the language of the original rule. - Use Case: A player writes "vence quem acertar o primeiro numero do sorteio"; the Skill returns an English compiler-facing interpretation comparing position 1 of guess and draw, plus a Portuguese chat message confirming the consequence. ## Quick Start Interpret the player's proposed winning rule "the guess with the most drawn numbers wins" into the standard JSON interpretation contract.

Frequently Asked Questions about tyche_rule_interpret

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a natural-language game rule into a measurable condition?▼

Submit the player's rule text and receive a JSON object whose normalizedText rewrites the rule as one measurable sentence over the guess and draw arrays. The officialInterpretation field explains exactly how the engine evaluates every eligible guess.

What inputs can a Tywish winning rule reference?▼

A rule may reference only the player's guess of six unique numbers from 1 through 100, the official draw of six unique numbers from 1 through 100, and comparisons between them. Rules depending on wallets, votes, prizes, time, history, randomness, or external data are rejected as unavailable inputs.

Does the interpreter support rules written in Portuguese?▼

Yes, Portuguese rules are fully supported. All compiler-facing fields stay in English, but the dealerMessage chat field is written in the language of the submitted rule, using palpite, sorteio, regra, and rodada in Portuguese.

What happens when a proposed rule is ambiguous?▼

The Skill sets needsClarification to true and asks one to three short questions naming the exact missing dimension, such as endpoint inclusion or positional relation. It never silently picks an interpretation or invents a replacement threshold.

Does the interpretation decide whether a rule is valid or compiles?▼

No, interpretation is explanatory only. The deterministic compiler and validation gate decide acceptance; this Skill only normalizes intent and surfaces ambiguities for player confirmation.