Rsvp speed reader

From findscripter/everything-skills · View interactive version

Rsvp speed reader is an AI agent skill from the GitHub repository findscripter/everything-skills. 当需要让用户以 400–800+ WPM 速读长文本或 Agent 的长回复、又不愿逐行滚动时使用;做生成一个单页 RSVP 速读器(逐词闪现 + Spritz 式 ORP 红字对齐 + 速度/暂停控制)的 HTML 产物;不适用于需对照、跳读、做笔记、看代码块/表格或精读校对的场景。触发词:RSVP、速读、快速阅读、Spritz、ORP、逐词闪现

How to use this skill

Skill file

何时使用

适用:

不该用(RSVP 的固有短板,这些场景会丢信息或更慢):

步骤

  1. 取文本:默认对「当前要呈现给用户的长文本」操作(如 Agent 上一段长回复),或用户粘贴的文本。
  2. 分词:按空白切成 token,保留紧跟的标点;超长 token(>13 字符)可按音节/连字符再切。
  3. 算 ORP(最佳识别点 / Optimal Recognition Point):每个词选一个略偏左的「焦点字母」,渲染时该字母染红并在水平方向对齐到固定参考线 —— 这是 Spritz 风格的核心,让眼睛几乎不必移动。常用规则按词长定 ORP 下标:
  1. 定时闪现:按目标 WPM 计算每词基准停留 60000 / WPM 毫秒;对长词、句末标点(. ! ? 。!?)适当延长(如 ×1.5),给大脑断句缓冲。
  2. 控件:速度滑杆(100–1000 WPM)、播放/暂停(空格)、上一词/下一词、重启、进度条;暂停时显示当前词的上下文便于定位。
  3. 产出:写成一个自包含 index.html(内联 CSS/JS,无外部依赖),可直接双击打开。

指令

实现要点(保留源约束:600+ WPM、RSVP、Spritz 式 ORP 高亮):

最小 ORP 计算(JS):

function orpIndex(word) {
  const n = word.length;
  if (n <= 1) return 0;
  if (n <= 5) return 1;
  if (n <= 9) return 2;
  if (n <= 13) return 3;
  return 4;
}
function splitWord(word) {
  const i = orpIndex(word);
  return { left: word.slice(0, i), pivot: word[i], right: word.slice(i + 1) };
}
const delay = wpm => 60000 / wpm; // 每词基准毫秒

示例

提示词:

把你上面那段回复做成 RSVP 速读器,默认 500 WPM,Spritz 式红色 ORP 对齐,生成可直接打开的 index.html。

最小渲染骨架(HTML + 内联脚本,节选):

<div id="reader" style="font-family:monospace;font-size:48px">
  <span id="l"></span><span id="p" style="color:#d33"></span><span id="r"></span>
</div>
<input id="wpm" type="range" min="100" max="1000" value="500">
<script>
  const words = TEXT.split(/\s+/).filter(Boolean);
  let i = 0, timer = null;
  const wpm = () => +document.getElementById('wpm').value;
  function show() {
    const { left, pivot, right } = splitWord(words[i] || '');
    l.textContent = left; p.textContent = pivot || ''; r.textContent = right;
  }
  function tick() {
    show();
    const long = (words[i] || '').length > 9 ? 1.5 : 1;
    i = (i + 1) % words.length;
    timer = setTimeout(tick, (60000 / wpm()) * long);
  }
  tick(); // 空格暂停/续读自行绑定
</script>

注意事项

互见


采编自 sickn33/antigravity-awesome-skills 的 claude-speed-reader 技能(MIT 许可),其上游源为 [SeanZoR/claude-speed-reader](https://github.com/SeanZoR/claude-speed-reader)。源条目为占位骨架,本条目按 RSVP / Spritz ORP 通行算法做中文适配重写并补全可执行细节,非逐字翻译。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.