Agent skill

Frontend Pmu Analysis

by OpenXiangShan in OpenXiangShan/GEM5

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

BSD-3-ClauseAuto-check passedFrontend & Design

Install Frontend Pmu Analysis

skills CLI
$ npx skills add OpenXiangShan/GEM5 --skill frontend-pmu-analysis -a claude-code

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

GitHub CLI
$ gh skill install OpenXiangShan/GEM5 frontend-pmu-analysis --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/frontend-pmu-analysis .claude/skills/frontend-pmu-analysis && 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
frontend-pmu-analysis
GitHub stars
162
Token cost
~305 tokens
SKILL.md length
51 words
Files
3 (incl. scripts)
Skills in repo
10
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

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

  • Tasks that involve CSV and tabular files
  • SKILL.md covers 何时使用, 核心原则, 入口脚本 and 默认配置, plus 3 more sections
  • Runs Python scripts from its folder; calls python3

What it does

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

Its SKILL.md is about 310 tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts (for example `scripts/analyze_bpu_counters.py`).

It sits in Frontend & Design, covering CSV and tabular files. The licence is BSD-3-Clause.

When your agent uses it

  • Tasks that involve CSV and tabular files

Example prompts

  • “/frontend-pmu-analysis”

Requirements

  • Python 3

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

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    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

Frontend Pmu Analysis loads about 305 tokens when it runs. Until then it costs about 19 tokens; SKILL.md has 51 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

The full file from OpenXiangShan/GEM5 at commit 0785475, republished under its BSD-3-Clause licence (© OpenXiangShan). 51 words, ~305 tokens.

Download SKILL.mdSave it as .claude/skills/frontend-pmu-analysis/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
frontend-pmu-analysis
description
仅做 BPU 计数器提取与批量汇总(机器可读 JSON/CSV)。配置文件只需要写原始 stats 计数器名。

BPU 计数器分析技能(极简)

何时使用

  • 你已经跑完 gem5,只想批量提取 BPU 相关原始计数器。
  • 你不想在脚本里做复杂推导,只要原始值。
  • 你需要机器可读结果给后续脚本/表格处理。

核心原则

  • 只提取原始 counter,不做公式推导。
  • 配置文件只写 counter 名称。
  • 目录结构不做强约束,递归扫描 stats.txt。
  • 不解析 topMispredictsByBranch.csv 或 bp.db;需要分支级归因时改用对应分析 skill。

入口脚本

  • .agents/skills/frontend-pmu-analysis/scripts/analyze_bpu_counters.py

默认配置

  • .agents/skills/frontend-pmu-analysis/configs/bpu_counters.txt

用法

bash
python3 .agents/skills/frontend-pmu-analysis/scripts/analyze_bpu_counters.py \
  --debug-dir /tmp/debug/tage-new8

指定自定义计数器文件:

bash
python3 .agents/skills/frontend-pmu-analysis/scripts/analyze_bpu_counters.py \
  --debug-dir /tmp/debug/tage-new8 \
  --counters-file /path/to/my_counters.txt

输出

  • bpu_counters_summary.json
  • bpu_counters_summary.csv

输出字段只包含:

  • case 路径
  • stats 路径
  • values(命中的计数器和值)
  • missing(缺失计数器)
  • errors(解析错误)

计数器文件格式

推荐 txt(每行一个):

txt
system.cpu.ipc
system.cpu.commit.branchMispredicts
system.cpu.commit.branches

如果要批量分析更多计数器,也可以添加到configs 的txt 中

也支持:

  • yaml:counters: [ ... ] 或直接列表
  • csv:第一列或 counter 列为计数器名

© 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 (scripts) in .agents/skills/frontend-pmu-analysis of OpenXiangShan/GEM5.

  • SKILL.md
  • configs/bpu_counters.txt
  • scripts/analyze_bpu_counters.py

Open the folder on GitHubat commit 0785475

Compare with similar skills

Frontend Pmu Analysis 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.

