add-guardrail
Installation
SKILL.md
Add guardrails to an agent: $ARGUMENTS
Before Starting
- Search OpenAI docs for guardrail patterns:
- Use
mcp__openai-docs__search_openai_docswith query "Agents SDK guardrails" for SDK-native guardrail support - Use
mcp__openai-docs__search_openai_docswith query "Agents SDK input validation" for request validation patterns
- Use
- Read the existing guardrail implementation:
{{AGENTS_DIR}}/shared/guardrails.ts— nonEmpty, maxLength, contentFilter, noErrors implementations{{AGENTS_DIR}}/shared/enhanced-agent-bridge.ts—applyInputGuardrails()andapplyOutputGuardrails()in the bridge pipeline
- Read the database schema for guardrail persistence:
{{SCHEMA_PATH}}— search foragent_guardrailsandagent_guardrail_assignmentstables
Guardrail Types
Input Guardrails
Validate user messages BEFORE they reach the agent. Return { passed: boolean, reason?: string }.