[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77V6DR2GM8M164EDFBWY80A":3,"skill-same:01M77V6DR2GM8M164EDFBWY80A":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":33,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M77V6DR2GM8M164EDFBWY80A","social-auto-poster",null,"Automate posting content with images to LinkedIn, X\u002FTwitter, Facebook, WordPress, and Substack via browser automation. Use when: (1) posting a new article or social update to one or more platforms, (2) cross-platform publishing with platform-specific images, (3) verifying a post was published successfully. Includes image creation via overlay script, ARM upload pattern, and per-platform browser workflows. NOT for: reading feeds, DMs, analytics, or scheduling (use cron instead).","Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fsocial-auto-poster\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"social-auto-poster\"\ndescription: \"Automate posting content with images to LinkedIn, X\u002FTwitter, Facebook, WordPress, and Substack via browser automation. Use when: (1) posting a new article or social update to one or more platforms, (2) cross-platform publishing with platform-specific images, (3) verifying a post was published successfully. Includes image creation via overlay script, ARM upload pattern, and per-platform browser workflows. NOT for: reading feeds, DMs, analytics, or scheduling (use cron instead).\"\nlicense: MIT\nmetadata:\n  version: 1.1.0\n  author: quocmodoro\n  category: marketing\n---\n\n# Social Auto Poster\n\nCross-platform publishing skill for LinkedIn, X\u002FTwitter, Facebook, WordPress, and Substack. Covers one-time setup, image creation, ARM upload, text entry, and post verification for each platform.\n\n---\n\n## Prerequisites — One-Time Setup\n\nComplete these steps once before using this skill for the first time.\n\n### 1. Browser Login (LinkedIn, X, Facebook, Substack)\n\nThese four platforms use browser session authentication. You must log in manually once and keep the browser session alive.\n\n```\nbrowser start\nnavigate linkedin.com → log in if prompted\nnavigate x.com → log in if prompted\nnavigate facebook.com → log in if prompted\nnavigate [publication].substack.com → log in if prompted\nbrowser stop\n```\n\n**Important rules:**\n- Never run `pkill -f \"Google Chrome\"` or kill the browser process manually — this destroys all saved sessions and forces you to log in again\n- Only use `browser stop` \u002F `browser start` via OpenClaw to restart the browser safely\n- Sessions persist in the browser profile directory and survive restarts as long as you use `browser stop`\n\n### 2. WordPress Credentials\n\nWordPress uses REST API with Application Password — no browser needed.\n\nCreate a credentials file at `~\u002F.openclaw\u002F.wp-[yoursite].env`:\n\n```bash\nWP_URL=https:\u002F\u002Fyoursite.com\nWP_USER=your_username\nWP_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx\n```\n\nTo generate an Application Password:\n1. Go to WordPress Admin → Users → Profile\n2. Scroll to \"Application Passwords\"\n3. Enter a name (e.g., \"OpenClaw\") → click Add New\n4. Copy the generated password into the `.env` file\n\n### 3. Image Overlay Script\n\nThis skill uses a shell script to generate quote images from your photo library. Locate or install it at:\n\n```\n~\u002Fworkspace\u002Flinkedin-assets\u002Fcreate-overlay-image.sh\n```\n\nVerify it works:\n```bash\nbash ~\u002Fworkspace\u002Flinkedin-assets\u002Fcreate-overlay-image.sh \"Test quote\" \u002Ftmp\u002Ftest-output.png\nls -lh \u002Ftmp\u002Ftest-output.png\n```\n\nExpected output: a PNG file with your quote overlaid on a background photo.\n\n### 4. Upload Directory\n\nEnsure the uploads directory exists:\n\n```bash\nmkdir -p \u002Ftmp\u002Fopenclaw\u002Fuploads\n```\n\nNote: `\u002Ftmp\u002F` is cleared on system reboot. Recreate images if needed after restart.\n\n---\n\n## Workflow Overview\n\nFor each post, follow this sequence:\n\n```\nStep 1: Create images (bash script) — before opening any browser\nStep 2: Post to LinkedIn\nStep 3: Post to X\u002FTwitter (include LinkedIn link)\nStep 4: Post to Facebook\nStep 5: Post to WordPress (API, no browser)\nStep 6: Post to Substack (browser)\nStep 7: Verify all platforms\n```\n\nAlways create both images first. Opening and closing the browser repeatedly wastes time and risks losing sessions.\n\n---\n\n## Step 1 — Create Images\n\nRun both image commands before opening the browser:\n\n```bash\n# English image — used for LinkedIn and X\nbash ~\u002Fworkspace\u002Flinkedin-assets\u002Fcreate-overlay-image.sh \\\n  \"Your English quote here\" \\\n  \u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-en.png\n\n# Local language image — used for Facebook, WordPress, Substack\nbash ~\u002Fworkspace\u002Flinkedin-assets\u002Fcreate-overlay-image.sh \\\n  \"Your local language quote here\" \\\n  \u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png\n```\n\nVerify both files exist and are non-empty before continuing:\n```bash\nls -lh \u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-en.png \u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png\n```\n\n---\n\n## Step 2 — LinkedIn\n\n**Key constraint:** Upload dialog lives inside a Shadow DOM (`div.theme--light`). ARM + Playwright native click is required. Never use `evaluate input.click()`.\n\n```\nbrowser start → navigate linkedin.com\u002Ffeed\u002F → wait for \"Photo\" text to appear\n\nARM upload:\n  browser upload paths=[\"\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-en.png\"]\n  (no selector — ARM queues the file for the next file picker that opens)\n\nsnapshot → get ref for Photo button (an \u003CA> link to \u002Fpreload\u002Fsharebox\u002F?detourType=IMAGE)\nclick ref [Photo] → wait for Editor dialog to open\n\n  CHECK: if dialog shows \"N of M\" (e.g. \"1 of 2\") → leftover from previous session\n  → click Delete button until counter shows \"1 of 1\"\n\nclick Next → wait for \"Create post modal\" to appear\nsnapshot → get ref for textbox labeled \"Text editor for creating content\"\nclick ref [textbox] → type ref [full post text including hashtags]\nsnapshot → verify Post button is active (not disabled)\nclick ref [Post] → wait 8s\n\nVerify:\n  navigate linkedin.com\u002Fin\u002F[username]\u002Frecent-activity\u002Fall\u002F\n  evaluate: document.querySelectorAll('[data-urn]')[0].innerText → should contain your text\n\nbrowser close tab → browser stop\n```\n\n---\n\n## Step 3 — X \u002F Twitter\n\n**Key constraint:** ARM interceptor only fires on Playwright native click (`click ref`). Never use `evaluate btn.click()` to trigger the file picker — it breaks ARM and causes the image and text to post as two separate tweets.\n\n**280-character limit:** Count characters before typing. If over, shorten the text first.\n\n```\nbrowser start → navigate x.com\u002Fcompose\u002Fpost → wait 3s\n\nARM upload:\n  browser upload paths=[\"\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-en.png\"]\n\nsnapshot depth=6 → get ref for \"Add photos or video\" button\n  (depth=6 needed to expose buttons nested inside \u003Cnavigation>)\n\nclick ref [Add photos or video] ← Playwright native click, NOT evaluate\nwait 5s → evaluate: document.querySelectorAll('img[src*=\"blob:\"]').length\n  → must equal 1 before continuing\n\nsnapshot → get ref for textbox \"Post text\" (refs change after image attaches — always re-snapshot)\nclick ref [textbox] → type ref [text, max 280 characters]\n\nevaluate: verify before posting\n  document.querySelector('[data-testid=\"tweetButton\"]').disabled === false\n  document.querySelector('[data-testid=\"tweetTextarea_0\"]').innerText.length ≤ 280\n\nevaluate: document.querySelector('[data-testid=\"tweetButton\"]').click()\nwait 10s → evaluate: location.href → should be \"https:\u002F\u002Fx.com\u002Fhome\"\n\nbrowser close tab → browser stop\n```\n\n**Tip:** Include the LinkedIn post URL in the X text to drive cross-platform traffic.\n\n---\n\n## Step 4 — Facebook\n\n**Key constraint:** After the image uploads, Facebook switches to a new screen and the textbox count drops from 3 to 1. Always re-query the textbox AFTER `blob=1` is confirmed — typing before that goes into the wrong element.\n\n```\nbrowser start → navigate facebook.com → wait 5s\n\nevaluate: click \"What's on your mind?\" \u002F \"Bạn đang nghĩ gì?\" button\n  [...document.querySelectorAll('[role=\"button\"]')]\n    .find(b => b.textContent.includes('đang nghĩ gì') || b.textContent.includes(\"on your mind\"))\n    .click()\n\nwait 2s → verify \"Create post\" \u002F \"Tạo bài viết\" dialog is open\n\nARM upload:\n  browser upload paths=[\"\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png\"]\n\nevaluate: inside \"Tạo bài viết\" dialog, click the photo button:\n  dialog.querySelector('[aria-label=\"Ảnh\u002Fvideo\"]').click()\n  (or \"[aria-label='Photo\u002Fvideo']\" for English UI)\n\nwait 6s → evaluate: document.querySelectorAll('img[src*=\"blob:\"]').length\n  IF blob=0: ARM again + click photo button again (max 2 retries)\n\nOnce blob=1:\n  evaluate: re-query textbox — after image loads there is exactly 1:\n    document.querySelector('[role=\"dialog\"] [role=\"textbox\"][contenteditable=\"true\"]')\n  evaluate: tb.click(); tb.focus()\n  browser act type selector='[role=\"dialog\"] [role=\"textbox\"][contenteditable=\"true\"]'\n    text=[full post text including hashtags]\n\nevaluate: verify blob=1 AND textbox.innerText.length > 0\n\nevaluate: click \"Next\" \u002F \"Tiếp\" button\nwait 5s\nevaluate: click \"Post\" \u002F \"Đăng\" button\nwait 8s\n\nevaluate: verify compose dialog is gone:\n  !document.querySelectorAll('[role=\"dialog\"]').some(d => d.innerText.includes('Tạo bài viết'))\n\nbrowser close tab → browser stop\n```\n\n---\n\n## Step 5 — WordPress (REST API)\n\nNo browser needed. Load credentials first:\n\n```bash\nsource ~\u002F.openclaw\u002F.wp-[yoursite].env\n```\n\n**5a. Upload featured image:**\n```bash\nMEDIA=$(curl -s -X POST \"$WP_URL\u002Fwp-json\u002Fwp\u002Fv2\u002Fmedia\" \\\n  -u \"$WP_USER:$WP_APP_PASSWORD\" \\\n  -H \"Content-Disposition: attachment; filename=post-image.png\" \\\n  -H \"Content-Type: image\u002Fpng\" \\\n  --data-binary @\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png)\n\nMEDIA_ID=$(echo $MEDIA | python3 -c \"import sys,json; print(json.load(sys.stdin)['id'])\")\nIMAGE_URL=$(echo $MEDIA | python3 -c \"import sys,json; print(json.load(sys.stdin)['source_url'])\")\n```\n\n**5b. Build post JSON** (always use Python — never heredoc, heredoc breaks UTF-8):\n```bash\npython3 -c \"\nimport json\npost = {\n  'title': 'Your Post Title',\n  'content': '\u003Cp>Full HTML content here.\u003C\u002Fp>',\n  'status': 'publish',\n  'categories': [8],\n  'featured_media': $MEDIA_ID\n}\nwith open('\u002Ftmp\u002Fwp-post.json', 'w') as f:\n    json.dump(post, f, ensure_ascii=False)\n\"\n```\n\n**5c. Publish:**\n```bash\nPOST=$(curl -s -X POST \"$WP_URL\u002Fwp-json\u002Fwp\u002Fv2\u002Fposts\" \\\n  -u \"$WP_USER:$WP_APP_PASSWORD\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  --data-binary @\u002Ftmp\u002Fwp-post.json)\n\nPOST_ID=$(echo $POST | python3 -c \"import sys,json; print(json.load(sys.stdin)['id'])\")\nPOST_URL=$(echo $POST | python3 -c \"import sys,json; print(json.load(sys.stdin)['link'])\")\necho \"Published: $POST_URL\"\n```\n\n**5d. Patch Yoast SEO OG image** (required — skipping this causes avatar.jpg to show when the post is shared):\n```bash\ncurl -s -X POST \"$WP_URL\u002Fwp-json\u002Fwp\u002Fv2\u002Fposts\u002F$POST_ID\" \\\n  -u \"$WP_USER:$WP_APP_PASSWORD\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"meta\\\":{\\\"_yoast_wpseo_opengraph-image\\\":\\\"$IMAGE_URL\\\",\\\"_yoast_wpseo_opengraph-image-id\\\":$MEDIA_ID}}\"\n```\n\n**5e. Verify OG image:**\n```bash\ncurl -s \"$WP_URL\u002Fwp-json\u002Fwp\u002Fv2\u002Fposts\u002F$POST_ID?_fields=yoast_head_json\" \\\n  | python3 -c \"import sys,json; d=json.load(sys.stdin); print(d['yoast_head_json']['og_image'][0]['url'])\"\n# Should print the post image URL, not avatar.jpg\n```\n\n**Default category IDs** (adjust per site): 8=Business, 6=Marketing, 14=Skills, 10=Lifestyle, 5=Other\n\n---\n\n## Step 6 — Substack\n\n**Key constraint:** Insert the image into the body FIRST, then type text. Opposite of Facebook. Text typed before image insertion gets wiped when ProseMirror re-renders.\n\n```\nbrowser start\nnavigate [publication].substack.com\u002Fpublish\u002Fpost\u002Fnew → wait 5s\n  (NOT substack.com\u002Fnew — must use the publication subdomain URL)\n\nsnapshot → type Title → type Subtitle (if needed)\n\nARM upload:\n  browser upload paths=[\"\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png\"]\n\nsnapshot → get ref for Image button in ProseMirror toolbar\nclick ref [Image] → wait for file picker → ARM intercepts → image inserts into body\nwait 5s → verify image blob appears in editor content\n\nsnapshot → get ref for .ProseMirror-focused editor area\ntype ref [full post content] (timeoutMs=60000 for long posts)\n\nclick Continue → wait 5s\nsnapshot → click \"Send to everyone now\" \u002F \"Publish now\"\nwait 8s → verify publish confirmation appears\n\nbrowser tabs → get targetId → browser close targetId → browser stop\n```\n\n**Verify:** Navigate to `[publication].substack.com` — latest post should appear at the top.\n\n---\n\n## Step 7 — Verification Checklist\n\nAfter posting to all platforms:\n\n| Platform | Verify by |\n|----------|-----------|\n| LinkedIn | recent-activity page — post text visible + image attached |\n| X | x.com\u002Fhome feed — tweet with image visible |\n| Facebook | Profile or Page feed — post with image and full text visible |\n| WordPress | Visit post URL — featured image correct, OG image not avatar |\n| Substack | Publication homepage — post appears at top |\n\n---\n\n## Error Reference\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| X: two posts (1 image-only, 1 text-only) | Used `evaluate btn.click()` for Add photos | Must use `click ref` from snapshot |\n| X: Post button stays disabled | Text over 280 chars | Check `tweetTextarea_0.innerText.length`, trim and retype |\n| FB: image uploaded but no text in post | Typed before blob=1 | Re-query textbox after blob=1 confirmed |\n| FB: blob=0 after 6s | ARM missed the file input | ARM again + click Ảnh\u002Fvideo again (max 2 retries) |\n| LinkedIn: \"N of M\" in Editor | Leftover image from previous session | Delete extras until \"1 of 1\" |\n| LinkedIn: Post button stays grey | Text not in shadow DOM editor | Use `type ref` not `type selector` |\n| WP: avatar shows on social share | Yoast OG image not patched | Run Step 5d and verify Step 5e |\n| Substack: text missing after publish | Text typed before image insertion | Always insert image first, then type |\n| Substack: page not found | Wrong URL format | Use `[pub].substack.com\u002Fpublish\u002Fpost\u002Fnew` not `substack.com\u002Fnew` |\n| All platforms: session lost after restart | Browser was killed manually | Never `pkill Chrome`; always use `browser stop` |\n\n---\n\n## Platform Summary\n\n| Platform | Image variant | Auth method | Tool |\n|----------|--------------|-------------|------|\n| LinkedIn | EN | Browser session | `browser` + ARM |\n| X\u002FTwitter | EN | Browser session | `browser` + ARM (native click only) |\n| Facebook | Local\u002FVI | Browser session | `browser` + ARM + re-query textbox |\n| WordPress | Local\u002FVI | App password in `.env` | `curl` REST API |\n| Substack | Local\u002FVI | Browser session | `browser` + ARM (image before text) |\n","# Social Auto Poster\n\nCross-platform publishing skill for LinkedIn, X\u002FTwitter, Facebook, WordPress, and Substack. Covers one-time setup, image creation, ARM upload, text entry, and post verification for each platform.\n\n---\n\n## Prerequisites — One-Time Setup\n\nComplete these steps once before using this skill for the first time.\n\n### 1. Browser Login (LinkedIn, X, Facebook, Substack)\n\nThese four platforms use browser session authentication. You must log in manually once and keep the browser session alive.\n\n```\nbrowser start\nnavigate linkedin.com → log in if prompted\nnavigate x.com → log in if prompted\nnavigate facebook.com → log in if prompted\nnavigate [publication].substack.com → log in if prompted\nbrowser stop\n```\n\n**Important rules:**\n- Never run `pkill -f \"Google Chrome\"` or kill the browser process manually — this destroys all saved sessions and forces you to log in again\n- Only use `browser stop` \u002F `browser start` via OpenClaw to restart the browser safely\n- Sessions persist in the browser profile directory and survive restarts as long as you use `browser stop`\n\n### 2. WordPress Credentials\n\nWordPress uses REST API with Application Password — no browser needed.\n\nCreate a credentials file at `~\u002F.openclaw\u002F.wp-[yoursite].env`:\n\n```bash\nWP_URL=https:\u002F\u002Fyoursite.com\nWP_USER=your_username\nWP_APP_PASSWORD=xxxx xxxx xxxx xxxx xxxx xxxx\n```\n\nTo generate an Application Password:\n1. Go to WordPress Admin → Users → Profile\n2. Scroll to \"Application Passwords\"\n3. Enter a name (e.g., \"OpenClaw\") → click Add New\n4. Copy the generated password into the `.env` file\n\n### 3. Image Overlay Script\n\nThis skill uses a shell script to generate quote images from your photo library. Locate or install it at:\n\n```\n~\u002Fworkspace\u002Flinkedin-assets\u002Fcreate-overlay-image.sh\n```\n\nVerify it works:\n```bash\nbash ~\u002Fworkspace\u002Flinkedin-assets\u002Fcreate-overlay-image.sh \"Test quote\" \u002Ftmp\u002Ftest-output.png\nls -lh \u002Ftmp\u002Ftest-output.png\n```\n\nExpected output: a PNG file with your quote overlaid on a background photo.\n\n### 4. Upload Directory\n\nEnsure the uploads directory exists:\n\n```bash\nmkdir -p \u002Ftmp\u002Fopenclaw\u002Fuploads\n```\n\nNote: `\u002Ftmp\u002F` is cleared on system reboot. Recreate images if needed after restart.\n\n---\n\n## Workflow Overview\n\nFor each post, follow this sequence:\n\n```\nStep 1: Create images (bash script) — before opening any browser\nStep 2: Post to LinkedIn\nStep 3: Post to X\u002FTwitter (include LinkedIn link)\nStep 4: Post to Facebook\nStep 5: Post to WordPress (API, no browser)\nStep 6: Post to Substack (browser)\nStep 7: Verify all platforms\n```\n\nAlways create both images first. Opening and closing the browser repeatedly wastes time and risks losing sessions.\n\n---\n\n## Step 1 — Create Images\n\nRun both image commands before opening the browser:\n\n```bash\n# English image — used for LinkedIn and X\nbash ~\u002Fworkspace\u002Flinkedin-assets\u002Fcreate-overlay-image.sh \\\n  \"Your English quote here\" \\\n  \u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-en.png\n\n# Local language image — used for Facebook, WordPress, Substack\nbash ~\u002Fworkspace\u002Flinkedin-assets\u002Fcreate-overlay-image.sh \\\n  \"Your local language quote here\" \\\n  \u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png\n```\n\nVerify both files exist and are non-empty before continuing:\n```bash\nls -lh \u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-en.png \u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png\n```\n\n---\n\n## Step 2 — LinkedIn\n\n**Key constraint:** Upload dialog lives inside a Shadow DOM (`div.theme--light`). ARM + Playwright native click is required. Never use `evaluate input.click()`.\n\n```\nbrowser start → navigate linkedin.com\u002Ffeed\u002F → wait for \"Photo\" text to appear\n\nARM upload:\n  browser upload paths=[\"\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-en.png\"]\n  (no selector — ARM queues the file for the next file picker that opens)\n\nsnapshot → get ref for Photo button (an \u003CA> link to \u002Fpreload\u002Fsharebox\u002F?detourType=IMAGE)\nclick ref [Photo] → wait for Editor dialog to open\n\n  CHECK: if dialog shows \"N of M\" (e.g. \"1 of 2\") → leftover from previous session\n  → click Delete button until counter shows \"1 of 1\"\n\nclick Next → wait for \"Create post modal\" to appear\nsnapshot → get ref for textbox labeled \"Text editor for creating content\"\nclick ref [textbox] → type ref [full post text including hashtags]\nsnapshot → verify Post button is active (not disabled)\nclick ref [Post] → wait 8s\n\nVerify:\n  navigate linkedin.com\u002Fin\u002F[username]\u002Frecent-activity\u002Fall\u002F\n  evaluate: document.querySelectorAll('[data-urn]')[0].innerText → should contain your text\n\nbrowser close tab → browser stop\n```\n\n---\n\n## Step 3 — X \u002F Twitter\n\n**Key constraint:** ARM interceptor only fires on Playwright native click (`click ref`). Never use `evaluate btn.click()` to trigger the file picker — it breaks ARM and causes the image and text to post as two separate tweets.\n\n**280-character limit:** Count characters before typing. If over, shorten the text first.\n\n```\nbrowser start → navigate x.com\u002Fcompose\u002Fpost → wait 3s\n\nARM upload:\n  browser upload paths=[\"\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-en.png\"]\n\nsnapshot depth=6 → get ref for \"Add photos or video\" button\n  (depth=6 needed to expose buttons nested inside \u003Cnavigation>)\n\nclick ref [Add photos or video] ← Playwright native click, NOT evaluate\nwait 5s → evaluate: document.querySelectorAll('img[src*=\"blob:\"]').length\n  → must equal 1 before continuing\n\nsnapshot → get ref for textbox \"Post text\" (refs change after image attaches — always re-snapshot)\nclick ref [textbox] → type ref [text, max 280 characters]\n\nevaluate: verify before posting\n  document.querySelector('[data-testid=\"tweetButton\"]').disabled === false\n  document.querySelector('[data-testid=\"tweetTextarea_0\"]').innerText.length ≤ 280\n\nevaluate: document.querySelector('[data-testid=\"tweetButton\"]').click()\nwait 10s → evaluate: location.href → should be \"https:\u002F\u002Fx.com\u002Fhome\"\n\nbrowser close tab → browser stop\n```\n\n**Tip:** Include the LinkedIn post URL in the X text to drive cross-platform traffic.\n\n---\n\n## Step 4 — Facebook\n\n**Key constraint:** After the image uploads, Facebook switches to a new screen and the textbox count drops from 3 to 1. Always re-query the textbox AFTER `blob=1` is confirmed — typing before that goes into the wrong element.\n\n```\nbrowser start → navigate facebook.com → wait 5s\n\nevaluate: click \"What's on your mind?\" \u002F \"Bạn đang nghĩ gì?\" button\n  [...document.querySelectorAll('[role=\"button\"]')]\n    .find(b => b.textContent.includes('đang nghĩ gì') || b.textContent.includes(\"on your mind\"))\n    .click()\n\nwait 2s → verify \"Create post\" \u002F \"Tạo bài viết\" dialog is open\n\nARM upload:\n  browser upload paths=[\"\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png\"]\n\nevaluate: inside \"Tạo bài viết\" dialog, click the photo button:\n  dialog.querySelector('[aria-label=\"Ảnh\u002Fvideo\"]').click()\n  (or \"[aria-label='Photo\u002Fvideo']\" for English UI)\n\nwait 6s → evaluate: document.querySelectorAll('img[src*=\"blob:\"]').length\n  IF blob=0: ARM again + click photo button again (max 2 retries)\n\nOnce blob=1:\n  evaluate: re-query textbox — after image loads there is exactly 1:\n    document.querySelector('[role=\"dialog\"] [role=\"textbox\"][contenteditable=\"true\"]')\n  evaluate: tb.click(); tb.focus()\n  browser act type selector='[role=\"dialog\"] [role=\"textbox\"][contenteditable=\"true\"]'\n    text=[full post text including hashtags]\n\nevaluate: verify blob=1 AND textbox.innerText.length > 0\n\nevaluate: click \"Next\" \u002F \"Tiếp\" button\nwait 5s\nevaluate: click \"Post\" \u002F \"Đăng\" button\nwait 8s\n\nevaluate: verify compose dialog is gone:\n  !document.querySelectorAll('[role=\"dialog\"]').some(d => d.innerText.includes('Tạo bài viết'))\n\nbrowser close tab → browser stop\n```\n\n---\n\n## Step 5 — WordPress (REST API)\n\nNo browser needed. Load credentials first:\n\n```bash\nsource ~\u002F.openclaw\u002F.wp-[yoursite].env\n```\n\n**5a. Upload featured image:**\n```bash\nMEDIA=$(curl -s -X POST \"$WP_URL\u002Fwp-json\u002Fwp\u002Fv2\u002Fmedia\" \\\n  -u \"$WP_USER:$WP_APP_PASSWORD\" \\\n  -H \"Content-Disposition: attachment; filename=post-image.png\" \\\n  -H \"Content-Type: image\u002Fpng\" \\\n  --data-binary @\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png)\n\nMEDIA_ID=$(echo $MEDIA | python3 -c \"import sys,json; print(json.load(sys.stdin)['id'])\")\nIMAGE_URL=$(echo $MEDIA | python3 -c \"import sys,json; print(json.load(sys.stdin)['source_url'])\")\n```\n\n**5b. Build post JSON** (always use Python — never heredoc, heredoc breaks UTF-8):\n```bash\npython3 -c \"\nimport json\npost = {\n  'title': 'Your Post Title',\n  'content': '\u003Cp>Full HTML content here.\u003C\u002Fp>',\n  'status': 'publish',\n  'categories': [8],\n  'featured_media': $MEDIA_ID\n}\nwith open('\u002Ftmp\u002Fwp-post.json', 'w') as f:\n    json.dump(post, f, ensure_ascii=False)\n\"\n```\n\n**5c. Publish:**\n```bash\nPOST=$(curl -s -X POST \"$WP_URL\u002Fwp-json\u002Fwp\u002Fv2\u002Fposts\" \\\n  -u \"$WP_USER:$WP_APP_PASSWORD\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  --data-binary @\u002Ftmp\u002Fwp-post.json)\n\nPOST_ID=$(echo $POST | python3 -c \"import sys,json; print(json.load(sys.stdin)['id'])\")\nPOST_URL=$(echo $POST | python3 -c \"import sys,json; print(json.load(sys.stdin)['link'])\")\necho \"Published: $POST_URL\"\n```\n\n**5d. Patch Yoast SEO OG image** (required — skipping this causes avatar.jpg to show when the post is shared):\n```bash\ncurl -s -X POST \"$WP_URL\u002Fwp-json\u002Fwp\u002Fv2\u002Fposts\u002F$POST_ID\" \\\n  -u \"$WP_USER:$WP_APP_PASSWORD\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d \"{\\\"meta\\\":{\\\"_yoast_wpseo_opengraph-image\\\":\\\"$IMAGE_URL\\\",\\\"_yoast_wpseo_opengraph-image-id\\\":$MEDIA_ID}}\"\n```\n\n**5e. Verify OG image:**\n```bash\ncurl -s \"$WP_URL\u002Fwp-json\u002Fwp\u002Fv2\u002Fposts\u002F$POST_ID?_fields=yoast_head_json\" \\\n  | python3 -c \"import sys,json; d=json.load(sys.stdin); print(d['yoast_head_json']['og_image'][0]['url'])\"\n# Should print the post image URL, not avatar.jpg\n```\n\n**Default category IDs** (adjust per site): 8=Business, 6=Marketing, 14=Skills, 10=Lifestyle, 5=Other\n\n---\n\n## Step 6 — Substack\n\n**Key constraint:** Insert the image into the body FIRST, then type text. Opposite of Facebook. Text typed before image insertion gets wiped when ProseMirror re-renders.\n\n```\nbrowser start\nnavigate [publication].substack.com\u002Fpublish\u002Fpost\u002Fnew → wait 5s\n  (NOT substack.com\u002Fnew — must use the publication subdomain URL)\n\nsnapshot → type Title → type Subtitle (if needed)\n\nARM upload:\n  browser upload paths=[\"\u002Ftmp\u002Fopenclaw\u002Fuploads\u002F[topic]-vi.png\"]\n\nsnapshot → get ref for Image button in ProseMirror toolbar\nclick ref [Image] → wait for file picker → ARM intercepts → image inserts into body\nwait 5s → verify image blob appears in editor content\n\nsnapshot → get ref for .ProseMirror-focused editor area\ntype ref [full post content] (timeoutMs=60000 for long posts)\n\nclick Continue → wait 5s\nsnapshot → click \"Send to everyone now\" \u002F \"Publish now\"\nwait 8s → verify publish confirmation appears\n\nbrowser tabs → get targetId → browser close targetId → browser stop\n```\n\n**Verify:** Navigate to `[publication].substack.com` — latest post should appear at the top.\n\n---\n\n## Step 7 — Verification Checklist\n\nAfter posting to all platforms:\n\n| Platform | Verify by |\n|----------|-----------|\n| LinkedIn | recent-activity page — post text visible + image attached |\n| X | x.com\u002Fhome feed — tweet with image visible |\n| Facebook | Profile or Page feed — post with image and full text visible |\n| WordPress | Visit post URL — featured image correct, OG image not avatar |\n| Substack | Publication homepage — post appears at top |\n\n---\n\n## Error Reference\n\n| Symptom | Cause | Fix |\n|---------|-------|-----|\n| X: two posts (1 image-only, 1 text-only) | Used `evaluate btn.click()` for Add photos | Must use `click ref` from snapshot |\n| X: Post button stays disabled | Text over 280 chars | Check `tweetTextarea_0.innerText.length`, trim and retype |\n| FB: image uploaded but no text in post | Typed before blob=1 | Re-query textbox after blob=1 confirmed |\n| FB: blob=0 after 6s | ARM missed the file input | ARM again + click Ảnh\u002Fvideo again (max 2 retries) |\n| LinkedIn: \"N of M\" in Editor | Leftover image from previous session | Delete extras until \"1 of 1\" |\n| LinkedIn: Post button stays grey | Text not in shadow DOM editor | Use `type ref` not `type selector` |\n| WP: avatar shows on social share | Yoast OG image not patched | Run Step 5d and verify Step 5e |\n| Substack: text missing after publish | Text typed before image insertion | Always insert image first, then type |\n| Substack: page not found | Wrong URL format | Use `[pub].substack.com\u002Fpublish\u002Fpost\u002Fnew` not `substack.com\u002Fnew` |\n| All platforms: session lost after restart | Browser was killed manually | Never `pkill Chrome`; always use `browser stop` |\n\n---\n\n## Platform Summary\n\n| Platform | Image variant | Auth method | Tool |\n|----------|--------------|-------------|------|\n| LinkedIn | EN | Browser session | `browser` + ARM |\n| X\u002FTwitter | EN | Browser session | `browser` + ARM (native click only) |\n| Facebook | Local\u002FVI | Browser session | `browser` + ARM + re-query textbox |\n| WordPress | Local\u002FVI | App password in `.env` | `curl` REST API |\n| Substack | Local\u002FVI | Browser session | `browser` + ARM (image before text) |\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26,"category":27},"quocmodoro","1.1.0","marketing","master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fs\u002Fsocial-auto-poster",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill social-auto-poster",{"tool":43,"command":44},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill social-auto-poster",{"tool":46,"command":47},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill social-auto-poster","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fs\u002Fsocial-auto-poster\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]