RuView CLI, API and WASM
ruvnet/RuView
Covers the RuView `wifi-densepose` command line binary, its Axum REST API and the WebAssembly builds for browsers and ESP32, for embedding or scripting RuView.
用 V8 CPU profile 定位 JS/TS 热点函数,并用「同进程交替 A/B + best(min) 统计量 + checksum 锚点」的微基准方法安全地做性能优化。当需要优化计算热点、怀疑某函数耗时占比高、想评估某个优化(含 Wasm/SIMD 等加速路径)是否真有收益、或要建立可回归的性能基准时使用。
$ npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pa001024/dna-builder perf-hotspot-profiling --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pa001024/dna-builder.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/perf-hotspot-profiling .claude/skills/perf-hotspot-profiling && rm -rf skills-srcUse ~/.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/
Install the "perf-hotspot-profiling" agent skill from https://github.com/pa001024/dna-builder/tree/master/.agents/skills/perf-hotspot-profiling into .claude/skills/perf-hotspot-profiling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perf-hotspot-profiling", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pa001024/dna-builder/tree/master/.agents/skills/perf-hotspot-profilingType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pa001024/dna-builder perf-hotspot-profiling --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pa001024/dna-builder.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/perf-hotspot-profiling .agents/skills/perf-hotspot-profiling && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "perf-hotspot-profiling" agent skill from https://github.com/pa001024/dna-builder/tree/master/.agents/skills/perf-hotspot-profiling into .agents/skills/perf-hotspot-profiling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perf-hotspot-profiling", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pa001024/dna-builder perf-hotspot-profiling --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pa001024/dna-builder.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/perf-hotspot-profiling .cursor/skills/perf-hotspot-profiling && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "perf-hotspot-profiling" agent skill from https://github.com/pa001024/dna-builder/tree/master/.agents/skills/perf-hotspot-profiling into .cursor/skills/perf-hotspot-profiling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perf-hotspot-profiling", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pa001024/dna-builder.git --path .agents/skills/perf-hotspot-profiling--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pa001024/dna-builder perf-hotspot-profiling --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pa001024/dna-builder.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/perf-hotspot-profiling .gemini/skills/perf-hotspot-profiling && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "perf-hotspot-profiling" agent skill from https://github.com/pa001024/dna-builder/tree/master/.agents/skills/perf-hotspot-profiling into .gemini/skills/perf-hotspot-profiling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perf-hotspot-profiling", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pa001024/dna-builder perf-hotspot-profilingInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pa001024/dna-builder.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/perf-hotspot-profiling .github/skills/perf-hotspot-profiling && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "perf-hotspot-profiling" agent skill from https://github.com/pa001024/dna-builder/tree/master/.agents/skills/perf-hotspot-profiling into .github/skills/perf-hotspot-profiling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perf-hotspot-profiling", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pa001024/dna-builder perf-hotspot-profiling --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pa001024/dna-builder.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/perf-hotspot-profiling .opencode/skills/perf-hotspot-profiling && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "perf-hotspot-profiling" agent skill from https://github.com/pa001024/dna-builder/tree/master/.agents/skills/perf-hotspot-profiling into .opencode/skills/perf-hotspot-profiling/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "perf-hotspot-profiling", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
perf-hotspot-profiling用 V8 CPU profile 定位 JS/TS 热点函数,并用「同进程交替 A/B + best(min) 统计量 + checksum 锚点」的微基准方法安全地做性能优化。当需要优化计算热点、怀疑某函数耗时占比高、想评估某个优化(含 Wasm/SIMD 等加速路径)是否真有收益、或要建立可回归的性能基准时使用。
Perf Hotspot Profiling is an agent skill from pa001024/dna-builder. 用 V8 CPU profile 定位 JS/TS 热点函数,并用「同进程交替 A/B + best(min) 统计量 + checksum 锚点」的微基准方法安全地做性能优化。当需要优化计算热点、怀疑某函数耗时占比高、想评估某个优化(含 Wasm/SIMD 等加速路径)是否真有收益、或要建立可回归的性能基准时使用。
Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts.
It works with WebAssembly. The repository describes itself as: 二重螺旋构筑模拟器 Duet Night Abyss Builder. The licence is MIT.
6 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 0a808c9. It shows what the files ask for, not the result of running them.
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.
Ships 1 file in scripts/ (JavaScript), which the agent can run.
Shell commands in SKILL.md call:
nodebunFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Perf Hotspot Profiling loads about 1k tokens when it runs. Until then it costs about 46 tokens; SKILL.md has 215 words of instructions outside code blocks.
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.
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.
The full file from pa001024/dna-builder at commit 0a808c9, republished under its MIT licence (© pa001024). 215 words, ~1,017 tokens.
.claude/skills/perf-hotspot-profiling/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.前端/数据层的性能优化最容易踩的坑不是「不会优化」,而是量错了:用错统计量、在同一进程里先跑 A 后跑 B 导致顺序偏差、拿肉眼或单次耗时下结论。本技能固化一套可复现的流程:
best(min) + 同进程交替采样,避开 GC/时钟抖动与加载顺序偏差;calculate() / 渲染 / 数据转换明显卡,需要知道「时间花在哪」。bun;测试 node node_modules/vitest/vitest.mjs)。calculate() 的 checksum)。优化前先记录一个确定性的数值结果,例如:
bun tools/benchmark-charbuild.ts # 本项目:打印 checksum 1164735053516.7178把「场景 + 目标函数 + checksum 期望值」写进基准脚本的注释里,之后每次优化都对比它。 checksum 变了就是算错了,提速多少都没意义。
用 Node 的 --cpu-prof 跑一段循环(或直接在探针里调用 console.profile),产出 .cpuprofile:
node --cpu-prof --cpu-prof-dir .tmp/prof --cpu-prof-name c.cpuprofile .tmp/prof-calc.ts
# 或 bun(同样支持)
bun --cpu-prof --cpu-prof-dir .tmp/prof .tmp/prof-calc.ts然后解析 self-time(不要只看 total time,被调用的下游会污染):
node .agents/skills/perf-hotspot-profiling/scripts/profile-self-time.mjs .tmp/prof/c.cpuprofile --filter src/ --top 20输出按 self-time 降序的函数表(含占比、文件:行)。盯占比最高的那一两个,优化它们; 占 2% 的函数再怎么优化也救不了整体。
| 手段 | 适用 | 注意 |
|---|---|---|
| 查表化 | 同一批来源被反复线性扫描(每次调用都 for (mod of mods)) | 一次性把来源摊平成 Map,查询变 O(1)。最大收益通常来自这步 |
| 版本号失效缓存 | 派生数据依赖可变的源对象 | 每个源类加 static propertiesRevision,所有改属性的入口都要自增,否则静默返回旧值 |
| 懒计算 | 只有部分 key 会被查询 | 按需算 + 缓存,别预计算全量 |
| Wasm / SIMD / Worker | 目标是大规模数值计算本身 | 先怀疑:构造输入 + 跨边界拷贝的开销经常远大于计算收益。必须用 Step 4 的方法实测 |
⚠️ 不可从加和表导出的量:Π(1+v)(独立乘区)、min/max、去重计数等,不能由 Σv 还原,
必须单独缓存。做「一张表搞定一切」时先检查有没有这类量。
写基准时遵守三条:
best(min),不要用 median。GC 与时钟抖动能把 median 抬 ±30%,
而 min 是「没有干扰时这函数要多久」,最稳定、最能反映优化效果。评估「某加速路径是否值得」时,把开关做成运行时可变(本仓库用 setWasmReady() + resetCharBuildSimdForTest()),
在同一进程里交替 9 轮,比值稳定在 1.00 ± 0.05 就说明没收益,直接删掉那条路径——
净负收益的复杂度是纯负债。
缓存类优化最大的风险是「该失效时没失效」。针对每一个能改属性的入口各写一条: 「改了 → 结果必须变,且等于重建对象后的结果」。
// 模式:改一个属性源,然后和「重新构造一个等价构筑」对比
build.charMods[0].updateProperties(/* 新等级 */)
expect(build.calculate()).toBe(referenceBuild.calculate()) // 等于正确结果
expect(build.calculate()).not.toBe(untouched.calculate()) // 且确实变了# 类型检查(本仓库整项目 vue-tsc 会 OOM 崩,用只含改动文件的 tsconfig)
NODE_OPTIONS="--max-old-space-size=8192" node node_modules/vue-tsc/bin/vue-tsc.js --noEmit -p .tmp/tsc-changed.json
# 格式化 + lint
node node_modules/@biomejs/biome/bin/biome check --write --linter-enabled=false <files>
node node_modules/@biomejs/biome/bin/biome lint <files>
# 测试
node node_modules/vitest/vitest.mjs run <test files>最后删掉探针脚本、profile 目录、临时 tsconfig(保留一份优化前快照作回滚保险即可)。
.tmp/;本仓库开发服务器固定在 http://localhost:1420,不要自己起 dev/build。scripts/profile-self-time.mjs — 解析 .cpuprofile,按 self-time 输出热点函数表。tools/benchmark-charbuild.ts(bun bench:charbuild:real)。
加速路径(Wasm/SIMD)的决策复核工具在结论落地后已删除——结论:无收益,勿复活。src/data/CharBuild.ts 属性结算查表化(calculate() 约 45× 提速),
详见 .workbuddy/memory/2026-09-19.md 与 MEMORY.md 的「CharBuild 属性结算」小节。© pa001024, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (scripts) in .agents/skills/perf-hotspot-profiling of pa001024/dna-builder.
Open the folder on GitHubat commit 0a808c9
Perf Hotspot Profiling 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Perf Hotspot Profiling this skillpa001024/dna-builder | 136 | — | ~1k | Automated safety check: Pass | MIT | |
| RuView CLI, API and WASMruvnet/RuView | 97k | — | ~1.2k | Automated safety check: Notes | MIT | |
| Nginx To Higress Migrationhigress-group/higress | 9.5k | — | ~3.9k | Automated safety check: Pass | Apache-2.0 | |
| Update V86felixrieseberg/windows95 | 24k | — | ~1.7k | Automated safety check: Pass | Custom licence | |
| Dotlottie WebLottieFiles/dotlottie-web | 892 | — | ~3.5k | Automated safety check: Pass | MIT | |
| Adding Internal API RouteTriliumNext/Trilium | 38k | — | ~3.3k | Automated safety check: Pass | AGPL-3.0 |
ruvnet/RuView
Covers the RuView `wifi-densepose` command line binary, its Axum REST API and the WebAssembly builds for browsers and ESP32, for embedding or scripting RuView.
higress-group/higress
Migrate from ingress-nginx to Higress in Kubernetes environments.
felixrieseberg/windows95
Build and install v86 (wasm + libv86.js + BIOS) into windows95.
LottieFiles/dotlottie-web
Implement Lottie animations using dotLottie runtimes (@lottiefiles/dotlottie-web and @lottiefiles/dotlottie-react).
TriliumNext/Trilium
A skill your agent uses when adding, moving, or wiring an internal REST endpoint in Trilium (a new /api/ route) — choosing between a core-shared handler (packages/trilium-core/src/routes/index.ts…
awarexone/Agentic-Bug-Hunter
Recovers a client-side request signature or anti-bot token just far enough to replay blocked requests in bug bounty testing, starting from a captured packet.
pa001024/dna-builder
This skill documents how to use the fmodel-mcp toolkit (a CUE4Parse-based .NET CLI plus a thin Python MCP server) to inspect and export Unreal Engine game assets — pak files, textures, meshes…
pa001024/dna-builder
使用 Bun 1.4 内置的 Bun.WebView 无头浏览器对前端页面(Vue/Vite 等)做端到端冒烟与交互测试。当需要加载页面、真实点击、读取 DOM/应用状态、做断言、截图归档,或对本地开发服务器/静态站点做零依赖的浏览器级验证、可视化巡检、交互回归测试时,应使用本技能。
pa001024/dna-builder
制作与调试 Unreal Engine 4.27 游戏的 pak 模组(模型/网格/资产换皮,如《二重螺旋》Duet Night Abyss)。两条路线:编辑器烘焙(Blender 自由改模型 → UE4.27 cook → pak)与二进制替换(改写已烘焙 .uasset 的导出名/载荷)。当需要「把 A 的模型换成 B 的模型」「让模型能自由导入 Blender…
pa001024/dna-builder
给 dna-builder 里任意角色从零推一套「最优构筑」(BD)的通用方法论:读角色机制 → 辅助候选排列组合 → buff 组(含光环型海妖 / 角色专属如大冲击)→ 定计算方向 → 魔灵与潜质 → 必带 MOD → 用 autoBuild 跑一遍并剔除不合理件 → 消融实验。当需要「给某个角色配一套最优 BD」「这个角色带什么辅助/队友最强」「跑一下 XX…
pa001024/dna-builder
《二重螺旋》新手开荒指南(校对至 1.6 版本)。含分阶段开荒流程(历练 35 前 / 35~45 / 45~60 / 60 后)、前期角色与武器获取清单、角色获取循环(深渊→周本→密函商店)、魔之楔六大系列与金 Mod 升级口径、减负活动、灾厄武器四把(棘刺绝响 / 无止无休 / 权火将熄 / 血染织羽)的两条刷取路线与 1.6 配队(暗队 /…
pa001024/dna-builder
在 dna-builder 里新增一个 /admin 后台管理页(侧边栏菜单 + 路由 + REST 封装 + 统计卡/筛选卡/表格/分页 + 详情弹窗),并在本地实测验证。当需要给后台加新的管理页面、或改动 src/admin/ 下的页面结构时使用。
Works with
用 V8 CPU profile 定位 JS/TS 热点函数,并用「同进程交替 A/B + best(min) 统计量 + checksum 锚点」的微基准方法安全地做性能优化。当需要优化计算热点、怀疑某函数耗时占比高、想评估某个优化(含 Wasm/SIMD 等加速路径)是否真有收益、或要建立可回归的性能基准时使用。. Perf Hotspot Profiling is an agent skill from pa001024/dna-builder.
Run `npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a claude-code`. Or copy the skill folder (.agents/skills/perf-hotspot-profiling in pa001024/dna-builder) into .claude/skills/perf-hotspot-profiling in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a codex`. Or copy the skill folder (.agents/skills/perf-hotspot-profiling in pa001024/dna-builder) into .agents/skills/perf-hotspot-profiling in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pa001024/dna-builder --skill perf-hotspot-profiling -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/perf-hotspot-profiling, .gemini/skills/perf-hotspot-profiling, .github/skills/perf-hotspot-profiling and .opencode/skills/perf-hotspot-profiling in your project.
Going by SKILL.md and its folder, Perf Hotspot Profiling needs JavaScript for the scripts in its folder and the command-line tools its instructions call (node and bun). Our summary lists: Node.js.
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.
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.
Perf Hotspot Profiling is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Perf Hotspot Profiling: RuView CLI, API and WASM (ruvnet/RuView, 97k stars), Nginx To Higress Migration (higress-group/higress, 9.5k stars), Update V86 (felixrieseberg/windows95, 24k stars) and Dotlottie Web (LottieFiles/dotlottie-web, 892 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pa001024 (a GitHub user) maintains it in pa001024/dna-builder, which has 136 GitHub stars. The repository holds 14 skills in this directory. The repository was last updated on October 8, 2026.
Source: pa001024/dna-builder on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.