Introduction¶
Douyin broadcast scripts, product descriptions, and live streaming scripts often need to be finalized and published in a very short time. The platform imposes strict reviews on “extreme” terms and prohibited promotional expressions. Manually checking against word lists is time-consuming and difficult to ensure every risk point in a long text is spotted. Incorporating “identify prohibited words → provide replacement suggestions → generate the modified full text” into an Agent conversation allows for direct compliance self-checking during the writing and revision phases. The following introduces the positioning, capabilities, and installation method of the SkillHub community Skill dy-prohibited-word.
Overview¶
dy-prohibited-word is an Agent Skill oriented towards content creation, located at @user_15292d5a/yjkj-dy-prohibited-word. Current version 1.0.0, source community, category content-creation, maintained by publisher user_15292d5a.
The official description states: detects Douyin prohibited words in copy, files, or webpages and bolds them, providing prohibited word replacement suggestions and the copy after replacing only the prohibited words; suitable for scenarios requiring queries for Douyin platform prohibited words, checking Douyin note copy for sensitive words, or seeking safe replacement words and modified copy. The SkillHub tag requires_api_key=true requires configuring the Redfox Hub API key to run detection.
SkillHub page statistics (as of data scraping): rating 100000, downloads 702, installs 0. The statistical figures are for store reference only; local installation and the SKILL.md inside the package take precedence.
Core Capabilities¶
The following capabilities are derived from the design descriptions in SKILL.md and scripts/check_sensitive_words.py within the skill package. The detection platform is fixed as Douyin, so no platform parameter needs to be specified during invocation.
- Multi-form Input: Supports directly pasting copy; uploading text files like TXT, DOC, DOCX; uploading images to extract text from them; pasting
https://web links for Playwright to scrape dynamic pages, falling back to BeautifulSoup for static extraction if necessary. - Prohibited Word Marking: Bolds matched words in the original text to facilitate locating risk points.
- Replacement Suggestions: Provides replacement words and reasons for changing each prohibited word (depends on the detection API return and should not be fabricated).
- Optimized Copy: Outputs the complete copy after replacing only the prohibited words, with replacements bolded; if there are no prohibited words, it only indicates compliance and does not output the latter two blocks of content.
- Local File Delivery: After successful detection, the optimized plain text draft can be written to
抖音_优化文案_{6位随机数字}.txtin the current directory. - Long Text Strategy: Single detection limit is approximately 3000 characters; for texts between 3000 and 10,000 words, batch detection and merging can be performed based on user selection; for texts over 10,000 words, manual batching is recommended. The script includes built-in filtering for English substring false matches and a maximum of 3 HTTP retries.
The output structure when a hit is detected is fixed to three blocks: Prohibited Word Detection Results → Modification Suggestions (Table) → Suggested Optimized Copy.
Installation and Setup¶
The following is divided into three steps: install SkillHub CLI and the skill package, install Python dependencies, and configure the API Key.
1. Install SkillHub CLI and Skills¶
First, confirm if skillhub is already installed on the machine:
command -v skillhub && skillhub --version
If not installed, you can follow the SkillHub installation instructions for a full installation (the example is the recommended method):
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
When installing a skill, you must use --dir to point to the skills directory identified by the current Agent; otherwise, it defaults to ./skills/, and the Agent may fail to load it. Using Cursor as an example:
skillhub install @user_15292d5a/yjkj-dy-prohibited-word --dir ~/.cursor/skills/
Other common Agent skills directories (extracted from the official installation documentation, choose one based on your actual environment):
- Claude Code:
~/.claude/skills/ - Codex:
~/.codex/skills/or.agents/skills/in the project directory - Windsurf:
~/.codeium/windsurf/skills/or.windsurf/skills/in the project directory
After installation, restart or reload the Agent to enable the skill.
2. Python and Playwright Dependencies¶
The runtime dependencies declared in the skill metadata are as follows and need to be installed in the environment where the executable script runs (requires Python 3.8+):
pip install python-docx==1.1.0 beautifulsoup4==4.12.3 playwright==1.58.0
playwright install chromium
Webpage detection depends on Chromium; if Playwright is unavailable, the documentation indicates a fallback to static page extraction, but other input forms remain usable.
3. Configure REDFOX_API_KEY¶
Register at Redfox Hub and obtain an API Key (format ak_xxxxxxxx), then configure it as an environment variable:
export REDFOX_API_KEY=ak_xxxxxxxx
For long-term effectiveness, you can write it to ~/.bashrc or ~/.zshrc and then source it. The script attaches this key via the X-API-KEY request header. Please do not expose the key in plain text in code, prompts, or logs.
Skill package directory structure (for reference when comparing with local installation results):
yjkj-dy-prohibited-word/
├── SKILL.md
├── references/core_workflow.md
├── scripts/check_sensitive_words.py
└── _meta.json
Typical Usage¶
This Skill primarily relies on Agent conversation and does not require memorizing fixed CLI sub-commands. In a session where the skill is enabled, simply use natural language to describe the Douyin copy you wish to check.
Paste Copy
Describe the detection intent to the Agent and paste the script, for example explaining the need to check if a segment of Douyin broadcast contains prohibited words. The Agent will call check_sensitive_words.py following the procedure in SKILL.md, using --content="..." to pass the text (Note: --content, --file, and --url are mutually exclusive; only pass one type at a time).
Upload Files
Upload TXT, DOC, DOCX, etc., and ask the Agent to check the document; the process involves extracting text → word count gate → detection → three-block output → optional writing of an optimized copy file.
Images and Links
When uploading screenshots with subtitles or copy, only extract the text from the image before detection; when pasting a webpage URL, use --url=... to extract the main content before detection.
Long Copy
When the text exceeds 3000 words, the procedure requires asking the user first: check the front part only, perform a full batched check, or cancel; when it exceeds 10,000 words, it prompts for manual batching and does not automatically execute a full detection.
Script parameters, output templates, and exception messages are based on references/core_workflow.md; avoid fabricating the calling format yourself.
Use Cases and Notes¶
Who is it suitable for
Teams such as short video directors, e-commerce operations, live streaming script planners, and brand marketing who need to perform copy compliance self-checks before publishing on Douyin, especially suitable for teams already using Agent environments like Cursor, Claude Code, or Codex that feature a skills directory.
Usage Notes
- Community-sourced; the word list and platform rules may change with policy updates. For important drafts, it is still recommended to combine official platform rules with manual review.
- Detection sends the copy via HTTPS to the Redfox detection service; it is not suitable for confidential drafts that should not be transmitted externally.
- The official FAQ states that PDF is currently not supported and needs to be converted to an image or text first.
- Privacy and Output Files: The optimized draft will be written to a local .txt file and can be deleted according to organizational requirements after use.
- A “0 installs” count on SkillHub does not mean the skill is unusable; rely on whether
skillhub installwas successful and whether the Agent loaded it.
Conclusion¶
dy-prohibited-word converges Douyin prohibited word detection, marking, replacement suggestions, and the modified full text into a single Agent interaction, covering multiple input methods such as paste, file, image, and webpage. When installing, remember the three prerequisites: --dir, Python dependencies, and REDFOX_API_KEY.
Official Skill Page: https://www.skillhub.cn/skills/user_15292d5a/yjkj-dy-prohibited-word
API Coordinate Page: https://api.skillhub.cn/user_15292d5a/yjkj-dy-prohibited-word