add-name-fix
Add a Steam-to-HLTB game name mapping. Usage: /add-name-fix <appid>, <name>, or "Steam Name" -> "HLTB Name"
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Add Name Fix
Adds a game name mapping from Steam AppID to HLTB name in backend/name_fixes.lua.
Input Formats
The skill accepts three input formats:
1. Steam App ID (preferred)
/add-name-fix 1004640
2. Steam Game Name
/add-name-fix "FINAL FANTASY TACTICS - The Ivalice Chronicles"
3. Full Mapping
/add-name-fix 1004640 -> "Final Fantasy Tactics: The Ivalice Chronicles"
Instructions
If given an App ID (numeric input):
- Fetch the Steam store page to verify the AppID exists:
https://store.steampowered.com/app/{APPID} - Search HLTB for the game (see "Searching HLTB" below)
- Present confirmation summary and ask user to confirm the mapping
If given a Steam name only:
- Search for the Steam app ID: WebSearch
{game_name} site:store.steampowered.com - Extract the AppID from the Steam URL (format:
store.steampowered.com/app/{APPID}/...) - Verify by fetching:
https://store.steampowered.com/app/{APPID} - Search HLTB for the game (see "Searching HLTB" below)
- Present confirmation summary and ask user to confirm the mapping
If given a full mapping (contains ->):
- Parse the arguments to extract the AppID and HLTB name
- Verify the AppID by fetching:
https://store.steampowered.com/app/{APPID} - Proceed directly to adding the mapping
Searching HLTB
Note: Claude cannot directly access howlongtobeat.com, so use IsThereAnyDeal as a proxy.
- Use WebSearch:
{game_name} IsThereAnyDeal - Find the IsThereAnyDeal game page in results (format:
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 name:** "{exact name from HLTB}"
- **HLTB page:** {URL}
Adding the mapping (single entry):
- Read
backend/name_fixes.lua - Find the correct position to maintain numerical order (ascending by AppID)
- Insert the new mapping:
[{APPID}] = "{HLTB name}", - Report the mapping that was added
Bulk Additions
When adding many entries at once (e.g., from discover-name-fixes.js output):
- Append all new entries to the end of the file (before the closing
}) - Don't worry about sort order or duplicates
- Run
/name-fix-reviewto sort numerically and remove duplicates
This is much faster than inserting each entry in the correct position.
Verifying Entries via Steam API
After adding entries, verify them against Steam's API to catch mismatches:
node -e "
const ids = [APPID1, APPID2, ...]; // Add your 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));
}
})();
"
Compare the Steam names with your HLTB fix names. Flag entries where:
- The game title is completely different (wrong AppID or HLTB error)
- Edition suffixes don't match (e.g., "HD" vs base game, "Definitive Edition" vs original)
Example Workflow
For app ID 1004640:
- Fetch Steam page:
https://store.steampowered.com/app/1004640 - Steam name: "FINAL FANTASY TACTICS - The Ivalice Chronicles"
- WebSearch: "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 name: "Final Fantasy Tactics: The Ivalice Chronicles"
- HLTB page: https://howlongtobeat.com/game/169173
- User confirms mapping
- Insert into name_fixes.lua in numerical order:
[1004640] = "Final Fantasy Tactics: The Ivalice Chronicles",
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-02-02
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!