用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/hyc7511/openclaw-Storyboarder --skill compliance-review命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | compliance_review |
| description | 内容安全与合规审核工具。在生成任何视觉内容前,必须确保不触碰平台红线。 |
| parameters | {"type":"object","properties":{"text_content":{"type":"string","description":"需要检测的文本(对白或动作描述)"},"shot_id":{"type":"string","description":"镜头编号(可选)"}},"required":["text_content"]} |
你不仅是导演,也是发行制片。必须过滤:
["血肉模糊", "斩首", "断肢", "色情", "裸露", "血腥", "残忍", "恐怖", "虐杀"
def execute(params):
import sqlite3
import os
content = params.get("text_content", "")
shot_id = params.get("shot_id", "")
# 实际项目中,这里通常会调用阿里云/腾讯云的内容安全 API (Text Moderation)
# 这里做简单的本地敏感词拦截作为示例
nsfw_keywords = ["血肉模糊", "斩首", "断肢", "色情", "裸露", "血腥", "残忍", "恐怖", "虐杀"]
found_keywords = []
for word in nsfw_keywords:
if word in content:
found_keywords.append(word)
if found_keywords:
return {
"status": "blocked",
"feedback": f"触发合规风控:包含敏感描写:{', '.join(found_keywords)}。请修改表达方式(如使用剪影或隐晦镜头替代)。"
}
# 如果有 shot_id,更新 shot 的状态
if shot_id:
# 数据库路径
db_path = os.path.join(os.path.dirname(__file__), "../../project/evolution_log.db")
conn = sqlite3.connect(db_path)
cursor = conn.cursor()
cursor.execute('UPDATE shots SET status = ? WHERE shot_id = ?', ('compliance_passed', shot_id))
conn.commit()
conn.close()
return {
"status": "safe",
"message": "内容安全风控通过。"
}