SkillTrust

← All skills

xterm-js-rendering-pitfalls

100 / 100 · Low risk

Fine to try.

By jiushiwon/wg-skills (GitHub) · design · 146 stars · scanned at commit 1c761a6

xterm.js 在 Electron 终端类项目里最容易踩的 4 个渲染坑: 1) fontFamily 传 CSS 变量导致 vi gg/G 失效 + 字符越界 2) 主题切换不生效(state 孤岛) 3) canvas 重绘需 term.refresh() 4) PTY 尺寸校正在字体加载完成前 fit → 偏大 rows/cols → 远端 vi 越界 触发词:xterm 主题不切换、xterm 字体不生效、xterm 字符越界、vi 排版错乱、 vi gg G 失效、vi :q 关不了、xterm 背景色不变、xterm canvas 没重绘、 useTheme 主题不传播、useState 主题孤岛、PTY 尺寸不对、TIOCSWINSZ 偏大。

Works with any agent that supports SKILL.md skills.

What this skill can do

We found nothing in the files we read that matches our rules. That does not prove the skill is safe: see the limits of static scanning.

Install

Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.

if [ -e ~/.agents/skills/'xterm-js-rendering-pitfalls' ] || [ -L ~/.agents/skills/'xterm-js-rendering-pitfalls' ]; then echo 'A skill folder named xterm-js-rendering-pitfalls already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/jiushiwon/wg-skills' "$d" && git -C "$d" checkout --quiet '1c761a6dbc5a85b69fbef8c099270e4c42cf6255' -- 'frontend/electron/xterm-js-rendering-pitfalls' && mkdir -p ~/.agents/skills && cp -R "$d"/'frontend/electron/xterm-js-rendering-pitfalls' ~/.agents/skills/'xterm-js-rendering-pitfalls' && rm -rf "$d"; fi

Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'xterm-js-rendering-pitfalls' ~/.claude/skills/'xterm-js-rendering-pitfalls' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.

Badge for your README

The badge for jiushiwon/wg-skills shows the score of its lowest-scoring skill.

SkillTrust badge for jiushiwon/wg-skills

[![SkillTrust](https://zalavijaysinh.github.io/skilltrust/badges/jiushiwon/wg-skills.svg)](https://zalavijaysinh.github.io/skilltrust/repos/jiushiwon/wg-skills/)

Score history

DateVersionScore
2026-11-131c761a6100