Agent skill

Sid Catalog

by sohu-mptc in sohu-mptc/FlashRec

Build SID trie catalogs for FlashRec from OpenOneRec RecIF packed mappings.

Apache-2.0Auto-check passedAI & LLM Engineering

Install Sid Catalog

skills CLI
$ npx skills add sohu-mptc/FlashRec --skill sid-catalog -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sohu-mptc/FlashRec sid-catalog --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sohu-mptc/FlashRec.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/sid-catalog .claude/skills/sid-catalog && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sid-catalog
GitHub stars
107
Token cost
~468 tokens
SKILL.md length
132 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
Apache-2.0

At a glance

Build SID trie catalogs for FlashRec from OpenOneRec RecIF packed mappings.

  • The user mentions sid-vocab-file
  • SKILL.md covers 默认(按源文件自动分层), 与服务参数对齐 and 检查
  • Calls bash
  • Flashrec --catalog

What it does

Sid Catalog is an agent skill from sohu-mptc/FlashRec. Build SID trie catalogs for FlashRec from OpenOneRec RecIF packed mappings. Use when the user mentions sid-vocab-file, sid2pid, 物品目录, catalog, trie, flashrec --catalog, convertrecifcatalog, buildcatalog.sh, or illegal SID rate.

Its SKILL.md is about 470 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering. The repository describes itself as: FlashRec is a CUDA-graph engine for generative recommendation: wide beam search (3–5 SID steps, n=50–512+) over a trie-constrained catalog, in-process FP8 serving, and ranked… The licence is Apache-2.0.

When your agent uses it

  • The user mentions sid-vocab-file
  • Flashrec --catalog
  • Convertrecifcatalog
  • Buildcatalog.sh

Example prompts

  • “/sid-catalog”

What it can do on your machine

Read from SKILL.md and the folder at commit 1089682. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sid Catalog loads about 468 tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 132 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~468

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sohu-mptc/FlashRec at commit 1089682, republished under its Apache-2.0 licence (© sohu-mptc). 132 words, ~468 tokens.

