prompting

prompting is a skill for Claude Code from saffron-health/libretto. It costs 31 tokens per session (455 once invoked), scanned A, original, MIT.

A guide for writing instructions that direct AI agents or language models. It explains how to state constraints, behaviors, examples, and output requirements clearly.

In plain words
What is it for?
Use it to create or revise system prompts for AI agents, development tools, and applications.
Why use it?
It helps avoid prompts that are too long, vague, or focused on capabilities the agent already has. Clear instructions make the agent's responses more consistent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: installed under .agents/ (shared by several agents); mentions Codex; mentions Gemini CLI.

Part of the libretto plugin — 24 skills shipped together

Good fit Use it to create or revise system prompts for AI agents, development tools, and applications.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/saffron-health/libretto/prompting
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add saffron-health/libretto --skill prompting
Clone the repo
git clone --depth 1 https://github.com/saffron-health/libretto

Made for: Claude Code.

Or install libretto, the plugin that ships this one along with the rest of its 24 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prompting

README.md
[![agentmods](https://agentmods.dev/badge/skills/saffron-health/libretto/prompting/github.svg)](https://agentmods.dev/skills/saffron-health/libretto/prompting)
Your own site
<a href="https://agentmods.dev/skills/saffron-health/libretto/prompting"><img src="https://agentmods.dev/badge/skills/saffron-health/libretto/prompting/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prompting

Your own site · 80×15
<a href="https://agentmods.dev/skills/saffron-health/libretto/prompting"><img src="https://agentmods.dev/badge/skills/saffron-health/libretto/prompting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 455 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.00455
Opus 5 $0.00015 $0.00228
Sonnet 5 $0.00006 $0.00091
Haiku 4.5 $0.00003 $0.00046

Measured 10d ago against content hash 9c7ca553edd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

prompting scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • prompting — 100% identical, 0 lines differ
.agents/skills/prompting/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 70 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 70 lines · 31 tokens per session scan A 9c7ca553edd2

Subscribe to this mod's changes

prompting is a skill published in the GitHub repository saffron-health/libretto (889 stars, last pushed 20d ago), licensed MIT. It adds 31 tokens to every session and 455 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

implementing-llm-guardrails-for-security

Implements input and output validation guardrails for LLM-powered applications to prevent prompt injection, data leakage, toxic content generation, and hallucinated outputs. Builds a security validation pipeline using NVIDIA NeMo Guardrails Colang definitions, custom Python validators for PII detection and content…

xalgorix/xalgorix · 143 tokens

few-shot-examples

Curated few-shot examples for construction AI tasks: classification, extraction, analysis. Domain-specific examples for improved LLM performance.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 30 tokens

prompt-templates

Reusable prompt templates for construction AI tasks: cost estimation, schedule analysis, document processing, BIM queries. Structured prompts for consistent results.

datadrivenconstruction/DDC_Skills_for_AI_Agents_in_Construction · 30 tokens

opik-optimizer

Optimize LLM prompts, tools, and agents in Opik using standardized optimizer workflows (prompt optimization, tool optimization, and parameter tuning), dataset/metric wiring, and result interpretation.

vincentkoc/dotskills · 41 tokens

langgraph

Build multi-agent AI systems with LangGraph — the low-level orchestration framework for stateful, graph-based agent workflows. Covers supervisor, swarm, and hierarchical multi-agent patterns; subgraph composition; state management (checkpointers/stores); persistence; evals; and production debugging. Reach for this…

magnus919/agent-skills · 100 tokens

prism

Consultant for NotebookLM steering prompt design. Optimizes Audio/Video/Slide/Infographic output quality through source preparation, prompt engineering, and Custom Goals persona design.

seaworld008/Commonly-used-high-value-skills · 37 tokens