Frontend Pmu Analysis compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Frontend Pmu Analysis this skillOpenXiangShan/GEM5162—~305Automated safety check: PassBSD-3-Clause
Flowai Live Dashboard Templatenexu-io/open-design100k—~865Automated safety check: PassApache-2.0
Dota2 LocalizationXavierCHN/x-template217—~567Automated safety check: PassMIT
I18nerupts/erupt-web116—~706Automated safety check: PassApache-2.0
AI Docs InventoryMicrosoftDocs/windows-driver-docs-ddi316—~2.6kAutomated safety check: PassCC-BY-4.0
Odoo 16unclecatvn/agent-skills145—~1.4kAutomated safety check: PassMIT

Similar skills

  • Team-management dashboard skill in the FlowAI aesthetic — three tabs (Team Members, Team Details, Activity Log), KPI stat row, member table, role distribution bar chart, online presence and activity…

    100k GitHub stars~865 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Dota2 Localization

    XavierCHN/x-template

    为 DOTA2自定义游戏 项目生成 Dota 2 本地化文本(addon.csv)。触发词:本地化、翻译、loc、i18n、addon.csv、文本、tooltip、多语言。Use when user asks to generate localization entries for abilities/units/items/modifiers, translate Chinese to…

    217 GitHub stars~567 tokensUpdated 4 mo ago
    Frontend & DesignAuto-check passed
  • I18n

    erupts/erupt-web

    i18n — add multilingual translations. An agent skill from erupts/erupt-web.

    116 GitHub stars~706 tokensUpdated today
    Frontend & DesignAuto-check passed
  • AI Docs Inventory

    MicrosoftDocs/windows-driver-docs-ddi

    Official

    Inventory and classify APIs listed in a pre-provided CSV for a WDK header file.

    316 GitHub stars~2.6k tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Odoo 16

    unclecatvn/agent-skills

    Odoo 16 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups)…

    145 GitHub stars~1.4k tokensUpdated 16 days ago
    Frontend & DesignAuto-check passed
  • Odoo 17

    unclecatvn/agent-skills

    Odoo 17 development reference for Python models and ORM (search, domain, readgroup, compute fields), XML/CSV data and views, OWL/JS client code, QWeb reports, security (ACL, record rules, groups)…

    145 GitHub stars~1.4k tokensUpdated 16 days ago
    Frontend & DesignAuto-check passed

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
  • 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
  • Gem5 Manual Perf Trigger

    OpenXiangShan/GEM5

    用于在本地通过 gh 远程触发 OpenXiangShan/GEM5 的 manual-perf.yml,并在触发后检查 run 是否正常创建。适用于用户明确要求触发 manual-perf、组装 gh workflow run 命令、校验 workflow 输入项、或确认触发后的 Actions run 状态。

    162 GitHub stars~763 tokensUpdated today
    Auto-check passed

Questions about Frontend Pmu Analysis

What does Frontend Pmu Analysis do?

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

When should I use Frontend Pmu Analysis?

Frontend Pmu Analysis fits situations like: tasks that involve CSV and tabular files.

How do I install Frontend Pmu Analysis in Claude Code?

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

How do I install Frontend Pmu Analysis in Codex?

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

Can I use Frontend Pmu Analysis 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 frontend-pmu-analysis -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/frontend-pmu-analysis, .gemini/skills/frontend-pmu-analysis, .github/skills/frontend-pmu-analysis and .opencode/skills/frontend-pmu-analysis in your project.

What does Frontend Pmu Analysis need to run?

Going by SKILL.md and its folder, Frontend Pmu Analysis needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Frontend Pmu Analysis 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 Frontend Pmu Analysis 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Frontend Pmu Analysis use?

Frontend Pmu Analysis 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 Frontend Pmu Analysis use?

About 305 tokens (SKILL.md is roughly 1.2k 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 Frontend Pmu Analysis?

Skills that share tags, products or a category with Frontend Pmu Analysis: Flowai Live Dashboard Template (nexu-io/open-design, 100k stars), Dota2 Localization (XavierCHN/x-template, 217 stars), I18n (erupts/erupt-web, 116 stars) and AI Docs Inventory (MicrosoftDocs/windows-driver-docs-ddi, 316 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Frontend Pmu Analysis?

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.