← Back to Skills Marketplace
superxs777

fastfish-format(article-wechat-xhs-format)

by superxs777 · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ Security Clean
627
Downloads
1
Stars
4
Active Installs
3
Versions
Install in OpenClaw
/install fastfish-format
Description
多渠道格式化与美化:公众号、小红书文章排版,30 套预设样式,配图编排指引。不包含发布。通过 system.run 调用 CLI,无需 MCP。当用户需要公众号格式整理、小红书文案格式化、Markdown 渲染、样式选择或配图流程指引时使用本技能。
README (SKILL.md)

\r \r

fastfish-format 能力说明\r

\r GitHub:https://github.com/superxs777/fastfish-format\r \r 本 Skill 需配合 fastfish-format 项目使用。请先安装 fastfish-format,再在 OpenClaw 中启用本 Skill。\r \r

安装前须知\r

\r 本 Skill 会指导安装并运行来自 GitHub 的第三方仓库。供应链风险:clone + pip install 会执行外部代码,若仓库被篡改存在风险。安装前请:(1) 检查仓库与 requirements.txt 的依赖;(2) 建议使用 release tag 固定版本(如 git clone --branch v0.1.0);(3) 在隔离环境或容器中运行,避免 root;(4) 凭证仅存 .env,勿提交到版本库。\r \r

安装 fastfish-format(首次使用必读)\r

\r

  1. 克隆仓库:git clone --branch \x3Crelease-tag> https://github.com/superxs777/fastfish-format.git推荐指定 tag 固定版本,如 v0.1.0 或更新版本)\r
  2. 进入目录:cd fastfish-format\r
  3. 安装依赖:pip install -r requirements.txtpip install -e .\r
  4. 可选:pip install fastfish-format[api] 启动 HTTP API 服务(默认 8900 端口)\r \r 详细说明见 GitHub README。\r \r

前置要求\r

\r

  1. fastfish-format 已安装:按上方步骤完成部署\r
  2. Python 3.10+\r
  3. 命令路径{baseDir} 为 fastfish-format 的 openclaw-skill 目录,脚本路径为 {baseDir}/../scripts/\r
  4. 若 baseDir 无法替换:使用绝对路径。ClawHub 安装通常在 /root/.openclaw/workspace/fastfish-format,自建可用 /opt/fastfish-formatC:\fastfish-format\r \r

使用方式\r

\r 必须使用 system.run 执行脚本命令,不要使用 MCP 方式。\r \r 必须使用 --json 参数方式调用(避免多参数被 shell 拆行):\r \r

