prompt-engineering

prompt-engineering is a skill for Claude Code from berekvolgyipeter/dotclaude. It costs 127 tokens per session (1,309 once invoked), scanned A, original, MIT.

A set of guidance for writing and reviewing prompts that control AI models. It covers system instructions, agent workflows, tool-use prompts, reusable variables, examples, and common mistakes.

In plain words
What is it for?
Use it to create, edit, review, or refine prompts for agents, commands, multi-step workflows, and tool use.
Why use it?
It helps make instructions clearer and more reliable for the model interpreting them. It also provides ways to review or debug prompts that do not behave as intended.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions subagents.

Good fit Use it to create, edit, review, or refine prompts for agents, commands…

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

Made for: Claude Code.

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 prompt-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/berekvolgyipeter/dotclaude/prompt-engineering.svg)](https://agentmods.dev/skills/berekvolgyipeter/dotclaude/prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/berekvolgyipeter/dotclaude/prompt-engineering"><img src="https://agentmods.dev/badge/skills/berekvolgyipeter/dotclaude/prompt-engineering.svg" alt="Measured on agentmods" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,309 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.00127 $0.01309
Opus 5 $0.00063 $0.00655
Sonnet 5 $0.00025 $0.00262
Haiku 4.5 $0.00013 $0.00131

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

Security

Grade A, and why

prompt-engineering 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 6d 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.

skills/prompt-engineering/SKILL.md · 67 lines

How it starts

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

Prompt Engineering

Start here: what are you doing?

Task Go to
Writing a prompt from scratch Crafting prompts
Reviewing or debugging an existing prompt Prompt review checklist
Building an agentic system or multi-step workflow Agentic prompt patterns
Need deeper detail on a specific technique Going deeper — pick a source doc and WebFetch it

Crafting prompts

The one principle that matters most: explain why, not just what. Claude reasons better with context than rigid rules. Instead of NEVER use ellipses, write Your response will be read aloud by a text-to-speech engine, so never use ellipses since the TTS engine can't pronounce them. Claude generalizes from the reasoning.

Structure for any non-trivial prompt:

  1. Role/context — who is Claude, what's the situation
  2. Input — wrapped in descriptive XML tags (<code>, <document>, <query>)
  3. Task — what to do, with success criteria
  4. Output format — show one concrete example rather than describing the format in prose
  5. Use {{variables}} for dynamic content to make prompts reusable and testable

When adding examples (few-shot): use 3–5 diverse examples wrapped in <example> tags. Cover edge cases. Ask yourself: would a pattern-matcher pick up unintended shortcuts from these examples?

Prompt review checklist

Run through this when reviewing or debugging a prompt:

  • Over-constraining? — Too many MUST/NEVER/ALWAYS makes prompts brittle. If you see a wall of rigid rules, rewrite them as reasoned guidance. One explained rationale outperforms five shouted commands.
  • Kitchen-sink? — If the prompt handles discovery, analysis, and output in one block, break it into a chain. Each stage should have a clear input and output.
  • Missing examples? — One concrete input/output example beats a paragraph of format description. If the prompt describes a format without showing it, add an example.
  • Telling what NOT to do? — Reframe as positive instructions. "Don't use markdown" → "Write in flowing prose paragraphs." Claude steers better toward a destination than away from one.
  • Leftover aggressive language from older models? — Phrases like "CRITICAL: You MUST use this tool" or "If in doubt, use [tool]" cause overtriggering on current Claude models. Dial back to normal phrasing: "Use this tool when..."
  • Prefills on the last assistant turn? — Deprecated in Claude 4.6. Use direct instructions, structured outputs, or XML output tags instead. See migration patterns in the prompting best-practices doc listed under Going deeper.
  • Vague action language? — "Can you suggest changes?" makes Claude suggest rather than act. "Change this function to..." makes it act. Be explicit about whether you want analysis or action.

Read the full file on GitHub · 67 lines

Files

What ships with it

1 file 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. 6d ago First seen · 67 lines · 127 tokens per session scan A eeff0adc6872

Subscribe to this mod's changes

prompt-engineering is a skill published in the GitHub repository berekvolgyipeter/dotclaude (2 stars, last pushed 25d ago), licensed MIT. It adds 127 tokens to every session and 1,309 once invoked, about $0.0006 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

shipkit-prompt-audit

Audit LLM prompt pipeline architecture — decomposition, parallelization, chain integrity, schema validation, fallback paths. Finds structural issues no linter catches.

stefan-stepzero/shipkit · 36 tokens

nativeprompt

A prompt editor that adapts a user's request to the rules of a selected coding model, such as Claude Code, Codex, Gemini CLI, or GPT-5.

edvardgrishin27/nativeprompt · 147 tokens

software-ai-integration

Applies production AI integration patterns for chat, structured output, guardrails, provider routing, and AI UX. Use when adding LLM-powered features to an application.

vasilyu1983/AI-Agents-public · 38 tokens

ai-prompt-engineering

Prompt engineering for production LLMs — structured outputs, evals, RAG, tool workflows, multimodal prompting, and safety. Use when designing, debugging, or shipping prompts.

vasilyu1983/AI-Agents-public · 43 tokens

semantic-compress

Make an LLM-directed document smaller while preserving what it does. Two modes: a local span-level core->pointer pass, and an A/B-validated distill loop that produces the smallest document that behaves the same as the original. Point at core knowledge the model already holds (a concept name activates it); keep…

bjcoombs/ai-native-toolkit · 176 tokens

ai-observability-promptfoo

Testing and evaluation framework for LLM prompts and applications -- promptfooconfig.yaml, assertions, model-graded evals, red teaming, CI/CD integration, custom providers, and comparative evaluation.

agents-inc/skills · 46 tokens