Skip to main content

how-few-shot-demonstrations-affect

Design prompt-based LLM safety defenses using optimal few-shot strategies. Applies the finding that few-shot demonstrations enhance Role-Oriented Prompts (RoP) but degrade Task-Oriented Prompts (ToP). Use when: 'harden my system prompt against jailbreaks', 'add few-shot safety examples', 'design a defense prompt', 'improve LLM safety alignment', 'protect my chatbot from prompt injection', 'write a safe system prompt with examples'.

Jump to install

Source facts

Repository
ndpvt-web/arxiv-claude-skills
Last source activity
February 13, 2026 at 09:38
Detected SKILL.md language
English
Stars
14
Forks
3

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.