Interesting: Running a Fun Number Guessing Game inside an Agent

Preface

When building Skills in environments like Cursor or Claude Code, the common approach involves writing long documents or integrating external APIs. If you simply want to verify whether “wake words + conversation flow + local scripts” work end-to-end, using a small game as a template is often more intuitive: the rules are fixed, there is no dependency on API keys, and it is convenient to adjust parameters by referencing the instructions in SKILL.md.

Below is an introduction to the SkillHub community Skill interesting- (coordinate @user_c7d255d2/interesting-guess-game). It encapsulates a “Number Guessing Game” as a content-type capability that can be scheduled by Agents via instructions, accompanied by a Python implementation that can run independently.

What is this

The display name of interesting- on SkillHub is interesting-, with version 1.0.0, categorized as content-creation, source community, and published by user_c7d255d2. The SKILL.md within the package defines the capability as a “fun number guessing game”: the system randomly generates a target number based on difficulty, provides feedback on whether the guess is too high or too low after the player inputs a guess, and tracks the score and number of guesses.

SkillHub metadata indicates requires_api_key=false, meaning no API Key configuration is needed. According to the page and store scraping information, the rating is 100000, with 734 downloads and an install count of 0 (based on SkillHub display).

Official entry points:

Core Features

The following are derived from the SKILL.md and guess_game.py inside the installed Skill package, which can be verified item-by-item against the repository content.

  1. Three Difficulty Levels: Easy (1–50, max 10 attempts), Medium (1–100, 8 attempts), Hard (1–200, 5 attempts).
  2. Interaction Flow: Select difficulty → Generate random target number → Loop to receive guesses → Provide “too high/too low” hints → Settle score after guessing correctly or running out of attempts → Option to play again or exit.
  3. Input Validation: Only accepts pure numbers that can be converted to integers; invalid input prompts re-entry without deducting attempts (the ValueError branch does not decrease remain_times).
  4. Scoring: When guessed correctly, the score accumulates as remaining attempts × 10 (see guess_check implementation).
  5. Wake Words (Documented conventions): “guess number”, “start mini game”, “fun number guessing”, “launch number game”.
  6. Conversation Parameters (Documented table): game_level (easy/medium/hard), user_num (player’s guessed integer); the Agent organizes multi-turn dialogue according to the Skill instructions, corresponding to the CLI script logic.

Runtime environment: Python 3.7 or above. The author field is recorded as jm-jsjkxyjs01-jpn-506 in SKILL.md.

Installation and Activation

Install via SkillHub CLI

First, ensure skillhub is available on your local machine (see SkillHub Installation Docs for installation methods). When installing, you must use --dir to point to the current Agent’s skills directory; otherwise, it defaults to ./skills/ and may not be recognized.

The common directory for Cursor is ~/.cursor/skills/. Community packages require a namespace:

skillhub install interesting-guess-game --namespace user_c7d255d2 --dir ~/.cursor/skills/

Upon successful installation, the package path will look like ~/.cursor/skills/@user_c7d255d2/interesting-guess-game/, containing SKILL.md and guess_game.py.

Let AI install via Prompts

The standard prompt provided on the SkillHub detail page is: Ask the Agent to install @user_c7d255d2/interesting-guess-game according to https://skillhub.cn/install/skillhub.md. Different clients have different skills directories (the documentation lists paths for Claude Code, Codex, Windsurf, etc.); simply replace --dir based on your environment. The logic is the same as the previous section.

After installing or updating the Skill, restart or refresh the Agent as required by your client to load the new SKILL.md.

Typical Usage

Drive via Dialogue following Skill Demonstrations

Instruction examples provided in SKILL.md:

  1. “Start number guessing game”: Enter the game home page and select difficulty.
  2. “Select easy difficulty guess number”: Generate a target number within the 1–50 range and start guessing.
  3. “End game”: Terminate the match and display the current score.

After the Agent loads this Skill, it can be triggered via the natural language or wake words above. The model will guide difficulty selection, receive numbers, and provide size feedback according to the runtime logic in the documentation.

Run Python Script Locally

Without going through an Agent, you can execute the included script in the Skill directory to verify the rules:

cd ~/.cursor/skills/@user_c7d255d2/interesting-guess-game
python3 guess_game.py

The terminal will prompt to select difficulty using 1/2/3, followed by a loop reading guesses via input. The output matches the code embedded in SKILL.md.

Use Cases and Notes

Who is it for

  • Those who need a minimal, usable content-creation Skill sample to learn SKILL.md structure, wake word, and parameter table writing.
  • Those who want to demonstrate how an Agent coordinates with local Python to complete multi-turn interactions without API dependencies.
  • A starting point for teaching content or casual mini-games, allowing further modification of ranges, attempt counts, or scoring formulas.

Limitations and Notes

  1. The game core relies on terminal input/print, suitable for local interaction; in automated environments without stdin, interaction methods need to be changed, and no additional adaptation is provided in the documentation.
  2. Difficulty and ranges are hardcoded in the level_info dictionary; adjusting rules requires modifying guess_game.py or syncing updates to SKILL.md.
  3. Classified as content creation rather than a production toolchain; do not expect it to provide business APIs or data processing capabilities.
  4. The “install” count in store statistics may not sync with local --dir installations; rely on the appearance of @user_c7d255d2/interesting-guess-game in your local skills directory as the standard.

Conclusion

interesting- writes the number guessing game as a standard Skill package: the documentation explains trigger words and flow, the script implements three difficulty levels and scoring, and no API Key is required. If you want to try installing a lightweight community Skill in your Agent, you can install it to the corresponding skills directory via namespace and start experiencing it with “Start number guessing game”.

Official URL: https://www.skillhub.cn/skills/user_c7d255d2/interesting-guess-game

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye