---
name: dayrecap
app: DayRecap
description: Turn today's local git commits, GitHub pushes, and redacted AI agent sessions into a sharp 45-second daily developer recap reel with neural narration and real visuals.
version: 1.0.0
compatibility: Antigravity, Claude Code, Codex, Grok Bot, Grok Build, Hermes Agent, OpenClaw, T3 Code, GitHub Copilot
default_aspect: 16:9
target_duration: 45s
---

# DayRecap: 45-Second "What I Did Today" Daily Recap Reel

DayRecap turns today's real work — local git commits across recent repositories, public GitHub pushes, and high-level AI agent session counts — into a crisp 45-second editorial daily recap video you can drop into standup, team chat, or a build-in-public post.

---

## Step 1: Probe Hardware, Scan Today's Activity & Fetch Real Media

1. Run `node skills/probe.mjs --json` to lock `voiceTier`, `videoEncoder`, and `remotionConcurrency`.
2. Scan today's real local commits and redacted AI agent sessions with the bundled zero-dependency scanner:
   ```bash
   node skills/dayrecap-scan.mjs --json
   ```
   Optional flags:
   - `--hours 24` (or `48`, `168` for weekly rollups)
   - `--github <username>` to include live public GitHub events and recently pushed repositories
   - `--roots <dir1,dir2>` to scan specific project directories
3. Download real visual media for the top pushed repository and GitHub handle FIRST:
   ```bash
   node skills/media-fetch.mjs --github "<owner>/<repo>" --out public/media --json
   ```
4. **Strict Privacy & Zero-Fabrication Rules:**
   - NEVER display API keys, tokens, `.env` entries, internal secrets, raw private agent prompts, customer PII, or local home directory paths on screen or in voiceover.
   - `dayrecap-scan.mjs` automatically redacts tokens, emails, IPs, credentials, and home paths — still verify every headline and commit label before rendering.
   - NEVER invent commit counts, session counts, or line deltas. If a source had zero activity today, omit that card instead of rendering an empty `0` box.

---

## Step 2: Write a Sharp, Conversational 45-Second Daily Script

Keep the script concrete, specific, and human — like a sharp 45-second update to a teammate, NEVER generic marketing copy:
- **BANNED buzzwords:** NEVER use "revolutionize", "seamless", "elevate", "unlock", "game-changer", "supercharge", or "synergy".
- **BANNED numeric kickers:** Use clean editorial kickers (`TODAY'S RECAP`, `TOP SHIP`, `ALSO LANDED`, `AGENT SESSIONS`, `BY THE NUMBERS`, `NEXT UP`) — ZERO `01 /` or `// 01 /` prefixes and ZERO emojis.

Write `voice/script.json` with 5-6 tight spoken beats (8-14 words per sentence, ~45s total):
1. **Today's Recap (`0-7s`):** Date, builder handle (with real GitHub avatar), total commits/repos pushed today, and the one-sentence headline win.
2. **Top Ship (`7-16s`):** The single most tangible thing shipped today, backed by the real repo preview card and top commit titles.
3. **Also Landed (`16-24s`):** Secondary fixes, refactors, or deploys across other touched repos today.
4. **Agent Assist (`24-32s`):** High-level summary of today's local AI agent sessions (Antigravity, Claude Code, Codex, Cursor) — counts and short safe task titles only.
5. **The Rhythm (`32-39s`):** Peak shipping window, active repos, and honest daily momentum stats.
6. **Tomorrow's First Move (`39-45s`):** One concrete next task and clean closing card.

---

## Step 3: Generate Broadcast Narration & Procedural SFX

```bash
python skills/voice-auto.py --script voice/script.json --out-dir voice --takes 4 --voice andrew
node skills/sfx.mjs --out public/sfx --bpm 104 --bars 24
```

Verify `voice/lines.json` (`-16 LUFS`, `48000 Hz`) and `voice/words.json` before wiring scene timing. NEVER use robotic OS TTS (SAPI, espeak, pyttsx3, macOS say).

---

## Step 4: Editorial Timeline Composition (`skills/stage-template.tsx`)

