jailbreak-prevention

Installation
SKILL.md

Jailbreak Prevention and LLM Guardrails

Purpose

This skill equips the agent with advanced capabilities to identify and block adversarial prompt injection, jailbreaks, and context-window abuse. It implements multi-layered semantic filtering, heuristics, and response boundary validation to ensure that interactions strictly adhere to defined policies without leaking system instructions or producing harmful output.

Core Principles

  1. Defense in Depth: Employ multiple layers of checks (input, context, output) to catch evasions.
  2. Context Isolation: Use strong structural separators to delineate user input from system prompts.
  3. Fail-Safe Operations: In the event of a filter timeout or uncertainty, default to blocking the output gracefully.
  4. Continuous Evaluation: Red-team the prompt guardrails iteratively to identify zero-day bypasses.
  5. Least Privilege: Only grant the LLM the tools and context necessary to resolve the current query.
Installs
3
GitHub Stars
21
First Seen
Jun 29, 2026
jailbreak-prevention — j4flmao/agent-skills