Download SKILL.mdSave it as .claude/skills/sid-catalog/SKILL.md (or your agent's skills folder).
name
sid-catalog
description
Build SID trie catalogs for FlashRec from OpenOneRec RecIF packed mappings. Use when the user mentions sid-vocab-file, sid2pid, 物品目录, catalog, trie, flashrec --catalog, convert_recif_catalog, build_catalog.sh, or illegal SID rate.

构建 SID catalog

--sid-vocab-file 需要逗号 key 的 JSON(如 "a,b,c,1")。RecIF 原始 sid2pid.json / sid2iid.json 用打包整数,必须先转换。不转换直接喂引擎会建错 trie。

默认(按源文件自动分层)

bash
flashrec --catalog /path/to/OpenOneRec-RecIF/benchmark_data

RecIF 打包整数(a*8192^2+b*8192+c)会写成 4 层 data/catalogs/sid2pid_beamrec_l4.json(末段 1 = <|sid_end|>)。逗号 key 按源文件段数原样保留。data/ 已 gitignore,不要提交生成物。

旗标 / 变量默认含义
--catalog / DATA_DIR(必填)RecIF benchmark_data 目录或 sid2pid.json
--catalog-task / TASKvideovideo / product / both
--catalog-levels / LEVELS(自动)覆盖推断层数。3 = "a,b,c";4 = 在 3 层 RecIF 后追加 {sid_begin, sid_end}
--catalog-out / OUT_DIRdata/catalogs输出目录或 JSON 文件
bash
flashrec --catalog sid2pid.json --catalog-out out.json
flashrec --catalog sid2pid.json --catalog-out out.json --catalog-levels 3
DATA_DIR=/path/to/benchmark_data bash scripts/build_catalog.sh

与服务参数对齐

服务只需 --model-path + --sid-vocab-file。引擎从 tokenizer 读取 <s_a_*> / <|sid_begin|> / <|sid_end|>,再结合 catalog 层数推断 token 区间、codebook 大小和 boundary。启动日志会打印 Inferred --sid RANGE/SIZES (boundary B) from tokenizer + catalog。

4 层 catalog(key "a,b,c,1")把结束符做成末层 codebook,生成序列为 [a, b, c, sid_end],结束符 logprob 计入 sequence_score。3 层 catalog ("a,b,c")的 range 只含 codebook,boundary 包在后面。

tokenizer 不用这套命名时才显式传 --sid。换模型后会重新推断,不要把旧 checkpoint 的 token id 抄过去。

检查

  • 输出 JSON 根对象的 key 是逗号分隔整数,不是打包十进制
  • RecIF 打包源默认 4 段且末段为 1;逗号源保持原段数(不要把真实第 4 码改成 1)
  • 启动服务后 invalid_rate 应为 0;若 ~0.28,说明仍在跑开放词表(没挂 vocab 文件)

© sohu-mptc, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/sid-catalog of sohu-mptc/FlashRec.

Open the folder on GitHubat commit 1089682

Compare with similar skills

Sid Catalog next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sid Catalog compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sid Catalog this skillsohu-mptc/FlashRec107—~468Automated safety check: PassApache-2.0
Agent BuildershareAI-lab/learn-claude-code78k6 repos~1.2kAutomated safety check: PassMIT
Add Uint Supportpytorch/pytorch104k2 repos~2.3kAutomated safety check: PassCustom licence
Peft Fine TuningOrchestra-Research/AI-Research-SKILLs13k9 repos~3.1kAutomated safety check: PassMIT
Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs13k9 repos~3.3kAutomated safety check: PassMIT
1passwordtrpc-group/trpc-agent-go1.8k15 repos~656Automated safety check: PassApache-2.0

Similar skills

  • Agent Builder

    shareAI-lab/learn-claude-code

    Design and build AI agents for any domain. An agent skill from shareAI-lab/learn-claude-code.

    78k GitHub starsUsed in 6 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Uint Support

    pytorch/pytorch

    Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.

    104k GitHub starsUsed in 2 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Peft Fine Tuning

    Orchestra-Research/AI-Research-SKILLs

    Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.

    13k GitHub starsUsed in 9 repos~3.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Segment Anything Model Guide

    Orchestra-Research/AI-Research-SKILLs

    Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.

    13k GitHub starsUsed in 9 repos~3.3k tokens
    AI & LLM EngineeringAuto-check passed
  • 1password

    trpc-group/trpc-agent-go

    Set up and use 1Password CLI (op). An agent skill from trpc-group/trpc-agent-go.

    1.8k GitHub starsUsed in 15 repos~656 tokens
    AI & LLM EngineeringAuto-check passed
  • Chroma Vector Database

    Orchestra-Research/AI-Research-SKILLs

    Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.

    13k GitHub starsUsed in 8 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed

More from sohu-mptc/FlashRec

  • Model Deploy

    sohu-mptc/FlashRec

    Deploy and serve GenRec checkpoints with FlashRec (install, serve.sh, SID trie, wide-beam knobs, health/curl, FP8, profiling).

    107 GitHub stars~974 tokensUpdated 7 days ago
    Auto-check passed
  • Recif Eval

    sohu-mptc/FlashRec

    Run RecIF beam×concurrency eval and FlashRec vs SGLang/vLLM/TRT-LLM baselines.

    107 GitHub stars~915 tokensUpdated 7 days ago
    Auto-check passed
  • Profile Serving

    sohu-mptc/FlashRec

    Capture torch.profiler traces on a running FlashRec server. An agent skill from sohu-mptc/FlashRec.

    107 GitHub stars~312 tokensUpdated 7 days ago
    Auto-check passed
  • Add Model

    sohu-mptc/FlashRec

    给 FlashRec 引擎接入一个新模型架构(新的 HF checkpoint / 非 Qwen3 结构)。涵盖模型定义、权重合并加载、FP8 双路径、融合 kernel 接线、CUDA graph 兼容、精度校验、以及压测+trace 验证闭环。当用户要"增加/支持/接入新模型"时使用。

    107 GitHub stars~1.7k tokensUpdated 7 days ago
    Auto-check passed

Questions about Sid Catalog

What does Sid Catalog do?

Build SID trie catalogs for FlashRec from OpenOneRec RecIF packed mappings. Sid Catalog is an agent skill from sohu-mptc/FlashRec. Build SID trie catalogs for FlashRec from OpenOneRec RecIF packed mappings.

When should I use Sid Catalog?

Sid Catalog fits situations like: the user mentions sid-vocab-file; flashrec --catalog; convertrecifcatalog; buildcatalog.sh.

How do I install Sid Catalog in Claude Code?

Run `npx skills add sohu-mptc/FlashRec --skill sid-catalog -a claude-code`. Or copy the skill folder (.claude/skills/sid-catalog in sohu-mptc/FlashRec) into .claude/skills/sid-catalog in your project. Claude Code loads it when a task matches its description.

How do I install Sid Catalog in Codex?

Run `npx skills add sohu-mptc/FlashRec --skill sid-catalog -a codex`. Or copy the skill folder (.claude/skills/sid-catalog in sohu-mptc/FlashRec) into .agents/skills/sid-catalog in your project. Codex loads it when a task matches its description.

Can I use Sid Catalog in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sohu-mptc/FlashRec --skill sid-catalog -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sid-catalog, .gemini/skills/sid-catalog, .github/skills/sid-catalog and .opencode/skills/sid-catalog in your project.

What does Sid Catalog need to run?

Going by SKILL.md and its folder, Sid Catalog needs the command-line tools its instructions call (bash).

Does Sid Catalog access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sid Catalog safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sid Catalog use?

Sid Catalog is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sid Catalog use?

About 468 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Sid Catalog?

Skills that share tags, products or a category with Sid Catalog: Agent Builder (shareAI-lab/learn-claude-code, 78k stars), Add Uint Support (pytorch/pytorch, 104k stars), Peft Fine Tuning (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sid Catalog?

sohu-mptc (a GitHub organization) maintains it in sohu-mptc/FlashRec, which has 107 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 1, 2026.

Source: sohu-mptc/FlashRec on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.