--- name: linkedin-launch description: "Launch a finished article on LinkedIn end to end: condense it into a feed post with the hero video, build the full LinkedIn article draft (cover, title, formatted text, GIFs with captions), then prepare a separate post for each channel to spread it. Use when the user says \"launch this\", \"publish this on LinkedIn\", or points at a media pack folder." argument-hint: "[path to media pack folder]" --- # LinkedIn launch Takes a media pack folder (default: the current folder) and launches it on LinkedIn. The publishing rule: **nothing goes public without the user's explicit "yes" in chat for that specific item.** Show the exact text first, every time. ## Expected folder layout ``` / article-linkedin.md # "# Title", sections with ##/###, [COVER: ...], [ANIMATION n: ...] + "Caption: ..." lines cover/*.png # 1920x1080 article cover gif/NN-*.gif # in-article animations, in marker order mp4/00-hero.mp4 # feed video ``` If something is missing, say what and continue with what exists. ## Step 1: Feed post (video) 1. Read `article-linkedin.md` in full. 2. Write `post-linkedin.txt`: plain text (no markdown), under 3,000 characters, strongest idea in the first two lines, short paragraphs, → bullets for evidence, numbered list for "why it matters", one line on how to try it, closing question, 3 to 5 hashtags. No links in the post body. 3. Show it to the user and ask: post now, edit, or skip. Only on "yes": - Claude in Chrome → linkedin.com/feed → click **Video** → `file_upload` mp4/00-hero.mp4 to the hidden file input → click the pencil (Edit) on the video → Thumbnail → upload cover/00-cover.png (never rely on the first frame, it can be black) → Next → click the text box → type the text → Post → wait until "Post successful". ## Step 2: Article draft 1. Convert the article: `python3 -I ~/.claude/skills/linkedin-launch/md2chunks.py /article-linkedin.md /chunks.json` It returns one HTML chunk per section between animations, plus the captions. `##` becomes `

` (LinkedIn "Heading 1"), `###` stays `

`. 2. Open https://www.linkedin.com/article/new/ and dismiss any welcome dialog. 3. Before clicking any upload button, patch the file picker so no native dialog opens: ```js window.__ccOrig = window.__ccOrig || HTMLInputElement.prototype.click; HTMLInputElement.prototype.click = function(){ if(this.type==='file'){ if(!this.isConnected){this.style.display='none';document.body.appendChild(this);} return;} return window.__ccOrig.call(this); }; ``` 4. Cover: click "Upload from computer" → `find` the file input → `file_upload` the cover → Next. Title: click the Title box and type the `# ` heading. 5. Install the helpers (editor is ProseMirror, and a synthetic paste keeps headings, bold, links, lists and code): ```js window.__paste = h => { const ed=document.querySelector('.ProseMirror'); ed.focus(); const dt=new DataTransfer(); dt.setData('text/html',h); dt.setData('text/plain',h.replace(/<[^>]+>/g,' ')); ed.dispatchEvent(new ClipboardEvent('paste',{clipboardData:dt,bubbles:true,cancelable:true})); }; window.__toEnd = async () => { const ed=document.querySelector('.ProseMirror'), p=ed.lastElementChild; ed.focus(); const r=document.createRange(); r.setStart(p,0); r.collapse(true); const s=getSelection(); s.removeAllRanges(); s.addRange(r); await new Promise(r=>setTimeout(r,200)); }; window.__next = async () => { for(let i=0;i<40;i++){ const b=[...document.querySelectorAll('[role=dialog] button')].find(b=>b.textContent.trim()==='Next'); if(b&&!b.disabled){b.click();return true;} await new Promise(r=>setTimeout(r,500)); } return false; }; window.__waitFig = async n => { for(let i=0;i<40;i++){ const ed=document.querySelector('.ProseMirror'); if(ed.querySelectorAll('figure').length>n && ed.lastElementChild.tagName==='P' && ed.lastElementChild.textContent==='') return true; await new Promise(r=>setTimeout(r,500)); } return false; }; window.__cap = () => { const t=[...document.querySelectorAll('.ProseMirror textarea.article-editor-figure-caption')].pop(); t.scrollIntoView({block:'center'}); t.focus(); return true; }; ``` 6. Click into the body and `__paste(chunk[0])`. Then for each GIF i (1..n): - click the toolbar image button → `find` "file input" → `file_upload` gif i - `const n=document.querySelectorAll('.ProseMirror figure').length; await __next(); await __waitFig(n); __cap()`. **Never continue until `__waitFig` returns true.** A slow upload otherwise puts the caption and text in the wrong place. - type caption i with the `computer` type action - `await __toEnd(); __paste(chunk[i])` - verify with the list of top level tag names: each FIGURE must come right after its section. 7. GIF check: open Manage → Preview and fetch each image. Count `0x21 0xF9` byte pairs (frames). More than 1 means animated. If they're stills, stop and offer the MP4s instead. 8. Show the user the preview and ask before clicking **Publish**. On the publish screen, the share text must use a **different hook** from the video post (personal story or "what's in the full piece"), not the same opening. Suggest publishing a day after the video post. ## Step 3: Spread it 1. Write `distribution-kit.md` in the pack, with a separate version per channel (never the same text everywhere): - LinkedIn: link comment on the video post (check first whether the user already posted one) - Reddit: a "here's what I found" post with numbers in the style of r/ClaudeAI, plus a post with a business angle for r/AI_Agents. A summary is required, not a bare link - X/Bluesky thread with one GIF per post - Hacker News title + fallback to the primary source - Newsletter tip (TLDR AI, Ben's Bites, The Rundown) - Medium import steps (keeps LinkedIn as the canonical source) 2. Ask which channel to do next. Post only with a "yes" for each item, in a site where the user is already signed in. Never create accounts or type passwords. Draft newsletter emails in Gmail rather than sending them. 3. Recommend spacing channels over a few days. ## Wrap up Report what is live (with links), what is drafted, and the current impressions and reactions from the activity page.