From 7891f3c3c051862ffc28dc6ff1e9818aa6c897aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Liu=20=E5=AE=9D=E7=8E=89?= Date: Tue, 31 Mar 2026 18:24:17 -0500 Subject: [PATCH] docs(baoyu-post-to-weibo): add post type auto-selection and safer CDP kill instructions --- skills/baoyu-post-to-weibo/SKILL.md | 14 +++++++++++--- skills/baoyu-post-to-weibo/scripts/bun.lock | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/skills/baoyu-post-to-weibo/SKILL.md b/skills/baoyu-post-to-weibo/SKILL.md index 22ce1ff..b106d65 100644 --- a/skills/baoyu-post-to-weibo/SKILL.md +++ b/skills/baoyu-post-to-weibo/SKILL.md @@ -141,17 +141,25 @@ If the check fails (warnings in output), alert the user with the specific issues --- +## Post Type Selection + +Unless the user explicitly specifies the post type: +- **Markdown file** (`.md`) → **Headline Article** (头条文章) +- **Plain text** / text with images → **Regular Post** + ## Troubleshooting ### Chrome debug port not ready -If a script fails with `Chrome debug port not ready` or `Unable to connect`, kill existing Chrome CDP instances first, then retry: +If a script fails with `Chrome debug port not ready` or `Unable to connect`, kill only the CDP Chrome instances (those with `--remote-debugging-port` AND the baoyu-skills profile), then retry: ```bash -pkill -f "Chrome.*remote-debugging-port" 2>/dev/null; pkill -f "Chromium.*remote-debugging-port" 2>/dev/null; sleep 2 +pkill -f "remote-debugging-port.*baoyu-skills/chrome-profile" 2>/dev/null; sleep 2 ``` -**Important**: This should be done automatically -- when encountering this error, kill Chrome CDP instances and retry the command without asking the user. +**CRITICAL**: Never kill all Chrome processes (`pkill -f "Google Chrome"`). Only kill Chrome instances launched by CDP with the baoyu-skills profile directory. The user may have regular Chrome windows open. + +**Important**: This should be done automatically -- when encountering this error, kill the CDP Chrome instances and retry the command without asking the user. ## Notes diff --git a/skills/baoyu-post-to-weibo/scripts/bun.lock b/skills/baoyu-post-to-weibo/scripts/bun.lock index b5e4728..0bef2f5 100644 --- a/skills/baoyu-post-to-weibo/scripts/bun.lock +++ b/skills/baoyu-post-to-weibo/scripts/bun.lock @@ -1,5 +1,6 @@ { "lockfileVersion": 1, + "configVersion": 0, "workspaces": { "": { "name": "baoyu-post-to-weibo-scripts",