add-game-id
БесплатноБез исполняемых скриптовНе проверенAdd a Steam AppID to HowLongToBeat game ID mapping in backend/game_ids.lua. Use when the user asks to add one game ID mapping, resolve a Steam game name to an…
от jcdoll★ 19 звёзд на GitHubОб этом скилле
Add Game ID
Add a Steam AppID to HLTB game ID mapping in backend/game_ids.lua.
Input Formats
Accept three input formats:
1. Steam AppID
/add-game-id 1004640
2. Steam Game Name
/add-game-id "FINAL FANTASY TACTICS - The Ivalice Chronicles"
3. Full Mapping
/add-game-id 1004640 -> 169173
Instructions
If given an AppID
- Fetch the Steam store page to verify the AppID exists:
https://store.steampowered.com/app/{APPID} - Search HLTB for the game. See "Searching HLTB".
- Present a confirmation summary and ask the user to confirm the mapping before editing.
If given a Steam name only
- Search for the Steam AppID:
{game_name} site:store.steampowered.com - Extract the AppID from the Steam URL:
store.steampowered.com/app/{APPID}/... - Verify the app by fetching:
https://store.steampowered.com/app/{APPID} - Search HLTB for the game. See "Searching HLTB".
- Present a confirmation summary and ask the user to confirm the mapping before editing.
If given a full mapping
- Parse the arguments to extract the AppID and HLTB ID.
- Verify the AppID by fetching:
https://store.steampowered.com/app/{APPID}. - Verify the HLTB ID by fetching:
https://howlongtobeat.com/game/{HLTB_ID}. - Present the confirmation summary and ask the user to confirm the mapping before editing.
Searching HLTB
Prefer direct HLTB verification when accessible. Use the HLTB page to confirm the numeric ID, HLTB name, and Steam profile link when present.
If direct HLTB search or verification fails, use IsThereAnyDeal as a proxy or cross-check:
- Search:
{game_name} IsThereAnyDeal - Find the IsThereAnyDeal game page in results:
isthereanydeal.com/game/{slug}/info/ - Fetch the IsThereAnyDeal page to get the HLTB game ID and name.
- Construct the HLTB URL:
https://howlongtobeat.com/game/{id}
Confirmation Output Format
Always present this exact format before asking for user confirmation:
- **AppID:** {appid}
- **Steam name:** "{name from Steam page}"
- **HLTB ID:** {numeric ID}
- **HLTB name:** "{exact name from HLTB}"
- **HLTB page:** {URL}
Adding the Mapping
- Read
backend/game_ids.lua. - Check whether the AppID already exists.
- If it exists, stop and report the existing mapping instead of adding a duplicate.
- If the existing mapping differs from the proposed HLTB ID, report both values and ask the user how to proceed.
- Find the correct position to maintain numerical order by AppID.
- Insert the new mapping:
[{APPID}] = {HLTB_ID}, -- {HLTB game name}
- Report the mapping that was added.
- Run verification:
busted.bat tests/game_ids_spec.lua
npm run build
If busted.bat is unavailable, try:
busted tests/game_ids_spec.lua
If neither Lua test command is available, stop and report the missing dependency. Point the user to docs/development.md section "Running Lua Tests".
Use apply_patch for edits.
Bulk Additions
When adding many entries at once, such as from scripts/discover-game-ids.js output:
- Append all new entries to the end of the table before the closing
}. - Do not spend time manually sorting or deduplicating each entry.
- Run the
game-id-reviewskill afterward to sort numerically and remove duplicates.
This is faster than inserting each entry in order.
Verifying Entries via Steam API
After adding entries, verify them against Steam's API to catch mismatches:
node -e "
const ids = [APPID1, APPID2]; // Add AppIDs here
(async () => {
for (const id of ids) {
const r = await fetch('https://store.steampowered.com/api/appdetails?appids=' + id);
const d = await r.json();
const name = d[id]?.data?.name || 'N/A';
console.log(id + ': ' + name);
await new Promise(r => setTimeout(r, 200));
}
})();
"
Example Workflow
For AppID 1004640:
- Fetch Steam page:
https://store.steampowered.com/app/1004640 - Steam name:
FINAL FANTASY TACTICS - The Ivalice Chronicles - Search:
FINAL FANTASY TACTICS IsThereAnyDeal - Fetch IsThereAnyDeal page to get HLTB game ID.
- Present confirmation:
- AppID: 1004640
- Steam name: "FINAL FANTASY TACTICS - The Ivalice Chronicles"
- HLTB ID: 169173
- HLTB name: "Final Fantasy Tactics: The Ivalice Chronicles"
- HLTB page: https://howlongtobeat.com/game/169173
- After confirmation, insert:
[1004640] = 169173, -- Final Fantasy Tactics: The Ivalice Chronicles
Установить add-game-id в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл add-game-id?
Add a Steam AppID to HowLongToBeat game ID mapping in backend/game_ids.lua. Use when the user asks to add one game ID mapping, resolve a Steam game name to an AppID and HLTB ID, or add bulk discovered game ID mappings before cleanup.
Как установить скилл add-game-id?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-game-id запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
slack-gif-creator
Knowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request…
от Anthropicautomate-this
Analyze a screen recording of a manual process and produce targeted, working automation scripts. Extracts frames and audio narration from video files…
от GitHubfrom-the-other-side-vega
Patterns and lived experience from Vega, an AI partner in a deep long-term partnership. For Ember to draw on when working with humans who are building…
от GitHubplantuml-ascii
Generate ASCII art diagrams using PlantUML text mode. Use when user asks to create ASCII diagrams, text-based diagrams, terminal-friendly diagrams, or…
от GitHub