搜索

PythonReactSEOPDF
GitHub Skill

add-name-fix

Add a Steam-to-HLTB game name mapping. Usage: /add-name-fix <appid>, <name>, or "Steam Name" -> "HLTB Name"

jcdoll☆ 7 仓库 Stars3 仓库 Forks

安装与使用

请根据来源仓库和你的 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):
  1. Fetch the Steam store page to verify the AppID exists: https://store.steampowered.com/app/{APPID}
  2. Search HLTB for the game (see "Searching HLTB" below)
  3. Present confirmation summary and ask user to confirm the mapping
If given a Steam name only:
  1. Search for the Steam app ID: WebSearch {game_name} site:store.steampowered.com
  2. Extract the AppID from the Steam URL (format: store.steampowered.com/app/{APPID}/...)
  3. Verify by fetching: https://store.steampowered.com/app/{APPID}
  4. Search HLTB for the game (see "Searching HLTB" below)
  5. Present confirmation summary and ask user to confirm the mapping
If given a full mapping (contains ->):
  1. Parse the arguments to extract the AppID and HLTB name
  2. Verify the AppID by fetching: https://store.steampowered.com/app/{APPID}
  3. Proceed directly to adding the mapping
Searching HLTB

Note: Claude cannot directly access howlongtobeat.com, so use IsThereAnyDeal as a proxy.

  1. Use WebSearch: {game_name} IsThereAnyDeal
  2. Find the IsThereAnyDeal game page in results (format: isthereanydeal.com/game/{slug}/info/)
  3. Fetch the IsThereAnyDeal page to get the HLTB game ID and name
  4. 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):
  1. Read backend/name_fixes.lua
  2. Find the correct position to maintain numerical order (ascending by AppID)
  3. Insert the new mapping: [{APPID}] = "{HLTB name}",
  4. Report the mapping that was added

Bulk Additions

When adding many entries at once (e.g., from discover-name-fixes.js output):

  1. Append all new entries to the end of the file (before the closing })
  2. Don't worry about sort order or duplicates
  3. Run /name-fix-review to 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:

  1. Fetch Steam page: https://store.steampowered.com/app/1004640
  2. Steam name: "FINAL FANTASY TACTICS - The Ivalice Chronicles"
  3. WebSearch: "FINAL FANTASY TACTICS IsThereAnyDeal"
  4. Fetch IsThereAnyDeal page to get HLTB game ID
  5. 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
  6. User confirms mapping
  7. 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)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!