Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Wechat Publish

v1.0.0

One-click publishing of articles with custom images to WeChat official account draft, ensuring images use WeChat permanent material URLs.

0· 64·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for zhuchenggong19851114-design/wechat-publish.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Wechat Publish" (zhuchenggong19851114-design/wechat-publish) from ClawHub.
Skill page: https://clawhub.ai/zhuchenggong19851114-design/wechat-publish
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install wechat-publish

ClawHub CLI

Package manager switcher

npx clawhub@latest install wechat-publish
Security Scan
Capability signals
Requires OAuth token
These labels describe what authority the skill may exercise. They are separate from suspicious or malicious moderation verdicts.
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
high confidence
!
Purpose & Capability
The skill's stated purpose (upload images and create WeChat drafts) is coherent with the instructions, but the SKILL.md expects local services and tools (curl, docker, python3, mmx CLI, a localhost rendering service) and WeChat appid/secret tokens while the registry metadata declares no required binaries, no required environment variables, and no primary credential. Those undeclared requirements are disproportionate to what the metadata claims.
!
Instruction Scope
Runtime instructions tell the agent to read files from local paths and containers (docker cp), call a localhost API (http://localhost:3710), run mmx CLI, write to /home/success/.openclaw/workspace/, and obtain/upload WeChat access tokens and media. These file-system, container, and local-service operations expand the skill's operational scope beyond a simple remote API integration and require local privileges and secrets not declared elsewhere.
Install Mechanism
No install spec is provided (instruction-only), which reduces install-time risk. However, because the instructions rely on several binaries/services (docker, curl, python3, mmx, a local render service), the absence of declared install requirements is an inconsistency that could cause surprise or hidden dependency execution when the user follows the runbook.
!
Credentials
The document explicitly requires WeChat credentials (appid/secret → access_token) and references an IP whitelist, yet the skill metadata lists no required environment variables or primary credential. Requesting/using appid and secret is expected for WeChat publishing, but not declaring them in metadata is a red flag because it obscures the sensitive credentials this skill needs.
Persistence & Privilege
The skill is not set to always:true and does not request persistent elevated platform privileges. Still, it instructs writing/copying files into an agent workspace path (/home/success/.openclaw/workspace/) and interacting with local docker containers, which implies filesystem and container access that the operator should deliberately permit or deny.
What to consider before installing
This skill appears to implement a valid WeChat publish workflow, but there are important mismatches you should resolve before installing or running it: - Missing declarations: The SKILL.md requires WeChat appid/secret (access_token), docker, curl, python3, mmx CLI, and a local rendering service (http://localhost:3710), but the registry metadata declares none of these. Ask the publisher to explicitly list required binaries and required environment variables (APPID/SECRET or a primary credential). - Local access: The instructions perform docker cp and write to an agent workspace path. Only run this on a machine where you trust the skill and where exposing local containers/files is acceptable. - Secrets handling: The skill will require your WeChat app secret; never paste those into public places. Confirm how you will provide secrets (platform secret store vs inline) and ensure tokens are scoped and rotated. - Verify endpoints and container names: The runbook references container names (autocontents-makecontents-1) and localhost APIs; confirm these services actually exist in your environment to avoid accidental data leaks or command failures. - IP whitelist note: The doc lists an IP for WeChat whitelisting—ensure that IP is correct for your deployment and that you control or understand the networking implications. If you plan to use it, request an updated SKILL.md/metadata from the author that: declares required binaries and env vars, documents exact file and container requirements, and explains how secrets should be supplied and stored. If the author cannot provide that, treat the skill as untrusted and avoid running its Docker/file operations on sensitive hosts.

Like a lobster shell, security has layers — review code before you run it.

latestvk97f90aw9mgxdcmgjnreggtgan84vc97
64downloads
0stars
1versions
Updated 2w ago
v1.0.0
MIT-0

图文公众号发布流程

功能

将文案+配图一键发布到微信公众号草稿箱

核心特点

  • 灵活性:配图不限定类型,支持任意图片
  • 多种生图方式:MakeContents HTML渲染 / MiniMax生图 / 固定模板
  • 完整流程:文案→配图→上传微信→创建草稿→后台发布

⚠️ 关键易错点:图片必须先上传微信素材库

文章内容里用的图片URL必须是微信素材库的URL(mmbiz.qpic.cn开头)

不能用:

  • MakeContents临时路径(/app/uploads/rendered/xxx)
  • 外链图片URL
  • 本地文件路径

正确流程:

  1. 生成图片 → 下载到本地
  2. 上传到微信素材库 → 获得mmbiz.qpic.cn的URL
  3. 用微信返回的URL拼接到文章HTML里

漏了这个步骤,图片在文章里会显示不出来!


第一部分:文案准备

用户提供:

  • 文章主题/标题
  • 文章内容(可以是大纲或完整文案)
  • 配图需求(几张、什么类型)

第二部分:配图生成

方式A:MakeContents封面图(固定接口)

适合:封面/缩略图

curl -s -X POST "http://localhost:3710/api/content/render" \
  -H "Content-Type: application/json" \
  -d '{"cover_word":"标签","cover_title":"标题","cover_description":"描述","cover_emoji":"🤖"}'

方式B:MakeContents HTML长图(灵活模板)

适合:详情页、工具展示、数据对比、步骤说明等任意图

生成步骤:

  1. 写HTML内容(可自定义CSS样式)
  2. 调用render-text接口转图片
# 1. 生成HTML文件
cat > /tmp/custom_image.html << 'EOF'
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #f5f5f7;
  padding: 40px 20px;
}
.title {
  font-size: 28px;
  font-weight: bold;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
}
/* 自定义内容样式 */
</style>
</head>
<body>
<div class="title">你的标题</div>
<!-- 自定义内容 -->
</body>
</html>
EOF

# 2. 转图片(width=750适合手机,height按需调整)
HTML=$(cat /tmp/custom_image.html | python3 -c "import sys,json; print(json.dumps(sys.stdin.read()))")
curl -s -X POST "http://localhost:3710/api/content/render-text" \
  -H "Content-Type: application/json" \
  -d "{\"html\":$HTML,\"width\":750,\"height\":1200}"

方式C:MiniMax图片生成

适合:需要AI创意生成的配图(产品图、场景图、插画等)

# 使用mmx CLI
mmx image generate --prompt "描述" --aspect-ratio 16:9 --output /tmp/gen_image.png

常用Twemoji Emoji(用于HTML模板中)

格式:https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/{code}.png

EmojiCode
🤖1f916
🎨1f3a8
📊1f4ca
🎙️1f3a4
📡1f4e2
2705
274c
⚠️26a0
💡1f4a1
🚀1f680
2b50
🔥1f525

emoji转code方法:python3 -c "print(hex(ord('🤖'))[2:])"1f916


第三部分:从容器下载图片

# 封面图
docker cp autocontents-makecontents-1:/app/uploads/rendered/{session_id}_cover.png /tmp/cover.png

# 长图
docker cp autocontents-makecontents-1:/app/uploads/rendered/{session_id}_text.png /tmp/detail.png

# 复制到workspace(可选)
cp /tmp/cover.png /home/success/.openclaw/workspace/
cp /tmp/detail.png /home/success/.openclaw/workspace/

第四部分:微信API上传

凭证

# 获取Access Token
curl -s -X POST "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=YOUR_APPID&secret=YOUR_SECRET"

返回值中的access_token有效期2小时

上传图片到素材库(永久素材)

ACCESS_TOKEN="获取到的token"

# 封面图
curl -s -X POST "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=$ACCESS_TOKEN&type=image" \
  -F "media=@/tmp/cover.png"

# 详情图
curl -s -X POST "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=$ACCESS_TOKEN&type=image" \
  -F "media=@/tmp/detail.png"

返回格式:{"media_id":"xxx","url":"http://mmbiz.qpic.cn/..."}

上传缩略图(用于文章thumb_media_id)

curl -s -X POST "https://api.weixin.qq.com/cgi-bin/material/add_material?access_token=$ACCESS_TOKEN&type=thumb" \
  -F "media=@/tmp/cover.png"

返回的media_id用于文章配置的thumb_media_id字段


第五部分:创建图文草稿

⚠️ 文章内容中的图片URL必须用微信素材库的mmbiz.qpic.cn URL!

cat > /tmp/article.json << 'EOF'
{
  "articles": [{
    "thumb_media_id": "上一步获取的thumb media_id",
    "title": "文章标题",
    "author": "",
    "digest": "文章摘要",
    "show_cover_pic": 1,
    "content": "HTML格式的文章内容,图片URL用微信素材库的URL",
    "content_source_url": ""
  }]
}
EOF

curl -s -X POST "https://api.weixin.qq.com/cgi-bin/draft/add?access_token=$ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d @/tmp/article.json

第六部分:发布

API发布(服务号可用)

curl -s -X POST "https://api.weixin.qq.com/cgi-bin/freepublish/submit?access_token=$ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"media_id":"草稿media_id","pub_choose_type":1}'

手动发布(个人订阅号)

  • 登录 mp.weixin.qq.com
  • 内容与互动 → 草稿箱
  • 找到文章 → 发布

常用模板参考

详情页长图模板

路径:skills/auto-contents/references/templates/detail-page-gray.html

工具栈图模板

路径:skills/auto-contents/references/templates/tool-stack.html

数据对比图模板(可直接用)

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:system-ui,-apple-system,sans-serif;background:#f5f5f7;padding:30px 20px}
.title{font-size:22px;font-weight:bold;color:#1a1a1a;margin-bottom:20px;text-align:center}
.section{margin-bottom:24px}
.section-title{font-size:16px;font-weight:bold;margin-bottom:10px;padding-left:8px}
.green{border-left:4px solid #4CAF50}
.red{border-left:4px solid #f44336}
.items{display:flex;flex-direction:column;gap:8px}
.item{display:flex;gap:8px;font-size:14px;color:#333}
.check{color:#4CAF50}.cross{color:#f44336}
</style>
</head>
<body>
<div class="title">标题</div>
<div class="section green">
<div class="section-title">✅ 能做的</div>
<div class="items"><div class="item"><span class="check">✓</span>内容1</div></div>
</div>
<div class="section red">
<div class="section-title">❌ 不能做的</div>
<div class="items"><div class="item"><span class="cross">✗</span>内容1</div></div>
</div>
</body>
</html>

注意事项

IP白名单

微信API需要IP在白名单内,当前IP:14.218.121.191

图片URL(重要!)

  • 草稿中的图片URL必须用微信返回的永久素材URL(mmbiz.qpic.cn)
  • 不能用MakeContents临时路径、外链、本地路径
  • 每张要放进文章的图都必须先上传微信素材库

个人订阅号限制

  • API创建草稿:✅
  • API发布:❌(需手动发布)
  • 上传素材:✅

Comments

Loading comments...