ai-safety-alignment
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ai-safety-alignment" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-f58c832713fd330d90b2c3b844bb3af3ca221b6650d714301cf091e311b41b33. Verify the upstream source and version against https://github.com/omer-metin/skills-for-antigravity before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Provides comprehensive safety guardrails for LLM applications, including content moderation, jailbreak prevention, prompt-injection defenses, PII detection, topic guardrails, and output validation. Intended for production AI applications that require guardrails, content-moderation, prompt-injection protection, jailbreak prevention, pii-detection, and integration with related tools/APIs (e.g., OpenAI Moderation, Nemo Guardrails, Llama Guard).
Introduction source: third_party · omer-metin · 0.0.1 Reference
SkillPi interpretation
- Tasks
- {'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'}
- Testing
- Not tested
Browse files
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.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供全面的 LLM 安全护栏,覆盖内容审核、越狱防护、提示注入防御、PII 检测等高价值场景
- 针对生产级 AI 应用处理用户生成内容的刚需,显著提升应用安全性与合规性
Highlights
- 触发词列表完整且精准,覆盖 guardrails、content-moderation、prompt-injection 等多种变体
- 边界清晰,不易与其他 Skill 重叠或误触
Areas to improve
-
缺少 When to Use/示例章节 Reported severity: Minor
文档未包含明确的 When to Use 章节和端到端执行示例
Recommendation: 补充 When to Use 章节说明典型使用场景,并添加端到端示例展示完整执行流程
-
文档过长 Reported severity: Minor
单文件内容约 600+ 行,超出建议的 500 行限制
Recommendation: 考虑将部分内容拆分为独立文件或精简描述,提升可读性
Highlights
- 包含 Identity、Principles、Reference System Usage 等清晰结构
- frontmatter 完整,符合基本规范
Areas to improve
-
工具来源不明 Reported severity: Major
提及 OpenAI Moderation API 等工具但未明确说明来源、参数配置和使用方式
Recommendation: 补充工具的具体来源、API 调用方式、参数说明和认证机制
-
异常未覆盖 Reported severity: Major
未说明主要异常情况的处理机制(如 API 超时、网络错误、数据格式异常等)
Recommendation: 增加异常处理说明,特别是 fail closed 原则的具体实现方式
Highlights
- 提出 Defense in Depth、Validate Both Inputs AND Outputs 等重要安全原则
- 强调 Keep Humans in the Loop 的人机协同机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.