← 返回 Skills 市场
yourlin

抖音违禁词检测

作者 MasterLin · GitHub ↗ · v1.0.2
cross-platform ✓ 安全检测通过
428
总下载
0
收藏
5
当前安装
3
版本数
在 OpenClaw 中安装
/install douyin-sensitive-check
功能描述
抖音/短视频违禁词和敏感词检测(本地词库版,无需 API Key)。每天首次使用自动从 GitHub 开源词库更新本地缓存,离线检测文案合规性。支持多词库合并(广告极限词、平台限流词、暴恐、色情、涉枪涉爆等)。使用场景:(1) 生成短视频文案后自动检测违禁词,(2) 用户要求检查某段文字是否有问题,(3) 抖音/...
使用说明 (SKILL.md)

抖音违禁词检测 Skill(开源词库版)

本地词库 + 每日自动更新,无需 API Key,离线可用。

脚本路径

scripts/
  check.py         # 主检测脚本(入口)
  update_words.py  # 词库更新模块(每天首次自动触发)
data/              # 运行时生成,词库缓存目录(.gitignore 排除)
  sensitive_words.txt
  .update_state.json

常用命令

SKILL=~/.agents/skills/douyin-sensitive-check

# 检测一段文案
python3 $SKILL/scripts/check.py "今天给大家推荐史上最好用的护肤品,加我微信领优惠券"

# 检测文件
python3 $SKILL/scripts/check.py -f /path/to/script.txt

# 管道
echo "文案内容" | python3 $SKILL/scripts/check.py

# 强制更新词库
python3 $SKILL/scripts/check.py --update

# 查看词库状态
python3 $SKILL/scripts/check.py --status

工作流

  1. 每天首次运行 → 自动调用 update_words.py 从 3 个 GitHub 开源词库拉取最新内容合并
  2. 加载本地 data/sensitive_words.txt(去重合并,含数万词条)
  3. 对输入文案做全文子串匹配(长词优先)
  4. 输出:🔴 违禁词(必改)/ 🟡 广告极限词(建议改)+ 上下文标注
  5. 根据结果帮用户改写文案,改完后再次检测直到通过

词库来源

  • konsheng/Sensitive-lexicon:广告、政治、暴恐、色情、涉枪涉爆、补充词库
  • bigdata-labs/sensitive-stop-words:广告、政治、色情、涉枪涉爆
  • jkiss/sensitive-words:广告、政治、色情

更新机制

  • data/.update_state.json 记录最后更新日期
  • 每天第一次使用自动触发,当天内后续使用直接读缓存
  • 网络失败时保留本地缓存,不影响使用
  • 手动强制更新:--update

重要提示

  • 开源词库以通用违禁词为主,抖音平台的部分特有限流词(如"私信"、"加微信")已内置在 check.pyCATEGORY_PATTERNS 中补充
  • 匹配策略是子串匹配,可能有误报;如需精确匹配可编辑 data/sensitive_words.txt 删除误报词
  • 改写建议:被标注词优先用谐音、符号分割、同义替换等方式规避
安全使用建议
This skill appears coherent and implements what it claims: local detection plus optional daily-first-use updates from public GitHub raw files. Before installing, consider: (1) the skill will make outbound requests to raw.githubusercontent.com on first use each day to fetch upstream wordlists — if you require strict offline use, populate data/sensitive_words.txt and set data/.update_state.json last_update to a future date or avoid running updates; (2) the upstream sources are public GitHub repos listed in the SKILL (inspect them yourself if you want to verify content and license); (3) the skill writes its cached wordlist and a small state file under the skill's data/ directory — ensure you trust the skill directory owner; and (4) because the skill is from an unknown registry owner, prefer to review the bundled scripts yourself or run them in an isolated environment if you have any doubt.
功能分析
Type: OpenClaw Skill Name: douyin-sensitive-check Version: 1.0.2 The skill bundle is a legitimate tool for detecting sensitive and prohibited words in short-video scripts (Douyin/TikTok). It functions by matching user input against local and remote word lists fetched from reputable GitHub repositories (e.g., konsheng/Sensitive-lexicon). The network activity is clearly declared in SKILL.md and limited to downloading text-based word lists via scripts/update_words.py. There is no evidence of data exfiltration, malicious code execution, or prompt injection attempts.
能力评估
Purpose & Capability
Name/description (Douyin sensitive-word detection) match the implementation: Python scripts perform local substring matching and merge open-source wordlists. Required binary is python3 which is appropriate.
Instruction Scope
SKILL.md instructions and scripts stay within scope: reading/writing a local data/ cache, performing substring matching, and (on daily-first-use or --update) fetching raw text files from the three listed GitHub repositories. The skill does not read unrelated system files, environment variables, or transmit user content to external endpoints.
Install Mechanism
No install spec; code is bundled as plain Python scripts. The only network access is to raw.githubusercontent.com (explicitly declared). No downloads from opaque URLs or archive extraction are present.
Credentials
The skill requests no environment variables or credentials. Its file writes are limited to its own data/ directory under the skill path, which is proportionate to maintaining a local cache.
Persistence & Privilege
always is false, the skill only writes to its own data/ directory and update state file. It does not modify other skills or system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install douyin-sensitive-check
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /douyin-sensitive-check 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
fix: 修复 --update 参数触发 UnboundLocalError 的问题(shadow import 冲突)
v1.0.1
docs: 补充 install spec 和网络行为透明声明,修复 ClawHub 安全审查提示
v1.0.0
首次发布:开源词库版,无需 API Key,每日自动从 GitHub 多个开源词库更新,支持违禁词/平台限流词/广告极限词/医疗违禁词检测
元数据
Slug douyin-sensitive-check
版本 1.0.2
许可证
累计安装 5
当前安装数 5
历史版本数 3
常见问题

抖音违禁词检测 是什么?

抖音/短视频违禁词和敏感词检测(本地词库版,无需 API Key)。每天首次使用自动从 GitHub 开源词库更新本地缓存,离线检测文案合规性。支持多词库合并(广告极限词、平台限流词、暴恐、色情、涉枪涉爆等)。使用场景:(1) 生成短视频文案后自动检测违禁词,(2) 用户要求检查某段文字是否有问题,(3) 抖音/... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 428 次。

如何安装 抖音违禁词检测?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install douyin-sensitive-check」即可一键安装,无需额外配置。

抖音违禁词检测 是免费的吗?

是的,抖音违禁词检测 完全免费(开源免费),可自由下载、安装和使用。

抖音违禁词检测 支持哪些平台?

抖音违禁词检测 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 抖音违禁词检测?

由 MasterLin(@yourlin)开发并维护,当前版本 v1.0.2。

💬 留言讨论