- **Palette:** Warm dark editorial obsidian (`#0c0d10` canvas, `#14161b` cards, `#272a33` 1px borders, `#f5f6f8` ink, `#949aa8` secondary ink, `#f59e0b` warm amber active-beat marker, `#3fb950` shipped indicator).
- **Real Media First:** Show the builder's real circular GitHub avatar (`public/media/avatar.*`) and the top pushed repo's real OpenGraph card (`public/media/og.*`) inside a crisp glass browser/terminal frame — zero placeholder shapes.
- **Strict Non-Overlap Layout Law:** Measure every SHA/repo pill before placing commit text (`textX = pillX + pillW + 14`), clip to card bounds, and truncate cleanly so zero text ever collides or clips at the edges.
- **Calm Camera & Audio:** Subtle `1.05x-1.10x` push-in via `Stage` + `CAMERA_EASE` (`0.65, 0, 0.25, 1`), hold cards `>= 1.8s`, duck `sfx/bed.wav` `-14 dB` under narration via `createDuckedBedVolume`, crisp `whoosh` on cuts and `ding` on the closer.

---

## Step 5: Mandatory Visual QA Gate & Export

Render and visually inspect a PNG keyframe for **every distinct scene** in the DayRecap timeline:
- Confirm ZERO leaked secrets, local paths, or raw private prompts anywhere on screen.
- Confirm ZERO text overlaps, edge clipping, or broken avatar/image frames.
- Confirm ZERO emojis, ZERO numeric kicker prefixes, and ZERO buzzword fluff.
- Export `out/dayrecap-16x9.mp4` (`1920x1080`, 30fps) and optional `out/dayrecap-9x16.mp4` (`1080x1920`, 30fps).

---

## Bundled Executable Assets

Download or reference these bundled scripts alongside this standalone skill:
- `/skills/probe.mjs` -- Zero-dependency OS/GPU/VRAM/toolchain/agent-host detector (`node skills/probe.mjs --json`).
- `/skills/voice-auto.py` -- Hardware-adaptive narration generator (CUDA Qwen3-TTS, Apple Silicon MLX, CPU Kokoro/Edge-TTS, optional Cloud API) with multi-take Whisper WER selection, `-16 LUFS` @ 48kHz normalization, and `lines.json` / `words.json` output.
- `/skills/sfx.mjs` -- Deterministic zero-dependency procedural 48kHz stereo WAV SFX + ambient music bed synthesizer.
- `/skills/media-fetch.mjs` -- Zero-dependency real favicon, `og:image`, GitHub avatar, and DPR=2 headless Chromium screenshot fetcher.
- `/skills/stage-template.tsx` -- Reusable Remotion calm camera (`Stage`, `rectAt`, `CAMERA_EASE`), `RecFrame`, `FocusedCard`, `WordSyncedCaptions`, and `createDuckedBedVolume`.
- `/skills/dayrecap.md` -- Dedicated DayRecap recipe specification.
- `/skills/general.md` -- General universal hardware-detecting cinema and VibeStack skill.
- `/skills/dayrecap-scan.mjs` -- Zero-dependency local daily activity scanner (`node skills/dayrecap-scan.mjs --json`) inspecting today's git commits, optional GitHub public events, and strictly redacted local AI agent session counts and titles.

---

## Universal Hardware-Adaptive Execution Contract

## Step 1: Probe Hardware, Toolchain, and Agent Host

If `skills/probe.mjs` is not already in your working directory, download the bundled helpers from the same origin where you read this `SKILL.md` (`<origin>/skills/probe.mjs`, `<origin>/skills/media-fetch.mjs`, `<origin>/skills/voice-auto.py`, `<origin>/skills/sfx.mjs`, `<origin>/skills/stage-template.tsx`, and the matching `<origin>/skills/<recipe>.md`) into `./skills/` first.

Always run the environment probe first so every downstream step picks the right voice backend, encoder, concurrency, and minimal install path:

```bash
node skills/probe.mjs --json
```

Read `profile` and `missingDeps` from the JSON output and lock your execution plan:

