Install
openclaw skills install fastfish-format多渠道格式化与美化:公众号、小红书文章排版,30 套预设样式,配图编排指引。不包含发布。通过 system.run 调用 CLI,无需 MCP。当用户需要公众号格式整理、小红书文案格式化、Markdown 渲染、样式选择或配图流程指引时使用本技能。
openclaw skills install fastfish-formatGitHub:https://github.com/superxs777/fastfish-format
本 Skill 需配合 fastfish-format 项目使用。请先安装 fastfish-format,再在 OpenClaw 中启用本 Skill。
本 Skill 会指导安装并运行来自 GitHub 的第三方仓库。供应链风险:clone + pip install 会执行外部代码,若仓库被篡改存在风险。安装前请:(1) 检查仓库与 requirements.txt 的依赖;(2) 建议使用 release tag 固定版本(如 git clone --branch v0.1.0);(3) 在隔离环境或容器中运行,避免 root;(4) 凭证仅存 .env,勿提交到版本库。
git clone --branch <release-tag> https://github.com/superxs777/fastfish-format.git(推荐指定 tag 固定版本,如 v0.1.0 或更新版本)cd fastfish-formatpip install -r requirements.txt 或 pip install -e .pip install fastfish-format[api] 启动 HTTP API 服务(默认 8900 端口)详细说明见 GitHub README。
{baseDir} 为 fastfish-format 的 openclaw-skill 目录,脚本路径为 {baseDir}/../scripts//root/.openclaw/workspace/fastfish-format,自建可用 /opt/fastfish-format 或 C:\fastfish-format必须使用 system.run 执行脚本命令,不要使用 MCP 方式。
必须使用 --json 参数方式调用(避免多参数被 shell 拆行):
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"normalize-wechat","content_file":"/tmp/article.txt"}'
1. 严禁输出或暴露 .env 中的凭证
2. 安装仅限用户明确要求
3. system.run 仅执行本 Skill 文档列出的脚本
ffformat_cli.py违反以上任一条属于严重错误。
用户说「公众号格式」「按公众号规范整理」「公众号格式整理」等时,执行:
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"normalize-wechat","content_file":"/tmp/article.txt"}'
# 或短文本:python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"normalize-wechat","content":"要点:1. 第一点 2. 第二点"}'
返回:{"ok": true, "content": "整理后的 Markdown", "title": "主标题或 null"}
用户说「小红书格式」「小红书文案整理」等时,执行:
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"normalize-xhs","content_file":"/tmp/xhs.txt"}'
返回:{"ok": true, "content": "整理后的 Markdown"}
用户说「渲染 Markdown」「Markdown 转 HTML」「美化文章」等时,执行:
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"render","content_file":"/tmp/article.md","format_style":"minimal"}'
format_style 可选:minimal、business、literary、phycat-、mweb- 等(见 styles 命令)。
用户说「有哪些样式」「样式列表」「选择样式」等时,执行:
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"styles"}'
返回样式列表(index、id、label),供用户按序号选择。当前共 30 套样式,列表顺序已按默认展示优先级排序。
用户说「如何配图」「配图流程」「生图指引」等时,执行:
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"workflows"}'
返回 baoyu-skills 配图流程指引(文章配图、封面图、小红书信息图)。实际生图需安装 baoyu-skills 并配置图像生成 API。
所有命令通过 --json 传入,格式示例:
{"command": "normalize-wechat", "content_file": "/tmp/article.txt"}
{"command": "normalize-wechat", "content": "短文本内容"}
{"command": "normalize-xhs", "content_file": "/tmp/xhs.txt"}
{"command": "render", "content_file": "/tmp/article.md", "format_style": "phycat-sakura"}
{"command": "styles"}
{"command": "workflows"}
command:必填,命令名content_file:内容文件路径(推荐,避免 shell 转义)content:短文本内容(仅适合无换行、无特殊字符的短文本)format_style:样式名称,默认 minimalnormalize-wechat + content_filenormalize-xhs + content_filerender + format_style: phycat-sakurarender + format_style: mweb-bear-defaultstylesworkflows注意:若 {baseDir} 无法正确替换,请使用绝对路径 /opt/fastfish-format/scripts/ffformat_cli.py。
计划支持 clawhub install fastfish-format,届时可一键安装本 Skill。