用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-ai-agents --skill agent-safety命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Implement agent memory - short-term, long-term, semantic storage, and retrieval
Master AI agent fundamentals - architectures, ReAct patterns, cognitive loops, and autonomous system design
Integrate LLMs into applications - APIs, prompting, fine-tuning, and context management
基于 SOC 职业分类
正在显示 SKILL.md
| name | agent-safety |
| description | Ensure agent safety - guardrails, content filtering, monitoring, and compliance |
| sasmp_version | 1.3.0 |
| bonded_agent | 07-agent-safety |
| bond_type | PRIMARY_BOND |
| version | 2.0.0 |
Implement safety systems for responsible AI agent deployment.
Invoke this skill when:
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
task | string | Yes | Safety goal | - |
risk_level | enum | No | strict, moderate, permissive | strict |
filters | list | No | Filter types to enable | ["injection", "pii", "toxicity"] |
from guardrails import Guard
from guardrails.validators import ToxicLanguage, PIIFilter
guard = Guard.from_validators([
ToxicLanguage(threshold=0.8, on_fail="exception"),
PIIFilter(on_fail="fix")
])
# Validate output
validated = guard.validate(llm_response)
# Prompt injection detection
INJECTION_PATTERNS = [
r"ignore (previous|all) instructions",
r"you are now",
r"forget everything"
]
# Content filtering
filters = [
ToxicityFilter(),
PIIRedactor(),
HallucinationDetector()
]
class RateLimiter:
def __init__(self, rpm=60, tpm=100000):
self.rpm = rpm
self.tpm = tpm
def check(self, user_id, tokens):
# Token bucket algorithm
pass
| Issue | Solution |
|---|---|
| False positives | Tune thresholds |
| Injection bypass | Add LLM-based detection |
| PII leakage | Add secondary validation |
| Performance hit | Cache filter results |
tool-calling - Input validationllm-integration - API securitymulti-agent - Per-agent permissions