# LB Publisher: how an AI agent sends a clip to the phone Copy this into `CLAUDE.md`, `AGENTS.md` or the system prompt of the project where your agent (Claude Code, Kimi, Codex…) makes clips. A finished clip goes to the owner's phone through the LB Publisher queue folder. **A human publishes it**: they press "Post" in TikTok, Instagram or YouTube. Do not try to publish yourself — no platform APIs, no automated taps. ## Where The queue folder is `~/LBPublisher` unless the owner set another one (`LBP_DIR`). One clip = one folder inside it. ## Steps (in this order) 1. **Pick an id:** `YYYY-MM-DD_short-name`. Only Latin letters, digits, `-`, `_`, `.`, up to 128 characters. Example: `2026-11-27_gta6-map-secrets`. 2. **Create a draft folder** `~/LBPublisher/_/`. The leading underscore hides it from the phone while you work. 3. **Put the video:** exactly one `video.mp4`. - Shorts, Reels, TikTok: vertical 1080×1920, up to 3 minutes. - YouTube video: horizontal 1920×1080, and set `"format": "long"`. 4. **Optional:** - `cover.jpg` — the picture in the app's list; - for long videos, `thumbnail.jpg` (1280×720) — the YouTube thumbnail. 5. **Write `post.json` last** (schema below). 6. **Rename** `_` to ``. Only now the clip appears on the phone. 7. **Check** (if the server is running): ```bash curl -s -H "Authorization: Bearer $(cat ~/LBPublisher/.lbpublisher/token)" http://127.0.0.1:8787/api/queue ``` The clip must be in `episodes`. If it is in `not_ready`, fix its `problems`. ## post.json Shorts, Reels, TikTok: ```json { "title": "3 secrets of the GTA 6 map", "format": "short", "publish_date": "2026-11-27", "caption": "You definitely missed the third one 👀 #gta6 #gaming", "description": "Three map details you only see from a helicopter.", "tags": ["gta 6", "gta 6 map"], "pinned_comment": "Which secret surprised you most? 👇", "ai_label": true } ``` YouTube video: ```json { "title": "GTA 6 vs GTA 5: 13 years apart", "format": "long", "description": "00:00 Intro\n01:10 The map\n03:40 Verdict\n\nSources: …", "tags": ["gta 6 vs gta 5", "comparison"], "pinned_comment": "What impressed you most?" } ``` Text rules: - **`title`** — up to 100 characters, key word first. - **`caption`** — TikTok and Reels caption, hashtags inside the text, 3–5 of them. - **`ai_label: true`** if the video has AI-generated voice, faces or scenes. It is the platforms' rule; the app reminds the human to set the label. - **Facts** — only verified ones. Mark rumors as rumors. All fields: `title` (required), `format` (`short`/`long`), `caption`, `description`, `tags`, `publish_date` (`YYYY-MM-DD`), `platforms`, `pinned_comment`, `ai_label`, `label`, `duration`, `texts` (exact per-platform texts: `youtube.title/description/tags/shorts_title`, `tiktok.caption`, `instagram.caption`). ## Don't - Don't put two `.mp4` files into one folder. - Don't change a clip that is already in the queue. Make a new folder with a new id. - Don't touch `.published.json` and `.lbpublisher/`. The server owns them. - Don't publish through platform APIs and don't tap buttons for the human.