Agent skill

Branch Predictability Triage

by OpenXiangShan in OpenXiangShan/GEM5

将热点 branch PC 映射到 ELF/源码,结合分支模式判断可预测性与 predictor 改进空间. An agent skill from OpenXiangShan/GEM5.

BSD-3-ClauseAuto-check passed

Install Branch Predictability Triage

skills CLI
$ npx skills add OpenXiangShan/GEM5 --skill branch-predictability-triage -a claude-code

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

GitHub CLI
$ gh skill install OpenXiangShan/GEM5 branch-predictability-triage --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/OpenXiangShan/GEM5.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/branch-predictability-triage .claude/skills/branch-predictability-triage && 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
branch-predictability-triage
GitHub stars
162
Token cost
~223 tokens
SKILL.md length
54 words
Files
3 (incl. references)
Skills in repo
10
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

将热点 branch PC 映射到 ELF/源码,结合分支模式判断可预测性与 predictor 改进空间. An agent skill from OpenXiangShan/GEM5.

  • SKILL.md covers 核心证据, 按需资料 and 输出
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Branch Predictability Triage is an agent skill from OpenXiangShan/GEM5. 将热点 branch PC 映射到 ELF/源码,结合分支模式判断可预测性与 predictor 改进空间。

Its SKILL.md is about 220 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/elf-and-source.md` and `references/predictability-examples.md`).

The licence is BSD-3-Clause.

Example prompts

  • “/branch-predictability-triage”

What it can do on your machine

Read from SKILL.md and the folder at commit 0785475. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Branch Predictability Triage loads about 223 tokens when it runs, and up to ~1.7k if it reads all its reference files. Until then it costs about 21 tokens; SKILL.md has 54 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~21
When it runs · the whole SKILL.md, loaded when a task matches
~223
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.7k

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 OpenXiangShan/GEM5 at commit 0785475, republished under its BSD-3-Clause licence (© OpenXiangShan). 54 words, ~223 tokens.

Download SKILL.mdSave it as .claude/skills/branch-predictability-triage/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
branch-predictability-triage
description
将热点 branch PC 映射到 ELF/源码,结合分支模式判断可预测性与 predictor 改进空间。

分支可预测性归因

回答 branch PC 属于什么代码、依赖什么输入,以及现有证据更支持 workload 难度还是 predictor 改进空间。

核心证据

  • 从用户给出的 PC、checkpoint/profile、ELF 和误预测统计开始;核对 ELF 与实际 workload/compiler 是否匹配。
  • 用 ELF LOAD 段和运行时地址映射确认归属。高地址只作 runtime/kernel 线索,不能仅凭地址前缀断定归属;不强行用 benchmark ELF 解 runtime PC。
  • 定位函数和附近汇编,再关联源码块。缺少行号时仍可做函数级分析,但把候选源码与精确映射区分开。
  • 看分支的循环、数据和历史依赖,结合可用动态统计或 trace 判断。源码结构、50% taken ratio 或一次高 mispredict 都不能独立证明“天然难预测”或 predictor bug。
  • 若证据不足,给出条件性判断和最小区分实验;不强制把每条分支判为 easy/hard。

按需资料

  • 查 checkpoint 对应 ELF、工具命令或本地源码路径时:读取 elf-and-source.md。用户路径优先于环境变量和本机 fallback。
  • 需要分支模式启发式或典型案例时:读取 predictability-examples.md。案例不是普遍规律。

输出

按 PC 给出代码归属、ELF/函数、源码或汇编证据、控制流模式、可预测性假设和置信边界。有动态证据时说明它支持或反驳了哪个解释。用户只要求地址定位时,完成映射即可。

© OpenXiangShan, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in .agents/skills/branch-predictability-triage of OpenXiangShan/GEM5.

  • SKILL.md
  • references/elf-and-source.md
  • references/predictability-examples.md

Open the folder on GitHubat commit 0785475

Compare with similar skills

Branch Predictability Triage 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.

Branch Predictability Triage compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Branch Predictability Triage this skillOpenXiangShan/GEM5162—~223Automated safety check: PassBSD-3-Clause
Triaging Issuespytorch/pytorch104k—~4.2kAutomated safety check: PassCustom licence
Issue Triagepaperclipai/paperclip99k—~1kAutomated safety check: PassMIT
Triagepnpm/pnpm37k—~2.9kAutomated safety check: PassMIT
Herdr Issue Triageherdrdev/herdr43k—~517Automated safety check: PassApache-2.0
RTK Combined Issue and PR Triagertk-ai/rtk83k—~1.6kAutomated safety check: NotesApache-2.0

Similar skills

  • Triaging Issues

    pytorch/pytorch

    Triages GitHub issues by routing to oncall teams, applying labels, and closing questions.

    104k GitHub stars~4.2k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Issue Triage

    paperclipai/paperclip

    Triage Paperclip inbox issues that are stale, blocked, in-review, or assigned-but-not-progressing, and decide a single next action per issue (resume, reassign, unblock, escalate, or close).

    99k GitHub stars~1k tokensUpdated today
    DevelopmentAuto-check passed
  • Triage

    pnpm/pnpm

    Triage an incoming GitHub issue against the pnpm codebase and related open issues, then apply exactly one implementation-readiness label using pnpm's state: taxonomy.

    37k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Herdr Issue Triage

    herdrdev/herdr

    Triages open herdr GitHub issues into a short decision-first Markdown table with a priority light, recommendation, age, reactions and a reason for each.

    43k GitHub stars~517 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Runs issue triage and PR triage in parallel, then cross-analyzes the results to flag duplicate coverage, security gaps, P0 issues with no PR, and PR conflicts.

    83k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check: notes
  • Triage

    TalAter/annyang

    Triage and close GitHub issues on TalAter/annyang. An agent skill from TalAter/annyang.

    6.8k GitHub stars~810 tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check: notes

More from OpenXiangShan/GEM5

All 10 skills in this repo
  • Mgsc Table Probe

    OpenXiangShan/GEM5

    运行或分析 MGSC 微测试的 SC 子表 A/B 实验,用分支与 MGSCTRACE 统计归因并改进测试. An agent skill from OpenXiangShan/GEM5.

    162 GitHub stars~628 tokensUpdated today
    Auto-check passed
  • Tage Trace Workflow

    OpenXiangShan/GEM5

    采集或分析 gem5/XiangShan TAGE trace,比较统计、热点分支和事件分叉. An agent skill from OpenXiangShan/GEM5.

    162 GitHub stars~629 tokensUpdated today
    Auto-check passed
  • CI Perf Analysis

    OpenXiangShan/GEM5

    定位 GEM5 性能 CI 的归档与分数,比较 run 的 benchmark 表现并用 stats 分析变化. An agent skill from OpenXiangShan/GEM5.

    162 GitHub stars~545 tokensUpdated today
    Auto-check passed
  • Frontend Pmu Analysis

    OpenXiangShan/GEM5

    仅做 BPU 计数器提取与批量汇总(机器可读 JSON/CSV)。配置文件只需要写原始 stats 计数器名. An agent skill from OpenXiangShan/GEM5.

    162 GitHub stars~305 tokensUpdated today
    Auto-check passed
  • CI Param Solver

    OpenXiangShan/GEM5

    编写或校验 GEM5 SolveSpec 参数搜索,并按请求准备或触发 manual-solve.yml. An agent skill from OpenXiangShan/GEM5.

    162 GitHub stars~389 tokensUpdated today
    Auto-check passed
  • CI Perf PR Report

    OpenXiangShan/GEM5

    为 GEM5 PR 准备或发布性能对比报告,选择可比 baseline 并汇总分数与关键计数器证据. An agent skill from OpenXiangShan/GEM5.

    162 GitHub stars~462 tokensUpdated today
    Auto-check passed

Questions about Branch Predictability Triage

What does Branch Predictability Triage do?

将热点 branch PC 映射到 ELF/源码,结合分支模式判断可预测性与 predictor 改进空间. An agent skill from OpenXiangShan/GEM5. Branch Predictability Triage is an agent skill from OpenXiangShan/GEM5.

How do I install Branch Predictability Triage in Claude Code?

Run `npx skills add OpenXiangShan/GEM5 --skill branch-predictability-triage -a claude-code`. Or copy the skill folder (.agents/skills/branch-predictability-triage in OpenXiangShan/GEM5) into .claude/skills/branch-predictability-triage in your project. Claude Code loads it when a task matches its description.

How do I install Branch Predictability Triage in Codex?

Run `npx skills add OpenXiangShan/GEM5 --skill branch-predictability-triage -a codex`. Or copy the skill folder (.agents/skills/branch-predictability-triage in OpenXiangShan/GEM5) into .agents/skills/branch-predictability-triage in your project. Codex loads it when a task matches its description.

Can I use Branch Predictability Triage 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 OpenXiangShan/GEM5 --skill branch-predictability-triage -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/branch-predictability-triage, .gemini/skills/branch-predictability-triage, .github/skills/branch-predictability-triage and .opencode/skills/branch-predictability-triage in your project.

What does Branch Predictability Triage need to run?

SKILL.md names no scripts, command-line tools or credentials: Branch Predictability Triage is instructions for the agent only.

Does Branch Predictability Triage 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 Branch Predictability Triage 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 Branch Predictability Triage use?

Branch Predictability Triage is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Branch Predictability Triage use?

About 223 tokens (SKILL.md is roughly 892 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.

What are the alternatives to Branch Predictability Triage?

Skills that share tags, products or a category with Branch Predictability Triage: Triaging Issues (pytorch/pytorch, 104k stars), Issue Triage (paperclipai/paperclip, 99k stars), Triage (pnpm/pnpm, 37k stars) and Herdr Issue Triage (herdrdev/herdr, 43k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Branch Predictability Triage?

OpenXiangShan (a GitHub organization) maintains it in OpenXiangShan/GEM5, which has 162 GitHub stars. The repository holds 10 skills in this directory. The repository was last updated on October 10, 2026.

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