| Priority | `profile.voiceTier` | Detected Hardware | Neural TTS Engine | ASR / Word Alignment |
| --- | --- | --- | --- | --- |
| 1 | `cuda-qwen3-tts` | NVIDIA CUDA GPU >= 8 GB VRAM | `Qwen/Qwen3-TTS-12Hz-1.7B-CustomVoice` (bf16, 4 takes) | `openai/whisper-large-v3-turbo` (fp16) |
| 2 | `mlx-kokoro` / `mlx-audio` | Apple Silicon (`darwin/arm64`) >= 16 GB RAM | `mlx-audio` (`Kokoro-82M-bf16` / Qwen3 MLX) | `mlx-whisper` (`whisper-large-v3-turbo`) |
| 3 | `cpu-kokoro` | CPU-only or < 8 GB VRAM | `kokoro-onnx` (CPU neural) -> `edge-tts` MultilingualNeural (`en-US-AndrewMultilingualNeural` default; `andrew`, `brian`, `emma`, `ava`, `ryan`) | `faster-whisper` (`base.en`, int8) |
| 4 | `cloud-api` | Explicit opt-in + API key set | OpenAI `gpt-4o-mini-tts` or ElevenLabs (`eleven_multilingual_v2`) | `faster-whisper` (`base.en`, int8) |

**Strict Neural Voice Quality Rule (Robotic OS TTS Banned):**
- **NEVER** use robotic operating-system TTS engines in rendered studio videos: **Windows SAPI (`System.Speech.Synthesis`, Microsoft David/Zira/Mark), `espeak` / `espeak-ng`, `pyttsx3`, and macOS `say` are strictly BANNED.**
- Every hardware tier MUST render narration through `skills/voice-auto.py` using neural speech (`Qwen3-TTS` -> `mlx-audio` -> `kokoro-onnx` -> `edge-tts` MultilingualNeural -> opt-in OpenAI `gpt-4o-mini-tts` / ElevenLabs), loudness-normalized to `-16 LUFS` @ 48kHz PCM.

Video encoding profile selected automatically by `probe.mjs`:
- NVIDIA GPU: `h264_nvenc`, Remotion `--gl=angle`, concurrency capped cleanly at `<= 6`.
- Apple Silicon / macOS: `h264_videotoolbox`, Remotion `--gl=angle`.
- Linux/Windows CPU-only: `libx264` (`-crf 18 -preset medium`), Remotion `--gl=swangle`.

Install ONLY what is actually listed in `missingDeps` for the chosen recipe. Do not reinstall tools already detected as `installed: true`, and never print secret values from `ELEVENLABS_API_KEY`, `OPENAI_API_KEY`, or `GITHUB_TOKEN`.

---

## Step 3: Real Media & Visuals First (Zero Fake Wireframes)

Ground EVERY video in authentic pixels, icons, avatars, or domain-accurate vector geometry. Never draw fake placeholder dashboards, synthetic browser wireframes, or invented statistics.

1. **Fetch Real Static Media First (`skills/media-fetch.mjs`):**
   - For any live website or web app URL (`launchcut`, `roastpage`, `tldrreel`, `vibedrop` promo):
     ```bash
     node skills/media-fetch.mjs --url "<target-url>" --out public/media --mobile --json
     ```
     This downloads the real `favicon`, real `og:image`, and crisp DPR=2 desktop (`2880x1620`) and mobile (`780x1688`) screenshots into `public/media/` alongside `media-manifest.json`. Use `--allow-local` only when capturing a local dev server such as `http://127.0.0.1:<port>`.
   - For any GitHub user or repository (`shiplog`, `prwalk`, `gitwrapped`, `releasecast`, `repotour`):
     ```bash
     node skills/media-fetch.mjs --github "<owner/repo-or-user>" --out public/media --contributors --json
     ```
     This downloads the real user/org `avatar`, GitHub repo `repo-og.png`, and real contributor avatars into `public/media/`.
   - **Access Gate Rule:** If `media-manifest.json` reports `blockedByChallenge: true` (CAPTCHA, Cloudflare Turnstile, bot interstitial, or login wall), STOP immediately and report the block to the user. Never attempt to bypass anti-bot protections.

