playbook/antigravity-awesome-skills/skills/speed/SKILL.md

48 lines
1.6 KiB
Markdown

---
name: speed
description: Launch RSVP speed reader for text
trigger: command
risk: unknown
source: community
tools: Write, Bash, Read
---
# Speed Reader
Launch the RSVP speed reader to display text one word at a time with Spritz-style ORP (Optimal Recognition Point) highlighting.
## When to Use
- You want to launch the RSVP speed reader for text in the current session.
- The task is to turn either provided text or the assistant's prior response into a word-by-word reading view.
- You need a quick reading aid rather than a document transformation or summary.
## Instructions
1. **Get the text:**
- If `$ARGUMENTS` is provided, use that text
- Otherwise, extract the main content from your **previous response** in this conversation
2. **Prepare the content:**
- Strip markdown formatting (headers, bold, links, code blocks)
- Keep clean, readable prose
- Escape quotes and backslashes for JavaScript
3. **Write and launch:**
- Read `~/.claude/skills/speed/data/reader.html`
- Replace `<!-- CONTENT_PLACEHOLDER -->` with:
```html
<script>window.SPEED_READER_CONTENT = "your escaped text";</script>
<!-- CONTENT_PLACEHOLDER -->
```
- Run: `open ~/.claude/skills/speed/data/reader.html`
4. **Confirm:** Tell the user it's opening. Mention `Space` to play/pause.
## Arguments
$ARGUMENTS
## Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.