llm-prompting

llm-prompting is a skill for Claude Code, Codex from vikasudasi/skill-vault. It costs 32 tokens per session (1,495 once invoked), scanned A, original, Apache-2.0.

A guide to writing reliable prompts for large language models (LLMs), systems that generate text from instructions. It covers roles, examples, constraints, input placement, output formats, and a repeatable evaluation process.

In plain words
What is it for?
Use it when designing prompts for structured or free-form output, adding examples, separating system and user instructions, or checking whether prompt changes cause regressions.
Why use it?
It reduces inconsistent or poorly formatted model answers by treating prompts as something that needs clear design and testing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when designing prompts for structured or free-form output, adding examples, separating system and user instructions, or checking whether prompt changes cause regressions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/vikasudasi/skill-vault/llm-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 vikasudasi/skill-vault --skill llm-prompting
Clone the repo
git clone --depth 1 https://github.com/vikasudasi/skill-vault

Made for: Claude Code, Codex.

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 llm-prompting

README.md
[![agentmods](https://agentmods.dev/badge/skills/vikasudasi/skill-vault/llm-prompting/github.svg)](https://agentmods.dev/skills/vikasudasi/skill-vault/llm-prompting)
Your own site
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/llm-prompting"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/llm-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 llm-prompting

Your own site · 80×15
<a href="https://agentmods.dev/skills/vikasudasi/skill-vault/llm-prompting"><img src="https://agentmods.dev/badge/skills/vikasudasi/skill-vault/llm-prompting.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,495 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.
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.00032 $0.01495
Opus 5 $0.00016 $0.00747
Sonnet 5 $0.00006 $0.00299
Haiku 4.5 $0.00003 $0.00150

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

Security

Grade A, and why

llm-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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/prompting_examples.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skill_vault/data/skills/llm-prompting/SKILL.md · 132 lines

How it starts

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

Effective LLM Prompting

Use when getting an LLM to produce reliable output — structured or free-form — rather than hoping a vague instruction happens to work. Prompts are code: they drift, they regress, and they need tests.

Pair this with the llm-json-output skill when the target must be machine-parseable JSON. Rule of thumb established there: if the provider supports a native structured-output / JSON-schema mode, use that first and treat free-form prompting as the fallback. This skill is about making the fallback (and any free-form generation) as reliable as possible.

The five-part skeleton

  1. Role — one line of expertise/framing: "You are a senior Python reviewer."
  2. Task — one clear imperative sentence stating the deliverable.
  3. Input — the data the model operates on (small, self-contained, as ground truth).
  4. Output format — exact schema, delimiters, or shape; state "no other text".
  5. Few-shot examples — 2-3 ideal in/out pairs only when ambiguity exists.

Worked example, applied end-to-end

Goal: extract {port, enabled, name} from a config blob, drift-free.

[SYSTEM]
You are a config parser. Extract exactly three fields from the input into a
JSON object. Follow the schema, never invent values, never add prose.

[USER]
Input:
  service: metrics, listen: 0.0.0.0:9100, tls: off
Return exactly: {"name": string, "port": int, "enabled": bool}
Example: "grafana" -> {"name": "grafana", "port": 3000, "enabled": true}

Then validate: json.loads, type-check the three fields, and if anything is missing or malformed re-prompt with the exact error (see llm-json-output's retry loop). The negative example below ("tls: off" → enabled: false) sharpens behavior more than a second positive does — show one counter-case when the mapping is non-obvious.

Decision table: which prompting mode when

Mode When Why
Native structured output / JSON-schema Provider supports it and output is machine-read Constrains generation; no parsing hacks. Always first choice for llm-json-output work.
Zero-shot One obvious task, correct output is unambiguous Cheapest; no example tokens; fewer chances to overfit
Few-shot (2-3) Ambiguous mapping, custom format, or rare edge, free-form output Shows the exact shape; cost is example tokens and overfitting risk
Choose-then-run (agentic) Task needs search/tools first Same skeleton, but input comes from tool results, not the prompt

Read the full file on GitHub · 132 lines

Files

What ships with it

2 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. 9d ago First seen · 132 lines · 32 tokens per session scan A 195a2073c48e

Subscribe to this mod's changes

llm-prompting is a skill published in the GitHub repository vikasudasi/skill-vault (0 stars, last pushed 25d ago), licensed Apache-2.0. It adds 32 tokens to every session and 1,495 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-31.

Related

Other skills, from other repositories

Prompt Refiner

Improves AI prompts to be clearer, more specific, and produce more consistent outputs.

Notysoty/openagentskills · 21 tokens

prompt-engineering

Master advanced prompt engineering techniques to maximize LLM performance, reliability, and controllability in production. Use when optimizing prompts, improving LLM outputs, designing production prompt templates, or building AI-powered features.

wpank/ai · 44 tokens

ai-engineering-toolkit

6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.

sickn33/agentic-awesome-skills · 47 tokens

prompt-master

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…

nidhinjs/prompt-master · 78 tokens

llm-integration

LLM integration patterns for function calling, streaming responses, local inference with Ollama, and fine-tuning customization. Use when implementing tool use, SSE streaming, local model deployment, LoRA/QLoRA fine-tuning, or multi-provider LLM APIs.

yonatangross/orchestkit · 58 tokens

forensic-prompt-compiler

Forensic image-to-prompt compiler for image generation models. Use this skill whenever the user wants to: convert/describe an existing image into a generation prompt, reconstruct a scene as a prompt, generate prompts from reference images for AI image tools (Midjourney, FLUX, Stable Diffusion, DALL-E, or any diffusion…

AnastasiyaW/codex-claude-code-config · 218 tokens