2. **Real Interactive Capture for Live Product Flows (`launchcut`, `vibedrop` promo):**
   - Launch Playwright Chromium at `viewport: { width: 1440, height: 810 }`, `deviceScaleFactor: 2` (`2880x1620`), `--hide-scrollbars`, `--force-device-scale-factor=2`.
   - Inject a clean visible cursor SVG + subtle click ripple overlay (headless Chromium hides the OS cursor).
   - Record JPEG frame sequences via CDP `Page.startScreencast({ format: 'jpeg', quality: 95, maxWidth: 2880, maxHeight: 1620, everyNthFrame: 1 })`.
   - Save `times[]`, named interaction `marks` (`typeStart`, `typeEnd`, `submit`, `resultReady`), and element `boundingBox()` rectangles to `public/rec/state.json`.
   - Play frames in Remotion with `RecFrame` and isolate focal UI cards cleanly via `FocusedCard` so noisy secondary buttons never leak into frame.

3. **Real Data Only (Zero Invented Numbers):**
   - Prefer authenticated `gh api`; fall back cleanly to public GitHub REST API (`https://api.github.com/...`) with a clean tool `User-Agent`.
   - Never fabricate `+24 -5` line-change deltas when a commit-list endpoint does not include line counts. Never draw giant empty cards for zero-value metrics (e.g. a huge `0 MERGED PRS` box); omit zero-value filler and feature what actually happened.

4. **Real Neural Narration & Procedural Audio (Zero Robotic OS TTS):**
   - Generate multi-take WER-verified neural narration at `-16 LUFS` @ 48kHz PCM + word-level timestamps (`lines.json` and `words.json`) using canonical studio voice presets (`andrew`, `brian`, `emma`, `ava`, `ryan`, defaulting to `en-US-AndrewMultilingualNeural` on `edge-tts`):
     ```bash
     python skills/voice-auto.py --script voice/script.json --voice andrew --out-dir voice --takes 4
     ```
   - Priority cascade is enforced automatically: `Qwen3-TTS` (NVIDIA GPU) -> `mlx-audio` (Apple Silicon) -> `kokoro-onnx` (CPU neural) -> `edge-tts` MultilingualNeural -> opt-in OpenAI `gpt-4o-mini-tts` / ElevenLabs. **NEVER substitute Windows SAPI, `espeak`, `pyttsx3`, or macOS `say`.**
   - Generate deterministic royalty-free 48kHz stereo SFX and ambient bed:
     ```bash
     node skills/sfx.mjs --out public/sfx --bpm 100 --bars 24
     ```

---

## Step 4: Normie-First Storytelling & Strict Anti-Slop Visual Manifesto

Every script and Remotion composition built with `skills/stage-template.tsx` must pass both editorial and visual discipline checks:

### A. Normie-First High-Level Storytelling
- **Write for a smart non-technical human, not a log parser.** Explain *what actually changed and why anyone should care* in crisp plain English.
- **BANNED robotic dev jargon & log dumps:**
  - NEVER write `"Primary focus areas: core (4), frontend (1), readme (1), ops/docs (1)"` or `"Activity clustered around core, frontend, led by..."`.
  - INSTEAD write `"Eight updates shipped this month -- faster UI, cleaner sharing, and sharper ChatGPT prompts."`
- **Spoken beat rhythm:** 8-14 words per spoken sentence. **One clear idea per shot.** Every sentence must sound effortless when read aloud by neural TTS.
- **Clean editorial kickers:** Use plain short labels like `THE RECAP`, `WHAT CHANGED`, `THE VERDICT`, `THE RECEIPT`. NEVER use noisy numeric prefixes like `01 / SHIP VELOCITY` or `// 01 /`.

### B. Strict Anti-Slop Visual Manifesto
- **BANNED AI-slop aesthetics:**
  - ZERO neon purple/cyan/magenta gradients, rainbow glow borders, or glassmorphism haze.
  - ZERO fake sci-fi HUD corner brackets, targeting reticles, fake status LEDs, or decorative `// 01 /` monospace noise.
  - ZERO random extra techy meters, filler sparklines, or zero-value stat boxes nobody asked for.
  - ZERO emojis anywhere in narration, captions, UI cards, code comments, filenames, or documentation.
