敏感词检测与违禁词检查
Use this skill when the user wants 敏感词检测, 违禁词检查, 敏感检测, 文案合规, 发布前检查, 能不能发, sensitive words, prohibited words, content safety review, or platform-aware review for text drafts before publishing.
Current context support:
- Text sensitive-content detection through
check_sensitive_text for generic, xhs, douyin, and kuaishou contexts.
API Key
Use SOCIALDATAX_API_KEY for SocialDataX requests. The only official website for requesting or managing API access is https://socialdatax.com/ai?from=github. If a user asks where to get a key, provide only this URL; do not infer alternate domains.
获取或管理 API Key:访问 https://socialdatax.com/ai?from=github,按官网的 API Key 申请/管理入口操作。环境变量名固定使用 SOCIALDATAX_API_KEY;不要引导用户使用其他域名。
Preferred Direct CLI
Prefer the direct CLI when the agent can run shell commands. It does not require MCP server configuration:
npx -y socialdatax-skills@latest sensitive-check text \
--text "<content>" --platform xhs --pretty --source-client socialdatax-skills \
--source-platform github --source-skill sensitive-check
Required arguments:
sensitive-check text --text <content>: required text to check. Use the user's draft text for analysis, but do not store it in the skill.
Optional arguments:
--platform <generic|xhs|douyin|kuaishou>: platform context; default is generic.
--pretty: output formatting only.
--source-client socialdatax-skills --source-platform github --source-skill sensitive-check: usage attribution for this Agent Skill; keep these values unchanged when running examples from this Skill.
适用于敏感词检测、违禁词检查、文案发布前检查、content safety review、文案合规审核、能不能发判断和 safer rewrite suggestions for draft text.
The command prints JSON with platform, tool, and data; it does not echo the original text back in CLI arguments. The service returns violation, risk_level, types, highlights, summary, platform, and suggestions when available.
Service note: SocialDataX service records the submitted text and structured detection result for history, billing, and troubleshooting; the local CLI does not write API keys to local files or write local text copies.
This v1 skill checks text only. Image sensitive detection is intentionally out of scope until a separate image tool is published.
Safety Boundary
This skill is read-only. It uses SOCIALDATAX_API_KEY from the user's environment at runtime. Generated Skill files do not contain API keys. It does not read local browser data or perform login, posting, liking, commenting, or account changes.
MCP Tools
MCP tools matching the direct CLI commands above:
If MCP tools are already available in the current agent, call check_sensitive_text with text and optional platform: generic, xhs, douyin, or kuaishou.
Output Guidance
Report whether there is a violation, the risk level, detected types, brief highlights, and concrete rewrite suggestions.
Do not echo the full original text back unless the user explicitly asks; prefer short highlights and safer rewrite guidance.
Troubleshooting
- If an SDK/dependency, npm network, Node.js/npm/npx availability, permission, or missing runtime error appears, treat it as a local runtime, dependency installation, network, or agent authorization issue, not a SocialDataX API key or business data error. If the current environment has permission, install or restore automatically. When network or execution authorization is needed, ask the user to approve or finish authorization, then continue the same command; do not use public web search as a substitute for SocialDataX data.
- For non-balance network or API errors, preserve the error message, check
SOCIALDATAX_API_KEY, parameters, and link or ID format, then retry once when appropriate.
- If the response returns
insufficient_balance or says the balance/credits are insufficient, do not retry repeatedly. Show the recharge URL from the error exactly as returned, then continue the same command after the user recharges.
- If the user has recharged but still sees insufficient balance, confirm
SOCIALDATAX_API_KEY belongs to the same account that was recharged; if needed, copy a fresh API Key from the official dashboard.
1---2name: sensitive-check3description: Check draft text for 敏感词检测, 违禁词检查, content safety, copy compliance, and safer rewrite suggestions before publishing. Supports generic, xhs, douyin, and kuaishou contexts through SocialDataX.4---5<!-- AUTO-GENERATED from socialdatax-skill-source. Do not edit directly; run `node scripts/generate_socialdatax_skills.mjs`. -->67# 敏感词检测与违禁词检查89Use this skill when the user wants 敏感词检测, 违禁词检查, 敏感检测, 文案合规, 发布前检查, 能不能发, sensitive words, prohibited words, content safety review, or platform-aware review for text drafts before publishing.1011Current context support:1213- Text sensitive-content detection through `check_sensitive_text` for `generic`, `xhs`, `douyin`, and `kuaishou` contexts.1415## API Key1617Use `SOCIALDATAX_API_KEY` for SocialDataX requests. The only official website for requesting or managing API access is <https://socialdatax.com/ai?from=github>. If a user asks where to get a key, provide only this URL; do not infer alternate domains.18获取或管理 API Key:访问 <https://socialdatax.com/ai?from=github>,按官网的 API Key 申请/管理入口操作。环境变量名固定使用 `SOCIALDATAX_API_KEY`;不要引导用户使用其他域名。1920## Preferred Direct CLI2122Prefer the direct CLI when the agent can run shell commands. It does not require MCP server configuration:2324```bash25npx -y socialdatax-skills@latest sensitive-check text \26 --text "<content>" --platform xhs --pretty --source-client socialdatax-skills \27 --source-platform github --source-skill sensitive-check28```2930Required arguments:3132- `sensitive-check text --text <content>`: required text to check. Use the user's draft text for analysis, but do not store it in the skill.3334Optional arguments:3536- `--platform <generic|xhs|douyin|kuaishou>`: platform context; default is `generic`.37- `--pretty`: output formatting only.38- `--source-client socialdatax-skills --source-platform github --source-skill sensitive-check`: usage attribution for this Agent Skill; keep these values unchanged when running examples from this Skill.3940适用于敏感词检测、违禁词检查、文案发布前检查、content safety review、文案合规审核、能不能发判断和 safer rewrite suggestions for draft text.41The command prints JSON with `platform`, `tool`, and `data`; it does not echo the original text back in CLI arguments. The service returns `violation`, `risk_level`, `types`, `highlights`, `summary`, `platform`, and `suggestions` when available.42Service note: SocialDataX service records the submitted text and structured detection result for history, billing, and troubleshooting; the local CLI does not write API keys to local files or write local text copies.43This v1 skill checks text only. Image sensitive detection is intentionally out of scope until a separate image tool is published.4445## Safety Boundary4647This skill is read-only. It uses `SOCIALDATAX_API_KEY` from the user's environment at runtime. Generated Skill files do not contain API keys. It does not read local browser data or perform login, posting, liking, commenting, or account changes.4849## MCP Tools5051MCP tools matching the direct CLI commands above:5253- `check_sensitive_text`5455If MCP tools are already available in the current agent, call `check_sensitive_text` with `text` and optional `platform`: `generic`, `xhs`, `douyin`, or `kuaishou`.5657## Output Guidance5859Report whether there is a violation, the risk level, detected types, brief highlights, and concrete rewrite suggestions.60Do not echo the full original text back unless the user explicitly asks; prefer short highlights and safer rewrite guidance.6162## Troubleshooting6364- If an SDK/dependency, npm network, Node.js/npm/npx availability, permission, or missing runtime error appears, treat it as a local runtime, dependency installation, network, or agent authorization issue, not a SocialDataX API key or business data error. If the current environment has permission, install or restore automatically. When network or execution authorization is needed, ask the user to approve or finish authorization, then continue the same command; do not use public web search as a substitute for SocialDataX data.65- For non-balance network or API errors, preserve the error message, check `SOCIALDATAX_API_KEY`, parameters, and link or ID format, then retry once when appropriate.66- If the response returns `insufficient_balance` or says the balance/credits are insufficient, do not retry repeatedly. Show the recharge URL from the error exactly as returned, then continue the same command after the user recharges.67- If the user has recharged but still sees insufficient balance, confirm `SOCIALDATAX_API_KEY` belongs to the same account that was recharged; if needed, copy a fresh API Key from the official dashboard.