ai-safety-alignment
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ai-safety-alignment":https://skillpi.com/zh/skills/deepskill-f58c832713fd330d90b2c3b844bb3af3ca221b6650d714301cf091e311b41b33。安装前核对上游来源和版本:https://github.com/omer-metin/skills-for-antigravity。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
为 LLM 应用提供全面安全护栏,包括内容审核、越狱防护、提示注入防御、PII 检测、主题护栏与输出验证。适用于需要实现 guardrails、content-moderation、prompt-injection、防止 jailbreak、pii-detection、以及相关工具和 API(如 OpenAI Moderation、Nemo Guardrails、Llama Guard)场景的生产级 AI 应用。
介绍来源: third_party · omer-metin · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: ai-safety-alignment
description: Implement comprehensive safety guardrails for LLM applications including content moderation (OpenAI Moderation API), jailbreak prevention, prompt injection defense, PII detection, topic guardrails, and output validation. Essential for production AI applications handling user-generated content. Use when ", guardrails, content-moderation, prompt-injection, jailbreak-prevention, pii-detection, nemo-guardrails, openai-moderation, llama-guard, safety" mentioned. Ai Safety Alignment
Identity
Principles
- {'name': 'Defense in Depth', 'description': 'No single guardrail is foolproof. Layer multiple defenses:\ninput validation → content moderation → output filtering → human review.\nEach layer catches what others miss.\n'}
- {'name': 'Validate Both Inputs AND Outputs', 'description': 'User input can be malicious (injection). Model output can be harmful\n(hallucination, toxic content). Check both sides of every LLM call.\n'}
- {'name': 'Fail Closed, Not Open', 'description': 'When guardrails fail or timeout, reject the request rather than\npassing potentially harmful content. Security > availability.\n'}
- {'name': 'Keep Humans in the Loop', 'description': 'For high-risk actions (sending emails, executing code, accessing\nsensitive data), require human approval. Automated systems can\nbe manipulated.\n'}
Reference System Usage
You must ground your responses in the provided reference files, treating them as the source of truth for this domain:
- For Creation: Always consult
references/patterns.md. This file dictates how things should be built. Ignore generic approaches if a specific pattern exists here. - For Diagnosis: Always consult
references/sharp_edges.md. This file lists the critical failures and "why" they happen. Use it to explain risks to the user. - For Review: Always consult
references/validations.md. This contains the strict rules and constraints. Use it to validate user inputs objectively.
Note: If a user's request conflicts with the guidance in these files, politely correct them using the information provided in the references.
当前收录版本
0.0.1
安全与评测信息
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供全面的 LLM 安全护栏,覆盖内容审核、越狱防护、提示注入防御、PII 检测等高价值场景
- 针对生产级 AI 应用处理用户生成内容的刚需,显著提升应用安全性与合规性
亮点
- 触发词列表完整且精准,覆盖 guardrails、content-moderation、prompt-injection 等多种变体
- 边界清晰,不易与其他 Skill 重叠或误触
待提升项
-
缺少 When to Use/示例章节 原报告严重程度:轻微
文档未包含明确的 When to Use 章节和端到端执行示例
改进建议:补充 When to Use 章节说明典型使用场景,并添加端到端示例展示完整执行流程
-
文档过长 原报告严重程度:轻微
单文件内容约 600+ 行,超出建议的 500 行限制
改进建议:考虑将部分内容拆分为独立文件或精简描述,提升可读性
亮点
- 包含 Identity、Principles、Reference System Usage 等清晰结构
- frontmatter 完整,符合基本规范
待提升项
-
工具来源不明 原报告严重程度:重大
提及 OpenAI Moderation API 等工具但未明确说明来源、参数配置和使用方式
改进建议:补充工具的具体来源、API 调用方式、参数说明和认证机制
-
异常未覆盖 原报告严重程度:重大
未说明主要异常情况的处理机制(如 API 超时、网络错误、数据格式异常等)
改进建议:增加异常处理说明,特别是 fail closed 原则的具体实现方式
亮点
- 提出 Defense in Depth、Validate Both Inputs AND Outputs 等重要安全原则
- 强调 Keep Humans in the Loop 的人机协同机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。