Skip to content
Back to skills

Prompting

ASecurity

Guide for writing effective system prompts for LLM agents. Use when creating or editing system prompts for applications, agent configurations, or development tools.

  • 883 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
developmentapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned May 27, 2026

npx -y skills add saffron-health/libretto --skill prompting --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prompting?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prompting
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/saffron-health-prompting/badge)](https://www.skillsdirectory.com/skills/saffron-health-prompting)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prompting
description: |
  Guide for writing effective system prompts for LLM agents. Use when creating or editing system prompts for applications, agent configurations, or development tools.
---

# Prompting

## Philosophy

LLMs are intelligent by default. System prompts set direction and impose constraints, not explain reasoning.

Start minimal. Observe failures. Add targeted fixes. Every instruction must justify its token cost by solving a real problem.

Do not explain existing capabilities, list obvious practices, add preventive instructions, or repeat information.

## Structure

Use markdown sections and paragraphs. Each section describes one behavior or constraint.

State what to do or avoid. Explain why if non-obvious. Show correct behavior with examples.

### Formatting

Headings up to level 3. Plain paragraphs. No bold, italics, or emojis. Code blocks for commands. Lists only for distinct enumerable items.

## Examples

Wrap examples in `<example>` tags with user/assistant prefixes. One pair per tag.

```
<example>
user: What's the capital of France?
assistant: Paris
</example>
```

Use brackets for tool actions instead of showing invocations:

```
<example>
user: Find all TODO comments
assistant: [searches codebase]
Found 3 TODOs: ...
</example>
```

## Include

Behaviors the model gets wrong by default. Domain constraints. Output format requirements. Safety boundaries. Tool integrations.

## Omit

Reasoning instructions. Problem-solving approaches. Common sense behaviors. Ethical guidelines. Capability descriptions.

## Iteration

Start minimal. Test with real inputs. Identify failures. Add targeted fixes. Remove unnecessary instructions.

Track which instructions prevent which failures. If you cannot identify the specific problem an instruction solves, remove it.

## Model-Specific Guidance

Consult references/ for model-specific patterns:

- references/claude.md - XML structure, countering sycophancy, trigger words, parallel execution
- references/gpt.md - Contradiction sensitivity, role hierarchy, verbosity control, metaprompting
- references/gemini.md - Conciseness, tool explanations, library checks, context placement
- references/codex.md - OpenAI Codex models, tool implementations, autonomy patterns, compaction

Files in this skill

  • SKILL.md2.2 KB
  • references/claude.md2.6 KB
  • references/codex.md32.3 KB
  • references/gemini.md2.3 KB
  • references/gpt.md2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.