Introduction¶
Douyin voice-over scripts, product details, and live-streaming scripts often undergo compliance checks only right before publication. Manually comparing against platform rules often leads to missed keywords, while general sensitive word libraries may not align with Douyin’s specific review criteria. If copy violates prohibited or absolute terms, common consequences include traffic throttling, takedowns, or repeated revisions.
The following is an introduction to the SkillHub community Skill “Douyin Prohibited Word Detection” (@user_ebee0fcc/dy-prohibited-word). It integrates detection, annotation, and replacement suggestions into the Agent conversation flow: you paste copy, upload files, or provide web links, and the assistant follows the Skill protocol to call scripts, outputting matched words, replacement suggestions, and a finalized draft with only prohibited words replaced.
What is this¶
Douyin Prohibited Word Detection is an Agent Skill designed for Douyin content creation, identified as @user_ebee0fcc/dy-prohibited-word. The current version is 1.0.3. It is sourced from the SkillHub community, categorized under content-creation, and published by user_ebee0fcc. The SkillHub page indicates requires_api_key=true; the detection capability relies on the RedFox Hub API, requiring the configuration of REDFOX_API_KEY in the environment.
It solves the problem of: quickly identifying prohibited words in copy within the Douyin context, providing readable replacement suggestions, and generating an optimized version that only modifies risky words, thereby reducing the secondary risks caused by “changing words based on intuition.”
Core Features¶
The following capabilities are derived from the official Skill documentation (SKILL.md) and the script design within the package. The detection platform is fixed to Douyin, and no platform parameters need to be specified during invocation.
- Multi-format Input: Supports pasting copy directly; uploading text-based files such as TXT, DOC, DOCX; uploading images to extract text only; and pasting
https://web links to scrape main content via Playwright (with a BeautifulSoup fallback if necessary). - Prohibited Word Marking: Bolds matched words in the original text to facilitate the localization of risk points.
- Replacement Suggestions: Provides context-aware replacement words and reasons for modification for each prohibited word (based on the detection API return; the Skill mandates that results must not be fabricated).
- Optimized Copy: Outputs the complete copy with only prohibited words replaced, with replacements in bold; if there are no prohibited words, it only prompts compliance and omits the latter two sections.
- File Delivery: After detection, writes the plain-text optimized draft to
./抖音_优化文案_{6-digit-random-number}.txtfor download. - Long Copy Strategy: Single detection limit is approximately 3000 characters; 3000–10000 characters can be detected in batches and merged upon user selection; manual batching is recommended for over 10000 characters. Substring mismatches within English words are filtered; automatic retries up to 3 times occur upon HTTP request failure.
Installation and Activation¶
1. Install SkillHub CLI and the Skill¶
If the CLI is not installed, check or install it according to the SkillHub installation instructions:
command -v skillhub && skillhub --version
If not installed, run (full installation example):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
Install the Skill to the current Agent’s skills directory (must use --dir, otherwise the default ./skills/ may not be recognized):
skillhub install @user_ebee0fcc/dy-prohibited-word --dir <your Agent skills directory>
Common paths (excerpted from SkillHub installation docs):
- Cursor:
~/.cursor/skills/ - Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/under the project
Alternatively, you can ask the AI in the conversation to install @user_ebee0fcc/dy-prohibited-word based on https://skillhub.cn/install/skillhub.md.
2. Python and Playwright Dependencies¶
The runtime dependencies declared in the Skill metadata are as follows and must be installed in an environment capable of executing scripts:
pip install python-docx==1.1.0 beautifulsoup4==4.12.3 playwright==1.58.0
playwright install chromium
Python 3.8+ is required. Web detection relies on Chromium; if Playwright is unavailable, the documentation states it will fall back to static page extraction, though other input formats remain usable.
3. Configure API Key¶
- Register and log in to RedFox Hub (Website: https://redfox.hk/ , Registration: https://redfox.hk/login ).
- Obtain the API Key in the personal center; the format is
ak_xxxxxxxx. - Write it to the environment variable
REDFOX_API_KEY(the script passes it via theX-API-KEYrequest header):
export REDFOX_API_KEY=ak_xxxxxxxx
To make it permanently effective, write it to ~/.bashrc or ~/.zshrc and then source the corresponding file.
Typical Usage¶
After installing and configuring the key, trigger it via natural language in the Agent; the Skill activates when terms like “Douyin prohibited words,” “throttling words,” or “script compliance” are hit, or when you explicitly request Douyin copy detection. The assistant should first read references/core_workflow.md inside the package and then call scripts/check_sensitive_words.py.
Paste Copy (Official example phrasing):
Check this Douyin script for prohibited words: This whitening miracle product is really effective; I got one shade whiter in three days.
Upload Document:
[Upload script.docx] Help me check this document.
Detect after Image OCR:
[Upload subtitle screenshot.png] Check the text in the image for prohibited words.
Detect after Web Scraping:
Help me detect this webpage https://example.com/article
Script parameter convention: --content, --file, and --url are mutually exclusive; pass only one at a time. Long copy will first pass through a character count gate, pausing if necessary to wait for your reply: 1 (first 3000 words only), 2 (batch full), or 3 (cancel).
On success, the output order is fixed to three blocks: Prohibited Word Detection Results → Modification Suggestions (Table) → Recommended Optimized Copy, followed by the delivery of the txt file.
Use Cases and Precautions¶
Who it is for: Short video directors, e-commerce operators, live-stream script planners, and teams needing to perform self-checks on copy compliance before publishing on Douyin.
Precautions:
- Detection results are based on remote API returns; the Skill explicitly forbids the assistant from fabricating prohibited words or replacements.
- Copy is sent to the detection service via HTTPS for matching; the Skill description states it is not persistently stored locally. Please assess compliance and confidentiality requirements yourself when dealing with unpublished content.
- PDF is not supported; convert to text or images first. The 3000-character single-time limit and the 10000-character batching strategy must be observed to avoid running excessively long tasks in a single batch.
- Playwright and pip dependencies must be installed in advance, otherwise file/web links may degrade or fail.
SkillHub Statistics (based on page scraping): Rating 100000, Downloads 1817; these may differ from historical numbers in some summaries—refer to the SkillHub page.
Conclusion¶
“Douyin Prohibited Word Detection” consolidates Douyin-side prohibited word scanning, bold annotation, replacement suggestions, and final draft output into a single Agent Skill workflow. It is suitable as the final text screening step between writing and publishing. Once installation, dependencies, and API Key configuration are complete, you can reuse the same protocol via paste, file, image, or link.
Official Skill Page: https://www.skillhub.cn/skills/user_ebee0fcc/dy-prohibited-word
Skill Coordinate Page: https://api.skillhub.cn/user_ebee0fcc/dy-prohibited-word