Forbidden Word Detection: Cross-platform Copy Compliance Scanning and Replacement Suggestions

Preface

Before publishing WeChat official accounts, short-video scripts, and e-commerce product pages, teams usually run a pass to check for “absolute language, false promises, and traffic-soliciting phrasing.” Manually comparing against each platform’s rules is slow and easy to miss homophone variants and platform-specific banned words. Below we introduce a SkillHub community Skill, “Banned Word Detection” (@user_4bfc9f62/content-check): it embeds a built-in dictionary of 1,766 terms and 19 risk categories into an Agent workflow, scans text with a script, and outputs a detection report and replacement suggestions, with no API Key required.

What is this

“Banned Word Detection” is a general-purpose community-sourced (community) SKILL.md skill, currently at version 1.0.1, maintained by the publisher user_4bfc9f62, and categorized as content-creation on SkillHub.

In one sentence: it scans the Chinese content provided by the user for banned words, filters the dictionary by platform, marks risk levels, and suggests compliant alternative expressions.

Official entry points:

  • SkillHub page: https://www.skillhub.cn/skills/user_4bfc9f62/content-check
  • Resource URL: https://api.skillhub.cn/user_4bfc9f62/content-check

The page is marked requires_api_key=false; after installation, it mainly relies on the Python scripts and built-in dictionary inside the skill package, without requiring additional keys.

Core capabilities

The following capabilities are derived from the skill description and the SKILL.md body, and can be verified against the locally installed package.

  1. Dictionary size: Built-in 1,766 banned terms, including 900 high-risk and 866 medium-risk entries.
  2. Platform coverage: Supports 11 content/e-commerce platform dimensions (Xiaohongshu/RED, Douyin, WeChat Channels, WeChat Official Account, Zhihu, Baijiahao, Bilibili, Kuaishou, Weibo, Taobao, JD), and can also run an all-platform detection when no platform is specified.
  3. Risk classification: 19 categories in total, including but not limited to absolute language, false promises, medical/health, financial investment, political sensitivity, traffic solicitation/diversion, inducement to share, livestream hard-sell pressure, homophone variants, AI-generated/staged content, and clickbait titles; politically sensitive categories only flag the risk and do not display the specific terms.
  4. Output format: A human-readable “Banned Word Detection Report” (hit locations, counts, category summary, conclusion), plus an optional --json structured result (including a clean field for release-gate checks).
  5. Agent-side behavior: When a user asks for compliance detection, copy review, or pre-publish checks, follow the skill steps to parse whether a platform is specified, call scripts/check.py, and compile the report.

Installation and enabling

1. Install the SkillHub CLI (if not already installed)

First check whether skillhub is already available on your machine:

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation documentation to complete the installation (CLI + default Skill):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

If you only need the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Documentation: https://skillhub.cn/install/skillhub.md

2. Install this Skill into the current Agent’s skills directory

When installing, you must use --dir to point to the skills directory recognized by the current client; otherwise the default landing in ./skills/ may not be loaded.

skillhub install content-check --namespace user_4bfc9f62 --dir <your skills directory>

Common paths (subject to the official installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

You can also ask the AI in conversation to install it using the official prompt:

Please install `@user_4bfc9f62/content-check` according to https://skillhub.cn/install/skillhub.md.

3. Script runtime environment

The Python dependencies declared by the skill are only standard-library modules re and argparse; the dictionary is built into scripts/word_library.py. You can run detection commands inside the installed skill directory.

Typical usage

Enter the skill package root directory (the path containing SKILL.md and scripts/), then call the main script.

All-platform detection

Run a full-dictionary scan over the entire copy, suitable for an initial check on drafts or before reusing content across platforms:

python scripts/check.py --text "这个产品是最好的,保证7天见效,全网最低价"

The script outputs the detection scope, the number of hits, the matched terms and positions grouped by risk level, a category summary, and whether it recommends revising before publishing.

Platform-specific detection

When the publishing channel is known, add --platform to filter the dictionary by platform and reduce hits unrelated to that platform:

python scripts/check.py --text "转发领红包 加微信领取" --platform "小红书"

The optional values for --platform / -p are: Xiaohongshu/RED, Douyin, WeChat Channels, WeChat Official Account, Zhihu, Baijiahao, Bilibili, Kuaishou, Weibo, Taobao, JD, and All Platforms.

JSON output (automation / CI)

When you need programmatic judgment about whether publishing is allowed, use JSON mode:

python scripts/check.py --text "最后3单 错过再等一年" --json

In the returned body, clean being false means there are still hits that need to be addressed; when it is true, it can be used as one of the conditions to pass the pipeline.

In Agent environments like Cursor, you usually do not need to write the commands above manually: provide the text to be checked and the target platform description to a model that has loaded this Skill; it will call the same script according to the “Operation Steps” in SKILL.md and relay the report.

Use cases and notes

Who it is for

  • Operations, editors, and ad placement staff who need to screen for banned words and advertising-law-related expressions before finalizing copy.
  • Developers who need to perform “review / compliance checks” inside Agent conversations, turning detection into repeatable steps.
  • Teams that want to add a local dictionary gate in the publishing pipeline and integrate with subsequent logic via JSON.

Limitations and cautions

  • The dictionary is built-in static data and cannot replace a platform’s final review, legal advice, or real-time policy changes; high-risk industries (medical, finance, etc.) still require manual review.
  • Politically sensitive categories only indicate the risk category and do not display the specific terms; corrections must be handled according to your business standards.
  • Replacement suggestions aim to provide compliant expressions with similar meaning; whether to adopt them should be judged together with brand tone and factual basis.
  • Store metrics such as ratings and downloads change with SkillHub updates; use the live page data as the standard. At the time of writing, both the page description and the CLI skillhub search point to the same set of descriptions: 1,766-term dictionary, 11 platforms, 19 risk categories.

Closing

“Banned Word Detection” packages multi-platform banned-word dictionaries and categorized reports into an installable Agent Skill: local script scanning, optional platform filtering, and dual text/JSON output, suitable as the first mechanical check before publishing. For installation or documentation, please open the official SkillHub page: https://www.skillhub.cn/skills/user_4bfc9f62/content-check

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye