Skip to content
Back to skills

Short Publish

ASecurity

Post a finished vertical lesson from ~/Movies/lpm-lessons/tiktok/<slug>/ to YouTube Shorts (LPM channel, YouTube Studio) and TikTok (@lpm06557, TikTok Studio), both through Chrome: the MP4, the caption and hashtags from post.txt, the headline cover, each platform's settings, then both links logged and the title listed in SHORTS.md. Use when the user asks to upload, publish or post a short, vertical, TikTok or YouTube Shorts video, to one platform or both.

  • 149 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added October 7, 2026
developmentgonodegit

Works with

  • claude code
  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add gug007/lpm --skill short-publish --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Short Publish?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Short Publish
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gug007-short-publish/badge)](https://www.skillsdirectory.com/skills/gug007-short-publish)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: short-publish
description: "Post a finished vertical lesson from ~/Movies/lpm-lessons/tiktok/<slug>/ to YouTube Shorts (LPM channel, YouTube Studio) and TikTok (@lpm06557, TikTok Studio), both through Chrome: the MP4, the caption and hashtags from post.txt, the headline cover, each platform's settings, then both links logged and the title listed in SHORTS.md. Use when the user asks to upload, publish or post a short, vertical, TikTok or YouTube Shorts video, to one platform or both."
version: 3.0.0
argument-hint: "<slug> [youtube|tiktok]"
metadata:
  lpm-created: "true"
---

Post a vertical lesson to YouTube Shorts and TikTok, both from Chrome.

- scope: both platforms unless the user names one. A platform whose ledger already lists the slug is skipped unless the user asked for a repost.
- run `node scripts/prepare.js <slug> <scratchpad-dir> [--full-lesson <youtu.be link>]` first. It copies the MP4 (named after the title, because Studio pre-fills the title from the file name) and `cover.jpg` into the scratchpad, shrinks a master over 10,000,000 bytes to a two-pass H.264 copy (the master stays in the lesson folder), and prints the title, the TikTok caption and the YouTube description. It warns about a wrong size, a clip over 3 minutes (not a Short), a title the file name could not carry (retype it), an over-long caption, more than 5 hashtags, an `@`, and a slug already in either ledger. `--full-lesson` is the long YouTube lesson on the same topic (Studio → Content → Videos); leave it out when there is none.
- shared text: the caption is the first paragraph of `post.txt`, then **at most 5 hashtags** (TikTok's cap; a 6th and later lose their `#`; when `post.txt` has more, keep the topic tags and `#lpm`). Brand stays lowercase `lpm`. No `@`. No next-video teaser. YouTube gets the same caption and hashtags plus the lpm line, the lpm.cx link and the GitHub repo line that prepare.js adds (TikTok gets no repo link: caption links are not clickable there). TikTok's caption ends with "lpm is free at lpm.cx." (prepare.js adds it unless the caption already says lpm.cx): a search for bare "lpm" shows LPM Restaurants first, a search for "lpm.cx" shows us. Type it as part of the caption, on the same line.

## Both platforms

Both go through the Claude in Chrome MCP, each in its own tab of the session's group. YouTube Studio first: start its `file_upload`, fill its form, and while its checks run open TikTok Studio in a second tab. Fill one form at a time.

- both platforms publish as soon as their forms are done and checked; neither waits for the user's OK (user rule 2026-09-30: "post it without asking").
- route: TikTok goes through TikTok Studio in Chrome (user rule 2026-12-03: "post with browser … use browser after that"), which replaced posting from the iPhone through iPhone Mirroring. That route is in [reference/tiktok-iphone.md](reference/tiktok-iphone.md): use it only when the user asks for the iPhone.
- a blocked half does not stop the other: finish the platform that works and tell the user which one is left. Chrome not signed in to TikTok (`tiktokstudio/upload` redirects to `/login`) or signed in as another account: stop the TikTok half and ask the user to sign in as @lpm06557. Never log in, log out or switch accounts yourself.
- close the tabs you opened once both links are logged.

## YouTube Shorts (Chrome)

- channel **LPM** (`UCIxcL1wPIlFT-4cahfHZJig`). Open `https://studio.youtube.com/channel/UCIxcL1wPIlFT-4cahfHZJig/videos/upload?d=ud`: it switches Studio to LPM and opens the upload dialog. `youtube.com/upload`, and a new MCP tab group, can land on the user's personal channel, even on an LPM video's `/edit` URL. Check the sidebar's "Your channel LPM" (or `ytcfg.get('CHANNEL_ID')` in JS) before `file_upload`.
- YouTube turns any vertical video of 3 minutes or less into a Short by itself: the link reads `youtube.com/shorts/<id>` and the row sits under Content → Shorts.
- Details: `find` the file input → `file_upload` the MP4 → wait ~6 s. Title: the lesson title as-is (100 characters max). Description: click the box, `type` prepare.js's YouTube description, then click a neutral label (the "Details" heading) to close the hashtag popup. When typing is dropped (another app took Chrome's focus) and the fields are filled in JS, set the description with `box.focus()`, select its contents, `document.execCommand('insertText', false, text)`: `innerText = text` shows the line breaks in the dialog but saves one run-on line ("…Codex.https://lpm.cx#claudecode"). Check the saved text on the edit page. Thumbnail: `find` the Thumbnail "Upload file" file input → `file_upload` the cover. Playlists: none (the tutorials playlist holds only the long lessons). Audience: "No, it's not made for kids" (`tp-yt-paper-radio-button[name="VIDEO_MADE_FOR_KIDS_NOT_MFK"]`). Show more → Tags: 15–20, a comma after each (lpm, lpm.cx, the lesson's own nouns and verbs, Claude Code, Codex, mac dev tools, developer tools). Category: Science & Technology (the channel default; check it). Paid promotion and AI use: left unanswered, as on the long lessons. Check the radios and tag chips with JS before leaving the step.
- Video elements: skip. "Related video" (a link from the Short to the long lesson) is refused on this channel with "Build your channel history"; "Got it" closes it. The "Full lesson" line in the description stands in for it.
- Next ×3 (`#next-button` in JS) → Public (`tp-yt-paper-radio-button[name="PUBLIC"]`; the button now reads Publish) → Publish → the "Video published" dialog shows the link. While YouTube's checks still run, Publish can open "We're still checking your content": Publish anyway.
- never press Escape in the upload dialog: it closes it. The upload is already a private draft: Content → Shorts → "Edit draft" on the row (a coordinate click; the dialog takes ~4 s to appear, and a click on the description before then hits the row behind it and opens that video's edit page).
- "We had trouble saving your video, retrying" once left the tab unresponsive to the extension even though the publish went through. Check from a new tab's Shorts list instead of waiting on the old one.
- verify: the Shorts row shows Public; `studio.youtube.com/video/<id>/edit` shows the description, the cover as the thumbnail, and the tags (Show more). A JS result that carries an image URL comes back blocked: read the thumbnail from a screenshot.

## TikTok (Chrome, TikTok Studio)

- account: **@lpm06557** (display name "lpm"). The page shows no handle: `(await fetch('/passport/web/account/info/?aid=1988',{credentials:'include'}).then(r=>r.json())).data.username` must be `lpm06557`. Any other handle, or none: stop this half (see above).
- cover: `cover.jpg`, the opening frame with the headline sticker and no caption.
- settings (user decisions 2026-09-25, AI label changed 2026-09-27): Everyone can view; comments and reuse (Duet, Stitch) allowed; **AI-generated content off**: never turn the label on and never mention AI-generated anywhere in the post (user 2026-09-27: "do not mention AI generated"); **Disclose post content on → Your brand** (the post is labeled "Promotional content", which cannot be changed once live); no sound added (the video carries its own voice and music); no schedule unless asked. The web form has no Ad authorization or Only show as ads controls.
- post without asking once the account, caption, hashtags, cover and labels check out; report them after posting. Stop and ask only when one of them is wrong and can't be fixed.

1. `navigate https://www.tiktok.com/tiktokstudio/upload`, check the account, `find` the "Select video to upload" file input and `file_upload` the scratchpad MP4. An "A video you were editing wasn't saved" banner can be ignored (the upload replaces it). Click Got it on tips ("Preview your video on your phone"), and Cancel on a "Turn on automatic content checks?" modal.
2. Description: a contenteditable pre-filled with the file name. Click it, `cmd+a`, Delete, `type` the caption, Return, wait 1.5 s, Return, wait 1.5 s, then each hashtag as its own `type` with a trailing space and a 1.5 s wait (typed in one go, the line breaks land after the first hashtag). A retype starts from a fully empty field: hashtags typed and then partly deleted still count toward the 5. Read it back: one blank line, 5 hashtags, the counter under 4000.
3. Cover: the thumbnail's "Edit cover" → the Edit cover dialog (frame strip with "Upload cover" at the bottom, Cancel/Save top right) → `find` the Upload cover file input → `file_upload` the scratchpad `cover.jpg` → Save.
4. Settings: Who can see this post = Everyone; Show more → Allow users to: Comment and Reuse of content ticked (the default); Disclose post content on (it starts off) → tick Your brand, leave Branded content unticked; AI-generated content off (the default); Audience control (18+ only) off (the default). When to post: Now. One JS pass over `[role="switch"], input[type="checkbox"]` with each one's label reads them all back.
5. Read every one of those back from the form, then Post. If one can't be set, don't post this half; say why. Never press Escape in the form, and don't navigate away before Post: leaving the page asks to discard the upload.
6. Post goes to `tiktokstudio/content` with a "Video published" toast. The new row shows at the top, "Content under review" (2026-12-03 it was there at once; earlier it took a reload about 15 s later). `find` its link (`/@lpm06557/video/<id>`); the public profile page sat on "Please wait…" in the MCP tab.

## After posting

- YouTube: append `- <YYYY-MM-DD> <slug> https://youtube.com/shorts/<id>` to `~/Movies/lpm-lessons/tiktok/SHORTS_POSTED.md` (create it with a `# YouTube Shorts posts` heading).
- TikTok: append `- <YYYY-MM-DD> <slug> https://www.tiktok.com/@lpm06557/video/<id>` to `~/Movies/lpm-lessons/tiktok/POSTED.md` (create it with a `# TikTok posts` heading). A new post shows "Content under review" (result within 12 hours) and Privacy "Only me" until the review finishes; it was posted as Everyone.
- titles: `SHORTS.md` at the repo root lists every posted short by title only, oldest first. Append `- <lesson title>` after the first platform posts (no links; those live in the two ledgers).
- report both links, the title, the caption as posted, each platform's labels, and TikTok's review status.

Files in this skill

  • SKILL.md12.2 KB
  • scripts/prepare.js5.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.