Retrieve and present current Steam game deals and special offers with comprehensive game information.
This skill fetches real-time Steam discount data from the Steam Storefront API (no API key required) and presents it in a user-friendly format. It supports regional pricing, language localization, and detailed game information enrichment.
Before fetching data, determine the following from the user's request:
| Preference | Default | Notes |
|---|---|---|
| ----------- | --------- | ------- |
| Country/Region | CN (China) | Affects pricing currency |
| Language | schinese | Affects game titles and descriptions |
| Number of games | 15 | How many deals to show |
| Detailed mode | Yes | Whether to fetch full details per game |
| Minimum discount | 0% | Filter out small discounts |
| Sort order | By discount (highest first) | Options: discount, price, name, reviews |
If the user does not specify preferences, use the defaults above.
Run the bundled fetch script to retrieve deal data:
python3 {SKILL_DIR}/scripts/fetch_steam_deals.py \
--country CN \
--language schinese \
--limit 15 \
--detailed \
--sort discount \
--min-discount 0 \
--output markdown \
--output-file /tmp/steam_deals_today.md
Parameter mapping from user requests:
| User says | Script parameter |
|---|---|
| ----------- | ----------------- |
| "美区价格" / "US pricing" | --country US |
| "日区" / "Japanese prices" | --country JP |
| "港区" | --country HK |
| "英文" | --language english |
| "只看5折以上" / ">50% off" | --min-discount 50 |
| "按价格排序" | --sort price |
| "按评价排序" | --sort reviews |
| "按好评率排序" | --sort rating |
| "给我看30个" | --limit 30 |
| "简单列表就行" | Remove --detailed flag |
| "JSON格式" | --output json |
After the script completes, read the output file and present it to the user:
/tmp/steam_deals_today.md (or the output file path used)--limit increase)After presenting the initial results, handle follow-up requests:
--country parameter--min-discount 100 to find free-to-play promotionsThe main script is at scripts/fetch_steam_deals.py. It:
store.steampowered.com/api/featuredcategoriesstore.steampowered.com/search/results?specials=1store.steampowered.com/api/appdetailsstore.steampowered.com/appreviews/?json=1 Dependencies: Python 3.7+ standard library only (no pip packages required).
Game information returned includes:
For detailed Steam API endpoint documentation, field definitions, rate limits, and country/language codes, refer to references/steam_api_reference.md.
--detailed flag significantly increases data richness but also execution time (due to per-game API calls). For quick overviews, omit it.共 1 个版本