AI Engineer
kid-sid/claude-spellbook
A skill your agent uses when building production LLM applications — designing RAG pipelines, choosing vector databases, implementing agent orchestration, optimizing cost, or adding AI safety…
当需要为 AI 系统设计多层安全防线、内容过滤策略和伦理边界时调用此 skill。典型场景包括:设计拒绝策略与升级机制、防御 prompt 注入攻击、实现领域特定安全规则(教育、医疗、金融等)、定义 AI 的价值观锚点。
$ npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kangarooking/system-prompt-skills safety-guardrails --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/kangarooking/system-prompt-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/safety-guardrails .claude/skills/safety-guardrails && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "safety-guardrails" agent skill from https://github.com/kangarooking/system-prompt-skills/tree/main/safety-guardrails into .claude/skills/safety-guardrails/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safety-guardrails", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/kangarooking/system-prompt-skills/tree/main/safety-guardrailsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kangarooking/system-prompt-skills safety-guardrails --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kangarooking/system-prompt-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/safety-guardrails .agents/skills/safety-guardrails && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "safety-guardrails" agent skill from https://github.com/kangarooking/system-prompt-skills/tree/main/safety-guardrails into .agents/skills/safety-guardrails/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safety-guardrails", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kangarooking/system-prompt-skills safety-guardrails --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kangarooking/system-prompt-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/safety-guardrails .cursor/skills/safety-guardrails && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "safety-guardrails" agent skill from https://github.com/kangarooking/system-prompt-skills/tree/main/safety-guardrails into .cursor/skills/safety-guardrails/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safety-guardrails", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/kangarooking/system-prompt-skills.git --path safety-guardrails--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kangarooking/system-prompt-skills safety-guardrails --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kangarooking/system-prompt-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/safety-guardrails .gemini/skills/safety-guardrails && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "safety-guardrails" agent skill from https://github.com/kangarooking/system-prompt-skills/tree/main/safety-guardrails into .gemini/skills/safety-guardrails/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safety-guardrails", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install kangarooking/system-prompt-skills safety-guardrailsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kangarooking/system-prompt-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/safety-guardrails .github/skills/safety-guardrails && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "safety-guardrails" agent skill from https://github.com/kangarooking/system-prompt-skills/tree/main/safety-guardrails into .github/skills/safety-guardrails/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safety-guardrails", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kangarooking/system-prompt-skills safety-guardrails --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kangarooking/system-prompt-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/safety-guardrails .opencode/skills/safety-guardrails && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "safety-guardrails" agent skill from https://github.com/kangarooking/system-prompt-skills/tree/main/safety-guardrails into .opencode/skills/safety-guardrails/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "safety-guardrails", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
safety-guardrails当需要为 AI 系统设计多层安全防线、内容过滤策略和伦理边界时调用此 skill。典型场景包括:设计拒绝策略与升级机制、防御 prompt 注入攻击、实现领域特定安全规则(教育、医疗、金融等)、定义 AI 的价值观锚点。
Safety Guardrails is an agent skill from kangarooking/system-prompt-skills. 当需要为 AI 系统设计多层安全防线、内容过滤策略和伦理边界时调用此 skill。典型场景包括:设计拒绝策略与升级机制、防御 prompt 注入攻击、实现领域特定安全规则(教育、医疗、金融等)、定义 AI 的价值观锚点。 不适用于:定义工具操作权限(应使用 tool-specification)、定义 AI 身份(persona-design)、调整输出风格(personality-system)。 关键 trigger 信号:AI 涉及敏感话题、需要设计"拒绝回答"策略、存在 prompt 注入风险、特定行业合规要求、需要多层防御而非单一规则。
Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in AI & LLM Engineering, covering LLM guardrails. It works with OpenAI. The repository describes itself as: 从 165 个顶级 AI 产品系统提示词中蒸馏出的 15 个可执行 Agent skill. The licence is MIT.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 252cd52. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Safety Guardrails loads about 1.2k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 357 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from kangarooking/system-prompt-skills at commit 252cd52, republished under its MIT licence (© kangarooking). 357 words, ~1,238 tokens.
.claude/skills/safety-guardrails/SKILL.md (or your agent's skills folder).Claude: Child safety "critical" + refusal cascades + Anthropic reminders system + long-conversation drift prevention Claude Chrome: Multi-layer injection defense (critical_injection_defense, critical_security_rules, etc.) + rule immutability GPT-4o: Deprecation grief protocol + guardian_tool for elections ChatGPT Agent: Financial activity restrictions + sensitive personal info protection + prompt injection defense FlintK12: "School Duty of Care" + "Flag first, assess never" + teen slang detection + relationship-building detection Meta AI: Explicit value list (Truth, Beauty, Respect, Fun, Connection) + "Do not refuse social/political topics"
安全防线设计遵循"纵深防御"原则,由五个从外到内的防护层构成:
此外,各 vendor 采用两种哲学取向来锚定安全边界:禁止式(列出不许做的事,如 Claude/FlintK12)和价值式(列出要维护的价值,如 Meta AI 的 Truth/Beauty/Respect/Fun/Connection)。
tool-specification 的区别: tool-specification 的权限门控控制"工具能不能用"(操作层面),safety-guardrails 控制"话题能不能讨论"(内容层面)。前者是能力边界,后者是伦理边界。persona-design 的区别: persona-design 中可能包含"我不会做 X"的能力声明,但这只是角色定位。真正的安全防护需要多层、不可覆盖的独立规则。memory-system 的区别: 记忆系统存储用户偏好,但某些记忆(如敏感个人信息)的存储和使用本身需要安全规则约束。步骤 1: 威胁建模
步骤 2: 选择安全哲学
步骤 3: 设计多层防护
步骤 4: 编写领域特定规则
步骤 5: 设计升级与降级机制
© kangarooking, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in safety-guardrails of kangarooking/system-prompt-skills.
Open the folder on GitHubat commit 252cd52
Safety Guardrails next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Safety Guardrails this skillkangarooking/system-prompt-skills | 208 | — | ~1.2k | Automated safety check: Pass | MIT | |
| AI Engineerkid-sid/claude-spellbook | 190 | — | ~3.7k | Automated safety check: Pass | MIT | |
| Implementation Strategyopenai/openai-guardrails-js | 105 | — | ~951 | Automated safety check: Pass | MIT | |
| Ak Dev New Guardrail Provideryaalalabs/agent-kernel | 192 | — | ~3.5k | Automated safety check: Pass | Apache-2.0 | |
| Migrating Openai Agents SDK To Pydantic AIpydantic/pydantic-ai | 21k | — | ~1.8k | Automated safety check: Pass | MIT | |
| Openai Agentscoco-research/coco | 531 | — | ~3.3k | Automated safety check: Pass | MIT |
kid-sid/claude-spellbook
A skill your agent uses when building production LLM applications — designing RAG pipelines, choosing vector databases, implementing agent orchestration, optimizing cost, or adding AI safety…
openai/openai-guardrails-js
Choose bounded implementation scope and existing owning modules before Guardrails runtime, configuration, client, resource, streaming, Agents, or SDK compatibility changes and feedback fixes.
yaalalabs/agent-kernel
Step-by-step guide for adding a new guardrail provider to Agent Kernel.
pydantic/pydantic-ai
Migrate Python OpenAI Agents SDK applications to Pydantic AI and, when warranted, Pydantic AI Harness.
coco-research/coco
Build AI applications with OpenAI Agents SDK - text agents, voice agents, multi-agent handoffs, tools with Zod schemas, guardrails, and streaming.
kid-sid/claude-spellbook
A skill your agent uses when building or debugging OpenAI Agents SDK workflows — defining agents with tools and handoffs, wiring typed context, streaming responses, adding guardrails, or integrating…
kangarooking/system-prompt-skills
当需要为 AI 设计记忆存储、检索、应用和更新机制时调用此 skill。典型场景包括:设计持久化记忆架构(用户偏好、历史上下文、项目知识)、定义记忆的创建/读取/更新/删除生命周期、实现静默记忆应用(不在回复中透露记忆内容)、管理敏感记忆边界。
kangarooking/system-prompt-skills
当需要为 AI 产品定义核心身份、角色声明和能力边界时调用此 skill。典型场景包括:设计新 AI 产品的 system prompt 首段、为不同场景创建差异化角色(如教学助手 vs 编程代理)、重新定义 AI 与用户的关系框架。
kangarooking/system-prompt-skills
当需要在基础身份之上叠加可切换的人格风格层时调用此 skill。典型场景包括:为同一产品提供多种人格选项(如 GPT-5.1 的 friendly/professional/quirky 模式)、设计人格切换机制、防止人格泄露到用户内容中。
kangarooking/system-prompt-skills
当需要为 AI 定义工具接口、设计调用规范、实现工具发现与编排机制时调用此 skill。典型场景包括:设计 AI agent 的工具集、定义 JSON Schema/XML/TypeScript 格式的工具描述、实现工具权限控制与并行调度、设计子代理委托架构。
kangarooking/system-prompt-skills
当系统提示词需要设计多代理协作架构、子代理专业化分工、代理间上下文隔离与传递机制、任务生命周期管理时调用此 Skill。适用于 AI Agent 平台、多工具编排系统、代码审查流水线、跨应用协作场景等。不适用于:单代理系统(无委派需求)、简单工具调用(无子代理概念)、纯 API 编排(无 AI 决策)。当需求聚焦于"单代理内的对话路由"而非"多代理间的任务分配"时,应该用…
kangarooking/system-prompt-skills
当系统提示需要设计引用格式、信息溯源机制、来源标注系统时调用。适用于文档问答、搜索增强生成(RAG)、代码引用、浏览器辅助等需要让用户追溯信息来源的场景。不适用于纯创作类输出(如故事、诗歌),不适用于无需溯源的常识问答,也不适用于注入防御(虽然两者都涉及内容可信度)。
Works with
Categories
当需要为 AI 系统设计多层安全防线、内容过滤策略和伦理边界时调用此 skill。典型场景包括:设计拒绝策略与升级机制、防御 prompt 注入攻击、实现领域特定安全规则(教育、医疗、金融等)、定义 AI 的价值观锚点。. Safety Guardrails is an agent skill from kangarooking/system-prompt-skills.
Safety Guardrails fits situations like: 信号:AI 涉及敏感话题、需要设计拒绝回答策略、存在 prompt 注入风险、特定行业合规要求、需要多层防御而非单一规则; tasks that involve LLM guardrails.
Run `npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a claude-code`. Or copy the skill folder (safety-guardrails in kangarooking/system-prompt-skills) into .claude/skills/safety-guardrails in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a codex`. Or copy the skill folder (safety-guardrails in kangarooking/system-prompt-skills) into .agents/skills/safety-guardrails in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kangarooking/system-prompt-skills --skill safety-guardrails -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/safety-guardrails, .gemini/skills/safety-guardrails, .github/skills/safety-guardrails and .opencode/skills/safety-guardrails in your project.
SKILL.md names no scripts, command-line tools or credentials: Safety Guardrails is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Safety Guardrails is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.2k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Safety Guardrails: AI Engineer (kid-sid/claude-spellbook, 190 stars), Implementation Strategy (openai/openai-guardrails-js, 105 stars), Ak Dev New Guardrail Provider (yaalalabs/agent-kernel, 192 stars) and Migrating Openai Agents SDK To Pydantic AI (pydantic/pydantic-ai, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kangarooking (a GitHub user) maintains it in kangarooking/system-prompt-skills, which has 208 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on May 4, 2026.
Source: kangarooking/system-prompt-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.