# reference-decode

reference-decode turns a reference clip, frame, or contact sheet into prompt structure: hook essence, viewer question, visual grammar to copy, and imitation boundaries.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1000 installs · ★ 26 repo stars
- Author: PostPlusAI
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PostPlusAI/postplus-skills/tree/HEAD/skills/10-routing/reference-decode/SKILL.md
- Updated: 2026-10-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/reference-decode

## What it does

The skill reads a benchmark video or frame set and extracts four objects: `hookEssence` (the opening mechanism), `viewerQuestion` (the question that holds attention), `mustCopyVisualGrammar` (what to repeat: shot order, object logic, timing), and `forbiddenDrift` (what not to copy — faces, wardrobe, exact location). Without a reference, it runs in proxy mode: builds structure from a segment pattern and the brief.

The process starts with the smallest set: the first 0–5 seconds of a clip, a hook contact sheet, or a note. The skill separates grammar from identity: it keeps camera work, order, object relationships; it drops exact appearance details. The output is a compact artifact passed to `image-batch-runner` or `video-batch-runner` before generation. Paid operations need PostPlus credits; without balance, the skill stops.

Works in Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode. Install with `npx skills add PostPlusAI/postplus-skills --skill reference-decode -a claude-code`, and the file lands in `~/.claude/skills/reference-decode/SKILL.md`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add PostPlusAI/postplus-skills --skill reference-decode -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/reference-decode/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/reference-decode/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add PostPlusAI/postplus-skills --skill reference-decode -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/reference-decode/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add PostPlusAI/postplus-skills --skill reference-decode -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/reference-decode/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install PostPlusAI/postplus-skills skills/10-routing/reference-decode
```

2. **Manually: put the files in place**
- File: `.github/skills/reference-decode/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add PostPlusAI/postplus-skills --skill reference-decode -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/PostPlusAI/postplus-skills --path skills/10-routing/reference-decode
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/reference-decode/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add PostPlusAI/postplus-skills --skill reference-decode -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/PostPlusAI/postplus-skills/tree/HEAD/skills/10-routing/reference-decode/SKILL.md

## When to use it
- break down a reference clip into hook, viewer question, and visual grammar
- separate frame structure from specific faces and details before prompting
- build prompt structure from a brief when no reference exists
- pass grammar to `image-batch-runner` or `video-batch-runner` without extra artifacts

## Example prompts
- Take the first five seconds of `ref/hook.mp4` and pull out the hook, viewer question, what to copy, and what not to.
- From the contact sheet in `board/intro-frames.png`, assemble prompt structure: opening essence, frame grammar, and boundaries.
- No brief, but I need a prompt for a three-answer segment: build a proxy structure with scene anchors.

## Similar
- [writing-video-prompts](https://affpapa.org/en/nevibecode/skills/writing-video-prompts.md) — skill · ★ 331 repo stars
- [generating-ugc-videos](https://affpapa.org/en/nevibecode/skills/generating-ugc-videos.md) — skill · ★ 331 repo stars
- [video-marketing](https://affpapa.org/en/nevibecode/plugins/video-marketing.md) — plugin · ★ 450 repo stars
- [Framesail](https://affpapa.org/en/nevibecode/mcp/framesail.md) — MCP server · 11533 installs
- [explainer-video](https://affpapa.org/en/nevibecode/skills/explainer-video.md) — skill · 3000 installs
- [video](https://affpapa.org/en/nevibecode/skills/smixs-video.md) — skill · 1400 installs

From the same set: [postplusai/postplus-skills](https://affpapa.org/en/nevibecode/by/postplusai/postplus-skills.md) — 25 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
