/SKILL.md
<!-- Source Code Repositories: - wenyan: https://github.com/aluan/wenyan - xhs (xiaohongshu-cli): https://github.com/aluan/xiaohongshu-cli - xhs-textcard: https://github.com/aluan/XHS-TextCard --> --- name: article-video-to-social description: Convert Bilibili videos or WeChat articles into social media content. Transcribe videos, extract article text, summarize and rewrite in platform-specific style, then publish to WeChat (wenyan) and Xiaohongshu (xhs). Use when user asks to convert B站视频/公众号文章
npx skillsauth add aluan/xhs-bili-to-xhs xhs-bili-to-xhsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
将 B 站视频或微信公众号文章转为文字 → 总结提炼 → 按目标平台风格重写 → 发布到微信公众号(wenyan)和小红书(xhs)。
每个步骤完成后,必须立即向用户输出对应的进度反馈,格式如下:
| 步骤完成事件 | 反馈消息 |
|---|---|
| 公众号文章获取完毕 | ✅ 公众号文章获取成功 |
| B站视频转写完毕 | ✅ 视频内容转写成功 |
| 洗稿重写完毕 | ✅ 洗稿成功 |
| 发布到小红书完毕 | ✅ 发布到小红书成功 |
| 发布到微信公众号完毕 | ✅ 发布到微信公众号成功 |
若步骤失败,输出 ❌ <步骤名> 失败:<简短原因>,然后尝试降级方案或提示用户。
Pre-flight:清理残留进程(每次 workflow 开始前必做)
agent-browser close 2>/dev/null || true
此步骤确保上一次 agent-browser 进程已退出,避免出现 Target page ... closed 或 --profile ignored 报错。
静默执行,无需向用户反馈。
获取原始内容
B站视频:
⏳ 正在获取视频字幕,请稍候...bili video <BV_ID> --subtitle > /tmp/transcript.txt 2>&1
/tmp/transcript.txt 有内容,则字幕下载成功✅ 视频内容转写成功微信公众号文章:
⏳ 正在打开页面,请稍候...agent-browser open <URL>
agent-browser wait --load networkidle
#js_content 定位微信正文容器,避免抓到全页 UI 噪音):
agent-browser get title
agent-browser snapshot -s "#js_content" > /tmp/article.txt
#js_content 为空(少数模板不同),降级用:
agent-browser snapshot -s ".rich_media_content" > /tmp/article.txt
img "图片",可忽略)✅ 公众号文章获取成功内容处理
assets/rewrite_prompt.md 进行专业的内容重写✅ 洗稿成功发布到社交平台
发布流程(按顺序执行):
wenyan --theme Maize 命令发布✅ 发布到微信公众号成功 或 ❌ 发布到微信公众号失败:<简短原因>xhs-textcard -i 命令生成卡片图片xhs 命令发布笔记✅ 发布到小红书成功 或 ❌ 发布到小红书失败:<简短原因>wenyan(微信公众号)、xhs(小红书)assets/rewrite_prompt.md:专业的洗稿重写提示词tools
Use when work should span one or more detached tasks but still behave like one job with a single owner context. TaskFlow is the durable flow substrate under authoring layers like Lobster, ACPX, plugins, or plain code. Keep conditional logic in the caller; use TaskFlow for flow identity, child-task linkage, waiting state, revision-checked mutations, and user-facing emergence.
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
# Lobster Lobster executes multi-step workflows with approval checkpoints. Use it when: - User wants a repeatable automation (triage, monitor, sync) - Actions need human approval before executing (send, post, delete) - Multiple tool calls should run as one deterministic operation ## When to use Lobster | User intent | Use Lobster? | | ------------------------------------------------------ | --------------------------
tools
A CLI tool for making authenticated requests to the X (Twitter) API. Use this skill when you need to post tweets, reply, quote, search, read posts, manage followers, send DMs, upload media, or interact with any X API v2 endpoint.