Preface¶
When asking questions in a conversation like “What were the recent Double Color Ball draws?” or “Show me recent Super Lotto results,” the model can often only give vague answers. It neither retrieves draw numbers arranged by issue number nor reliably provides verifiable sources. Opening the official China Welfare Lottery or Sports Lottery websites, or third-party pages, and then copying and pasting manually disrupts the Agent workflow.
Below is an introduction to the community Skill ttery-query on SkillHub (coordinates @user_99f00b67/ttery-query, current version 1.1.0). It uses standard SKILL.md conventions to define trigger words and capability descriptions, and comes with a Node.js script to fetch data or fall back to cached data. It’s suitable for handing off requirements like “check draw results,” “view the last 10 draws,” or “give me two recommended tickets” to an Agent.
What Is This¶
ttery-query is a community Skill (source: community) published by user_99f00b67 on SkillHub. The package’s package.json describes the skill as “Lottery query skill - Double Color Ball/Super Lotto draw result query,” authored by 罗汉 (Luo Han).
SkillHub categorizes it under knowledge-management, with subcategory tags “Knowledge base Q&A” and “Information retrieval.” The platform tag requires_api_key=false indicates that, according to SkillHub metadata, no separate API Key configuration is needed. As of the data retrieval time, SkillHub rating is 100000, downloads are 922, and installation count is 0 (based on platform statistics).
Skill homepage and API entry points:
- Display page: https://www.skillhub.cn/skills/user_99f00b67/ttery-query
- API homepage: https://api.skillhub.cn/user_99f00b67/ttery-query
Core Features¶
The following capabilities come from SKILL.md and query.js within the Skill package, and can be cross-referenced with the files after installation.
- Double Color Ball and Super Lotto recent 10 draws: Aggregates and displays recent issue numbers and draw numbers.
- Data source and fallback: Prioritizes fetching from third-party lottery APIs; when the API is unavailable, uses the local
cache.jsoncache (SKILL.mdstates that priority optimization started in v1.1.0, and script comments explain that it maintains the cache using official websites and Baidu search methods). - Smart recommendation of 2 tickets: Returns two recommended tickets along with draw information;
SKILL.mdclearly marks this as for entertainment reference only. - Natural language triggers: Activated via trigger words on the Agent side, no need to memorize fixed CLI commands (see “Typical Usage” below).
At the script level (query.js), it also supports direct command-line queries and can be used for page scraping when Playwright is available. When Playwright is not installed, it attempts to install it or falls back to the backup API/cache path.
Installation and Activation¶
1. Prepare SkillHub CLI¶
If skillhub is not yet installed on your machine, you can follow the official SkillHub installation instructions (full installation or CLI only):
command -v skillhub && skillhub --version
If not installed:
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
For more complete priority sources and directory instructions, see: https://skillhub.cn/install/skillhub.md
2. Install ttery-query¶
When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, the default location ./skills/ may not be recognized.
The installation method provided by SkillHub search is:
skillhub install ttery-query --namespace user_99f00b67 --dir <your skills directory>
In Cursor, the commonly used personal skills path is:
skillhub install ttery-query --namespace user_99f00b67 --dir ~/.cursor/skills/
You can also provide the following prompt to an AI that supports the SkillHub installation protocol and let it complete the installation according to the official documentation:
Please install `@user_99f00b67/ttery-query` according to https://skillhub.cn/install/skillhub.md.
3. Runtime Environment¶
- Node.js:
query.jsis a Node script, andpackage.jsonpointsmainto this file. - Optional Playwright: Used for some official website scraping scenarios; when missing, the script will prompt and attempt to install it or downgrade to API/cache.
- No SkillHub-level API Key needed: Consistent with the platform’s
requires_api_key=false.
After installation, restart or refresh the Agent so that the new skills directory is loaded (specific behavior depends on the client you are using).
Typical Usage¶
In Agent Conversations¶
The trigger words defined in SKILL.md include: 双色球 (Double Color Ball), 大乐透 (Super Lotto), 彩票查询 (lottery query), 开奖结果 (draw results), 双色球开奖 (Double Color Ball draw), 大乐透开奖 (Super Lotto draw).
Official usage examples (original intent, can be said directly in conversation):
| User Statement | Expected Behavior |
|---|---|
| “双色球 (Double Color Ball)” | Returns Double Color Ball recent 10 draws + 2 recommended tickets |
| “大乐透 (Super Lotto)” | Returns Super Lotto recent 10 draws + 2 recommended tickets |
| “查询双色球开奖结果 (Query Double Color Ball draw results)” | Same as above |
| “今天双色球开什么 (What’s today’s Double Color Ball draw)” | Same as above |
| “推荐大乐透号码 (Recommend Super Lotto numbers)” | Returns Super Lotto draw results and recommendations |
The Agent should read the installed SKILL.md and call the package logic when trigger words are matched (or you can instruct it to execute query.js).
Command Line Self-Test¶
Navigate to the skill package path in the installation directory (example shows SkillHub’s default namespace layout):
cd ~/.cursor/skills/@user_99f00b67/ttery-query
node query.js 双色球
Or:
node query.js 大乐透
When no parameters are provided, the script will prompt: Please specify query type: 双色球 or 大乐透.
You can also use the npm scripts defined in package.json (must be in the skill directory):
npm run query -- 双色球
Applicable Scenarios and Notes¶
Who it’s for
- Users who want to query recent draws of China Welfare Lottery’s Double Color Ball and Sports Lottery’s Super Lotto using natural language in environments that support Agent Skills, such as Cursor or Claude Code.
- Scenarios where users need the Agent to provide a structured “recent 10 draws” list in its response, and are willing to accept “two recommended tickets” as entertainment-oriented output.
Limitations and Notes
- Compliance and responsible gaming:
SKILL.mdstates that recommended numbers are for entertainment only; gamble responsibly. Draw results are subject to the official China Welfare Lottery and Sports Lottery websites. - Timeliness: Cache or third-party APIs may lag;
SKILL.mdrecommends verifying important results on the official website. - Network and dependencies: The script accesses external APIs or official websites; automatic Playwright installation may be restricted by environment permissions.
- Empty platform description: The
description/description_zhreturned by the SkillHub API is currently empty; capabilities are subject to theSKILL.mdin the installed package. - Category tags: The store categorizes it as knowledge-management, but the actual content is lottery draw queries; when searching, you can use keywords
ttery-queryor “双色球” / “大乐透”.
Conclusion¶
ttery-query encapsulates recent draw queries and simple recommendations for Double Color Ball and Super Lotto into an Agent Skill: it has clear trigger words, comes with a Node script and cache fallback, and requires no additional API Key configuration. If you frequently ask about draw information in conversations, you can install it into the skills directory of environments like Cursor using the commands above and give it a try.
Official SkillHub page: https://www.skillhub.cn/skills/user_99f00b67/ttery-query