--- name: ghost-decode description: Use when a video hides text in moving dots or noise — "ghost font" clips, motion-defined text, random-dot kinematograms, TV-static videos with a secret message, text readable only while playing but invisible in any paused frame, or the user asks what a ghost-font video says. argument-hint: "[video-path]" --- # Ghost-Font Video Decoder Ghost-font videos hide a message as a random-dot field: every frame is uniform noise, but the dots inside the letter shapes move against the background dots. This skill accumulates that motion into **two images** where the letters appear, then reads the message from them. ## Hard rules — the whole job is ONE run producing TWO images These rules exist because the #1 failure of this skill is over-processing: an agent that doesn't trust the output spawns a dozen diagnostic images, invents new algorithms, and hallucinates a message out of noise. Do not do that. - **Run the decoder exactly once.** The algorithm below is correct and complete. Do not write a second decoder, try another method (temporal variance, phase correlation, sub-pixel warping, weighted accumulation, per-line crops…), or "improve" the pipeline. - **Produce exactly two images: `revealed.png` and `revealed_heatmap.png`.** Create NO other images — no diagnostic maps, no crops, no re-thresholded or contrast-boosted variants. Extra images mean you are off the rails; stop. - **Never OCR a raw frame.** Every single frame is pure noise; the message exists only in accumulated motion. - **Read the two images, then stop.** Soft, rounded, blobby letters are the normal, correct output — not a reason to re-process. If you can read the word, report it. ## Steps 1. **Resolve the video path** from `$ARGUMENTS`, the user's request, or the most recently modified video (`.mp4`, `.mov`, `.avi`, `.webm`) in the working directory. Ask only if several candidates are plausible. 2. **Check dependencies:** `python -c "import cv2, numpy"`. If that fails, `pip install -r "${CLAUDE_PLUGIN_ROOT}/requirements.txt"` (or `pip install opencv-python-headless numpy`). 3. **Decode — run once.** Pick ONE: - If `${CLAUDE_PLUGIN_ROOT}/decode.py` exists: `python "${CLAUDE_PLUGIN_ROOT}/decode.py" "