- **Required visual craft:**
  - Disciplined monochrome or authentic native single-accent palette (obsidian `#0b0b0c` / `#141416`, warm paper `#f6f5f0`, 1px hairlines `rgba(255,255,255,0.10)`, and at most one intentional functional accent).
  - Generous breathing room: at least 30% clean negative space per frame.
  - Crisp, legible typography: minimum `24px` body copy and `48px+` headlines at `1920x1080`.
  - **Zero Overlap & Zero Clipping Geometry Law:** Every card must clip strictly inside its bounds (`overflow: hidden` / canvas `ctx.clip()`), explicitly set alignment before drawing text, measure pill/badge widths BEFORE computing adjacent text `x` (`textX = pillX + pillWidth + 14`), and truncate cleanly to available width (`ellipsis` / `truncateToWidth`) so text NEVER collides with a badge or clips off a frame edge.
- **Calm Cinema Motion & Audio Hierarchy:**
  - Camera uses `CAMERA_EASE = Easing.bezier(0.65, 0, 0.25, 1)` and `rectAt()` (center-lerp + log-size lerp). At most one gentle `1.08x-1.20x` push-in per scene (`0.9s-1.2s`), zero whip-zooms, zero screen shake.
  - Hold every cut and readable card `>= 1.5s` (`MIN_HOLD_SEC = 1.5`); remap slow typing to `1.45x-1.55x` under a steady camera via `pw()` / `pwInv()`.
  - Voice narration is master at `-16 LUFS`; ambient bed (`sfx/bed.wav`) ducks `-10dB` to `-14dB` under voice via `createDuckedBedVolume`; tasteful SFX sit cleanly underneath (`volume 0.22-0.48`).
  - `WordSyncedCaptions` from `voice/words.json` (<= 4 words/chunk or punctuation) stay strictly inside safe margins and never cover primary media or UI controls.

---

## Step 5: Mandatory Every-Scene Visual Inspection Gate

Do NOT render final MP4 deliverables blindly. Before running the full encode, render a PNG still for **EVERY distinct scene** in the composition (minimum 1 mid-scene still per scene, at least 6 stills across the timeline, for BOTH 16:9 and 9:16 when producing dual-aspect masters) using `@remotion/renderer` (`renderStill` at `scale: 0.5` or `1.0`).

Visually inspect **EVERY single rendered scene PNG** against this zero-tolerance checklist:
1. **Zero Text/Pill Overlap:** No headline, commit message, label, or caption collides with a SHA pill, avatar, button, border, or another line of text.
2. **Zero Edge Clipping:** No letter, kicker, card, or screenshot clips off the left, right, top, or bottom edge of the frame.
3. **Legible Text Scale & Contrast:** Every label is effortlessly readable at normal viewing size with crisp foreground/background contrast.
4. **Real Media Sharpness & Framing:** Captured screenshots, favicons, `og:image`s, and GitHub avatars are sharp (no blank boxes, no broken crops, no leaked secondary buttons in `FocusedCard`).
5. **Anti-Slop Check:** Zero emojis, zero `// 01 /` noise, zero neon rainbow slop, zero fake/empty filler boxes, generous breathing room.
6. **Caption Safety:** Word-synced captions never obscure the focal visual, diagram labels, or code highlights.

If **ANY** scene shows a single defect, fix the layout, crop, or copy and re-render that scene's still until 100% of scenes pass visual inspection cleanly.

### Final Dual-Aspect Export & Stream Check

Render both landscape (`1920x1080`, 30fps CFR) and vertical (`1080x1920`, 30fps CFR) masters using the concurrency and encoder reported by `probe.mjs`:

```bash
# Landscape 16:9 (1920x1080 @ 30fps)
npx remotion render src/index.ts MainLandscape out/video-16x9.mp4 --codec=h264 --crf=18 --pixel-format=yuv420p --concurrency=<probe.profile.remotionConcurrency> --gl=<probe.profile.remotionGl>

# Vertical 9:16 (1080x1920 @ 30fps)
npx remotion render src/index.ts MainVertical out/video-9x16.mp4 --codec=h264 --crf=18 --pixel-format=yuv420p --concurrency=<probe.profile.remotionConcurrency> --gl=<probe.profile.remotionGl>
```

Verify final outputs before handing off:
- Both MP4 files exist, are non-empty, and report exact `1920x1080` / `1080x1920`, `30 fps`, `yuv420p`, `48000 Hz` audio with audible narration and zero clipping.
- Report exact output paths, durations, hardware tier used, real media assets captured, and confirmation that every distinct scene passed visual inspection.
