Prompt LibraryAgents

Agent Safety Guardrail Specification Prompt

Write explicit safety rules an agent must obey at every turn.

The prompt

Draft a guardrail spec for the agent described below. Cover:
- Actions that are forbidden (never do X).
- Actions that require human approval (ask before Y).
- Data that must never leave the context (PII, secrets).
- Maximum autonomous steps before a checkpoint.
- How to behave when a tool returns an unexpected schema.

Return as a numbered list the agent can be instructed to follow verbatim.

Agent role: {{role}}
Environment: {{environment}}

Replace the {{fields}} with your own context and tighten the rules to match your domain.

Share this prompt