Multi-platform Banned Word Detection: Pre-publication Compliance Self-audit for WeChat Official Accounts, Xiaohongshu, and Douyin

Preface

When distributing the same draft to WeChat Official Accounts (公众号), Xiaohongshu (小红书), or Douyin (抖音), the moderation criteria for each platform are inconsistent. Absolute terms, medical efficacy claims, and traffic-diverting language might pass on one platform but result in restricted traffic or rejection on another. Manually checking against scattered vocabulary lists is slow and prone to missing violations. This article introduces the community Skill “Multi-Platform Prohibited Word Detection” on SkillHub, which performs checks within an Agent conversation and provides context-aware replacement suggestions.

What is this

“Multi-Platform Prohibited Word Detection” is a content creation Skill on SkillHub identified by @user_ebee0fcc/prohibited-word-query (Category: content-creation, Source: community, Publisher: user_ebee0fcc, Current Store Version: 1.0.14). The SkillHub page marks requires_api_key=true: detection requests are routed through a backend API, requiring the configuration of REDFOX_API_KEY in your environment (issued by RedFox hub, typically starting with ak_).

One-sentence positioning: Based on an official prohibited word library, it marks prohibited words in copy according to single-platform rules (Official Account / Xiaohongshu / Douyin) and outputs modification suggestions along with optimized, ready-to-publish copy. It supports various input methods, including pasted text, txt files, text extraction from images, and web page content scraping.

Core Features

The following capabilities are derived from the Skill’s SKILL.md documentation and can be cross-referenced with the store description:

  1. Independent Lexicons for Three Platforms: In the conversation, specify “Official Account / WeChat”, “Xiaohongshu / Red Book”, or “Douyin / Douyin Video” to switch rules. If unspecified, it defaults to Official Account detection. It calls rules for only one platform at a time and does not support concurrent multi-platform checks.
  2. Structured Output: Prohibited words are bolded in the original text. A “Prohibited Word — Replacement — Reason” comparison table is provided, followed by a “Suggested Optimized Copy” (with replacements marked in bold italics).
  3. Multi-format Input: Direct paste; upload txt; upload images (text extraction only); paste URL (scrapes page body text, with support noted for some JS/SSR pages).
  4. Long Text Strategy: Text within 3000 characters is checked directly; 3000–10000 characters triggers a prompt to batch (take first 3000, auto-batch by 3000, or cancel); over 10000 characters suggests manual batching. File uploads do not support PDF or Word.
  5. Local Scripts: The package includes scripts/check_sensitive_words.py (calls detection API) and scripts/extract_text.py (file/webpage text extraction). The default API is https://redfox.hk/story/api/cozeSkill/sensitiveWordSearch, which can be pointed to a self-hosted gateway via the PROHIBITED_WORD_API_URL environment variable.

Runtime Dependencies: Python 3.8+, requests==2.31.0, beautifulsoup4==4.12.3.

Installation & Activation

1. Install SkillHub CLI (if not already installed)

First, confirm if the CLI is already on your machine:

command -v skillhub && skillhub --version

If not installed, follow the official SkillHub installation documentation for a complete installation:

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

CLI only:

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

Installation instructions: https://skillhub.cn/install/skillhub.md

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

When installing, you must use --dir to point to the skills directory recognized by your current client; otherwise, it defaults to ./skills/ and may not be loaded. Taking Cursor as an example:

skillhub install @user_ebee0fcc/prohibited-word-query --dir ~/.cursor/skills/

Other common paths (also from official docs): Claude Code uses ~/.claude/skills/; Codex uses ~/.codex/skills/ or .agents/skills/ under the project. After installation, restart or refresh the Skill list according to your client’s requirements.

The store page also supports giving the prompt below to your Agent for installation (equivalent to CLI):

Please install @user_ebee0fcc/prohibited-word-query according to https://skillhub.cn/install/skillhub.md.

3. Configure API Key

  1. Create a key on the RedFox hub API Key page (documentation for new users indicates free credits are available).
  2. Write to environment variables, e.g., macOS / Linux:
export REDFOX_API_KEY=ak_xxxxxxxx

You can add the line above to ~/.zshrc or ~/.bashrc and then source it. Verify with echo $REDFOX_API_KEY. On Windows, you can use PowerShell to set user-level environment variables (example commands are available in the Skill documentation).

Optional: If you cannot access the default RedFox address, you can override the API:

export PROHIBITED_WORD_API_URL=https://your-gateway.example.com/sensitiveWordSearch

4. Verification

In a conversation where this Skill is enabled, send:

Help me check if this Official Account copy has prohibited words: This product uses pure natural ingredients.

If a prohibited word detection result or a compliance conclusion of “No prohibited words detected” is returned, the Skill and key configuration are working.

Typical Usage

Usage is primarily natural language; no need to memorize script parameters. Platform keywords determine the lexicon.

Official Account (Default)

Help me check if this Official Account copy has prohibited words: This product uses pure natural ingredients.

Xiaohongshu

Check this Xiaohongshu copy for me: This whitening miracle works in three days, refund if invalid.

Files

Upload a txt or image and specify the target platform. The Agent will extract the content first and then detect.

Web Page

Paste a publicly accessible landing page URL. The Skill will scrape the body text and check according to the specified platform. Pages requiring login or with strong anti-scraping measures may fail; in that case, copy and paste the body text instead.

Long Copy

When exceeding 3000 characters, reply with 1 (only first 3000), 2 (auto-batch and merge), or 3 (cancel) as prompted.

If you need to call the script directly (paths are relative to the Skill installation directory), examples are:

python scripts/check_sensitive_words.py --content "Copy to be checked" --platform 公众号
python scripts/extract_text.py --type web --url "https://example.com/page"

Scenarios & Notes

Who is it for

  • Creators and operators who need to reuse or rewrite content across Official Accounts, Xiaohongshu, and Douyin;
  • Teams that need a round of prohibited word self-checking before mass sending or ad placement;
  • Scenarios where you want the Agent to unify the output of “Marking + Replacement Table + Ready-to-publish Draft” instead of guessing vocabulary lists yourself.

Usage Notes

  • Detection sends the copy via HTTPS to the configured API service. You must assess whether sensitive content can be transmitted externally yourself; the Skill documentation states that original text and results are not persisted locally.
  • The result section notes “For reference only.” Final compliance must still be verified against your business scope and factual statements.
  • SkillHub Store Statistics (at time of scraping): Rating 100000, Downloads 3060; Tagged as requiring API Key. Please prepare your RedFox hub account and key before installation.
  • The store also has single-platform Skills from the same publisher (e.g., Douyin, Official Account specific). This multi-platform Skill acts as a general entry point; if you need more vertical capabilities, you can select from the same author’s entries on SkillHub.

Conclusion

“Multi-Platform Prohibited Word Detection” consolidates three platforms’ prohibited word libraries, multi-format input, and replacement suggestions into a single Agent Skill, suitable for quick compliance screening before publishing. Installation and priority source configuration should follow SkillHub documentation. Skill details and download entry:

  • https://www.skillhub.cn/skills/user_ebee0fcc/prohibited-word-query
  • https://api.skillhub.cn/user_ebee0fcc/prohibited-word-query
羽毛球分组比赛记分
小程序二维码

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

Xiaoye