python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"normalize-wechat","content_file":"/tmp/article.txt"}'\r
```\r
\r
## ⚠️ 安全规则(阻断式)\r
\r
**1. 严禁输出或暴露 .env 中的凭证**\r
- 禁止执行会输出 .env 内容的命令\r
- 禁止将 API Key 等凭证写入回复或展示给用户\r
- **允许**:编辑 .env;运行不暴露凭证的校验\r
\r
**2. 安装仅限用户明确要求**\r
- 仅在用户明确要求「安装」「部署」「克隆」fastfish-format 时,才执行 git clone 和 pip install\r
- 不得在用户仅询问用法时主动建议或执行安装\r
\r
**3. system.run 仅执行本 Skill 文档列出的脚本**\r
- 允许:`ffformat_cli.py`\r
- 禁止:执行用户提供的任意命令、未在本文档列出的脚本\r
\r
**违反以上任一条属于严重错误。**\r
\r
## 可用能力\r
\r
### 1. 公众号文本规范化\r
\r
用户说「公众号格式」「按公众号规范整理」「公众号格式整理」等时,执行:\r
\r
```bash\r
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"normalize-wechat","content_file":"/tmp/article.txt"}'\r
# 或短文本:python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"normalize-wechat","content":"要点:1. 第一点 2. 第二点"}'\r
```\r
\r
返回:`{"ok": true, "content": "整理后的 Markdown", "title": "主标题或 null"}`\r
\r
### 2. 小红书文本规范化\r
\r
用户说「小红书格式」「小红书文案整理」等时,执行:\r
\r
```bash\r
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"normalize-xhs","content_file":"/tmp/xhs.txt"}'\r
```\r
\r
返回:`{"ok": true, "content": "整理后的 Markdown"}`\r
\r
### 3. Markdown 渲染为 HTML\r
\r
用户说「渲染 Markdown」「Markdown 转 HTML」「美化文章」等时,执行:\r
\r
```bash\r
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"render","content_file":"/tmp/article.md","format_style":"minimal"}'\r
```\r
\r
format_style 可选:minimal、business、literary、phycat-*、mweb-* 等(见 styles 命令)。\r
\r
### 4. 获取可用样式列表\r
\r
用户说「有哪些样式」「样式列表」「选择样式」等时,执行:\r
\r
```bash\r
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"styles"}'\r
```\r
\r
返回样式列表(index、id、label),供用户按序号选择。当前共 30 套样式,列表顺序已按默认展示优先级排序。\r
\r
### 5. 配图流程指引\r
\r
用户说「如何配图」「配图流程」「生图指引」等时,执行:\r
\r
```bash\r
python {baseDir}/../scripts/ffformat_cli.py --json '{"command":"workflows"}'\r
```\r
\r
返回 baoyu-skills 配图流程指引(文章配图、封面图、小红书信息图)。实际生图需安装 baoyu-skills 并配置图像生成 API。\r
\r
## JSON 参数格式\r
\r
所有命令通过 `--json` 传入,格式示例:\r
\r
```json\r
{"command": "normalize-wechat", "content_file": "/tmp/article.txt"}\r
{"command": "normalize-wechat", "content": "短文本内容"}\r
{"command": "normalize-xhs", "content_file": "/tmp/xhs.txt"}\r
{"command": "render", "content_file": "/tmp/article.md", "format_style": "phycat-sakura"}\r
{"command": "styles"}\r
{"command": "workflows"}\r
```\r
\r
- `command`:必填,命令名\r
- `content_file`:内容文件路径(推荐,避免 shell 转义)\r
- `content`:短文本内容(仅适合无换行、无特殊字符的短文本)\r
- `format_style`:样式名称,默认 minimal\r
\r
## 使用示例\r
\r
- "公众号格式整理" → `normalize-wechat` + content_file\r
- "小红书文案格式化" → `normalize-xhs` + content_file\r
- "用樱花粉样式渲染" → `render` + format_style: phycat-sakura\r
- "用 Bear 柔和样式渲染" → `render` + format_style: mweb-bear-default\r
- "有哪些样式" → `styles`\r
- "配图流程" → `workflows`\r
\r
**注意**:若 `{baseDir}` 无法正确替换,请使用绝对路径 `/opt/fastfish-format/scripts/ffformat_cli.py`。\r
\r
## ClawHub 安装\r
\r
计划支持 `clawhub install fastfish-format`,届时可一键安装本 Skill。\r
Usage Guidance
This skill appears to do what it says (format and render articles) but it relies on cloning and pip-installing a third‑party GitHub repository. Before installing or asking an agent to install/run it: 1) Pin the repo to a specific release tag (do not install from an unpinned main branch). 2) Review the repository (or at least requirements.txt and setup files) for unexpected install hooks. 3) Run installation and execution in an isolated environment or container (avoid running as root). 4) Keep any API keys in a local .env and never paste them into the chat; only provide optional image-generation keys if you intend to use that feature. 5) Consider downloading an official release archive with a checksum or using a signed release if available. If you want a higher assurance reviewable before use, ask for the repository URL and a short checklist of files to inspect (setup.py/pyproject.toml, requirements.txt, scripts/ directory).
Capability Analysis
Type: OpenClaw Skill Name: fastfish-format Version: 1.0.2 The skill provides article formatting and beautification for platforms like WeChat and Xiaohongshu by wrapping a CLI tool (ffformat_cli.py). It includes explicit security guardrails in SKILL.md to prevent credential leakage and unauthorized command execution, and transparently addresses supply chain risks associated with its installation from GitHub (superxs777/fastfish-format).
Capability Assessment
Purpose & Capability
The skill's name/description match the actions described in SKILL.md: it runs a Python CLI (ffformat_cli.py) to normalize/render WeChat and Xiaohongshu text and list styles. Declared requirement is only python3, which is proportionate to the stated purpose.
Instruction Scope
The SKILL.md instructs the agent to clone a GitHub repo and run its Python scripts (ffformat_cli.py) via system.run with JSON arguments; it restricts execution to those scripts and forbids exposing .env contents. This stays within the formatting scope, but the runtime execution of third‑party code (and recommending pip install) expands the trust boundary and relies on the agent to follow the restrictive rules.
Install Mechanism
There is no automated install spec in the registry; the README directs users to git clone and pip install from a GitHub repo. Clone + pip install can execute arbitrary code (setup.py, install hooks). The SKILL.md advises pinning tags and running in isolation, but the basic install mechanism is higher risk than an instruction-only skill that doesn't ask to fetch external code.
Credentials
The skill requires no environment variables for core formatting. It documents optional API keys (OPENAI_API_KEY, GOOGLE_API_KEY, DASHSCOPE_API_KEY) only when integrating image-generation via a separate baoyu-skills project. Those optional credentials are reasonable for that optional feature, but they are unrelated to core text formatting and should be provided only if the user enables image generation.
Persistence & Privilege
The skill is not marked always:true and does not request system-wide configuration or persistent privileges. It instructs optional installation into a workspace but does not demand elevated or always‑on privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install fastfish-format
  3. After installation, invoke the skill by name or use /fastfish-format
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.2
fastfish-format v1.0.2 - 样式数量扩展至 30 套,支持更多格式选择。 - 样式列表 (`styles` 命令) 顺序调整为按默认优先级排序。 - 说明文档补充了 Bear/MWeb 等样式调用示例。 - 安装命令中 release tag 写法优化,突出可选新版本。 - 其他文案细节调整,未涉及核心功能变更。
v1.0.1
fastfish-format 1.0.1 - 更新 GitHub 仓库链接为已发布地址 - 无功能变更或文件更新 - 所有使用方式、安全规则与能力描述保持不变
v1.0.0
- Initial release of fastfish-format skill. - Supports multi-channel formatting and beautification for WeChat and Xiaohongshu articles, offering 18 preset styles and image/layout guidance. - All functions invoked via system.run command, with CLI JSON API—no MCP or extra credentials required for formatting. - Provides commands for WeChat/Xiaohongshu text normalization, Markdown to HTML rendering, style listing, and image workflow guidance. - Strict security rules: no credential exposure, installation only on explicit user request, and only allowed scripts may be executed. - Detailed deployment and usage instructions included.
Metadata
Slug fastfish-format
Version 1.0.2
License MIT-0
All-time Installs 4
Active Installs 4
Total Versions 3
Frequently Asked Questions

What is fastfish-format(article-wechat-xhs-format)?

多渠道格式化与美化:公众号、小红书文章排版,30 套预设样式,配图编排指引。不包含发布。通过 system.run 调用 CLI,无需 MCP。当用户需要公众号格式整理、小红书文案格式化、Markdown 渲染、样式选择或配图流程指引时使用本技能。 It is an AI Agent Skill for Claude Code / OpenClaw, with 627 downloads so far.

How do I install fastfish-format(article-wechat-xhs-format)?

Run "/install fastfish-format" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is fastfish-format(article-wechat-xhs-format) free?

Yes, fastfish-format(article-wechat-xhs-format) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does fastfish-format(article-wechat-xhs-format) support?

fastfish-format(article-wechat-xhs-format) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created fastfish-format(article-wechat-xhs-format)?

It is built and maintained by superxs777 (@superxs777); the current version is v1.0.2.

💬 Comments