Skill flagged — suspicious patterns detected

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

wechat draft deleter

v1.0.0

删除微信公众号草稿箱中的草稿。支持批量删除指定Media ID的草稿。

0· 160·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 bigkingcn/wechat-draft-deleter.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "wechat  draft deleter" (bigkingcn/wechat-draft-deleter) from ClawHub.
Skill page: https://clawhub.ai/bigkingcn/wechat-draft-deleter
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-draft-deleter

ClawHub CLI

Package manager switcher

npx clawhub@latest install wechat-draft-deleter
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The name/description (delete WeChat public-account drafts) align with the shipped code: scripts/delete_drafts.py calls the official WeChat token and draft/delete endpoints. However the registry metadata lists no required env vars/credentials while both SKILL.md and the script require WECHAT_APP_ID and WECHAT_APP_SECRET — an inconsistency between declared metadata and actual needs.
Instruction Scope
Runtime instructions are narrowly scoped: they ask you to provide AppID/Secret, read Media IDs from CLI args or a file, fetch an access_token, and POST to the official WeChat API. The instructions do not ask the agent to read unrelated system files or send data to third-party endpoints. Concern: README includes an example that sets concrete-looking AppID/AppSecret values — if those are real credentials they are leaked and dangerous.
Install Mechanism
install.sh installs a Python dependency (requests) via pip3, makes scripts/delete_drafts.py executable, and creates a symlink in /usr/local/bin. This is a typical local install but it modifies a system path and runs pip globally. No remote downloads from untrusted URLs; the install is not high-risk but you should review and run in a controlled environment (or use a virtualenv).
!
Credentials
The skill requires WECHAT_APP_ID and WECHAT_APP_SECRET to operate (the script checks env vars and SKILL.md instructs setting them), but the registry metadata declares no required env vars — that's misleading. Additionally, the README/example includes explicit AppID/AppSecret values; if those are actual credentials, they expose account access and should be treated as compromised (rotate/revoke).
Persistence & Privilege
always:false and no autonomous elevation flags — good. The only persistence-like change is creation of a symlink in /usr/local/bin (install.sh), which is normal for CLI tools but modifies a system-wide directory and may require elevated permissions. No evidence the skill modifies other skills or system configs beyond this.
What to consider before installing
This skill appears to do what it claims (delete WeChat draft items) and uses only the official WeChat endpoints, but take these precautions before installing: - Metadata mismatch: the registry lists no required env vars but the tool requires WECHAT_APP_ID and WECHAT_APP_SECRET — expect to provide those. Do not rely on registry metadata alone. - Review README for hard-coded example credentials. Treat any concrete AppID/AppSecret in examples as potentially leaked; if you or your org used them, rotate/revoke immediately. - Inspect install.sh before running. It will pip install requests and create a symlink in /usr/local/bin; prefer installing inside a Python virtualenv to avoid global pip changes and reduce system impact. - Run the tool in a test account first (not production) to confirm behavior and to avoid irreversible deletes. - If you don't trust the source, avoid running install.sh; instead run scripts/delete_drafts.py directly from a checked-out copy after manual review. If you want higher confidence, ask the publisher for a trusted repository URL or signed release, and request that required env vars be declared in the registry metadata.

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

latestvk97cp245d92g5qgeqapjbgmcy5838b2r
160downloads
0stars
1versions
Updated 2h ago
v1.0.0
MIT-0

WeChat Draft Deleter

删除微信公众号草稿箱中的草稿。基于微信公众号官方API开发。

功能特性

  • 删除单个草稿:通过Media ID删除指定草稿
  • 批量删除草稿:一次删除多个草稿
  • 文件批量操作:从文件读取Media ID列表
  • 安全确认:删除前需要确认(可强制模式)
  • 结果汇总:显示成功/失败统计
  • 错误处理:完善的错误提示和日志

使用场景

  1. 清理测试草稿:删除测试发布的多余草稿
  2. 版本管理:删除旧版本文章草稿
  3. 批量清理:一次性清理多个草稿
  4. 自动化运维:集成到自动化工作流中

安装方法

方法一:使用clawhub安装

clawhub install wechat-draft-deleter

方法二:手动安装

# 克隆或下载技能目录
cd skills/wechat-draft-deleter
chmod +x install.sh
./install.sh

使用方法

设置环境变量

export WECHAT_APP_ID="你的微信公众号AppID"
export WECHAT_APP_SECRET="你的微信公众号AppSecret"

删除单个草稿

wechat-draft-delete --media-id "DgrVBScHsvTZOSzU4WcnaTobRFBFXoaG0AIrFKAU_E6MKLBPNkZ9s6XVMv2GVFDl"

批量删除草稿

wechat-draft-delete --media-ids "id1,id2,id3"

从文件删除草稿

# 创建media_ids.txt文件
echo "DgrVBScHsvTZOSzU4WcnaTobRFBFXoaG0AIrFKAU_E6MKLBPNkZ9s6XVMv2GVFDl" > media_ids.txt
echo "DgrVBScHsvTZOSzU4WcnadL0xBHHy-8b232944xVRg-PjZ3aq81X98J6M35oA6vC" >> media_ids.txt

# 执行删除
wechat-draft-delete --file media_ids.txt

强制删除(不确认)

wechat-draft-delete --file media_ids.txt --force

API说明

微信公众号API

  • 接口地址: https://api.weixin.qq.com/cgi-bin/draft/delete
  • 请求方法: POST
  • 请求参数: {"media_id": "草稿Media ID"}
  • 返回结果: {"errcode": 0, "errmsg": "ok"}

获取Media ID

Media ID可以通过以下方式获取:

  1. wenyan工具发布时返回
  2. 微信公众号后台查看草稿详情
  3. 通过微信公众号API获取草稿列表

配置要求

微信公众号权限

  • 需要已认证的微信公众号
  • 需要开通草稿箱功能
  • 需要API调用权限

系统要求

  • Python 3.6+
  • requests库
  • 微信公众号AppID和AppSecret

安全注意事项

⚠️ 重要警告

  1. 删除不可逆:草稿删除后无法恢复
  2. 权限验证:确保有删除权限
  3. 备份建议:重要草稿建议先备份
  4. 测试建议:先在测试环境验证

错误代码

错误代码说明解决方案
40001无效的access_token检查AppID和AppSecret
40066无效的URL检查API接口地址
42001access_token过期重新获取access_token
45009API调用频率限制降低调用频率
48001API功能未授权检查微信公众号权限

开发记录

版本历史

  • v1.0.0 (2026-03-19): 初始版本发布
    • 支持单个草稿删除
    • 支持批量删除
    • 支持文件操作
    • 添加安全确认机制

测试验证

本技能已在真实微信公众号环境中测试:

  • ✅ 成功删除8个测试草稿
  • ✅ API返回正常
  • ✅ 错误处理完善

贡献指南

欢迎提交Issue和Pull Request:

  1. Fork本仓库
  2. 创建功能分支
  3. 提交更改
  4. 创建Pull Request

许可证

MIT License

Comments

Loading comments...