ai-prompt-engineering

ai-prompt-engineering is a skill for Claude Code, Codex from vasilyu1983/AI-Agents-public. It costs 43 tokens per session (2,986 once invoked), scanned A, original, MIT.

A practical guide to designing prompts for production language-model systems. It covers structured answers, evaluations, retrieval-augmented generation, tool use, multimodal input, and safety.

In plain words
What is it for?
It is for designing, debugging, testing, hardening, and releasing prompts used with models, tools, or retrieved information.
Why use it?
It helps make prompts explicit about their inputs, expected output, failure behavior, and validation instead of relying on vague instructions.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

Part of the ai-agents plugin — 144 skills shipped together

Good fit It is for designing, debugging, testing, hardening, and releasing prompts used with models, tools, or retrieved information.

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

Made for: Claude Code, Codex.

Or install ai-agents, the plugin that ships this one along with the rest of its 144 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 ai-prompt-engineering

README.md
[![agentmods](https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/ai-prompt-engineering/github.svg)](https://agentmods.dev/skills/vasilyu1983/ai-agents-public/ai-prompt-engineering)
Your own site
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/ai-prompt-engineering"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/ai-prompt-engineering/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 ai-prompt-engineering

Your own site · 80×15
<a href="https://agentmods.dev/skills/vasilyu1983/ai-agents-public/ai-prompt-engineering"><img src="https://agentmods.dev/badge/skills/vasilyu1983/ai-agents-public/ai-prompt-engineering.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,986 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.00043 $0.02986
Opus 5.5 $0.00017 $0.01194
Sonnet 5.5 $0.00009 $0.00597
Haiku 4.5 $0.00004 $0.00299

Measured 1mo ago against content hash 44c8650defb6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-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 1mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/prompt_regression_runner.py, scripts/test_prompt_regression_runner.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.

skills/universal/ai-prompt-engineering/SKILL.md · 251 lines

How it starts

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

Prompt Engineering — Operational Skill

Route Elsewhere

  • agent architecture and orchestration -> ai-agents
  • retrieval quality and chunking -> ai-rag
  • model selection and prompt vs RAG vs fine-tune architecture -> ai-architecture-advisor
  • fine-tuning or distilling a model -> ai-llm
  • inference latency and cost optimization -> ai-llm-inference
  • deployment, monitoring, and platform controls -> ai-mlops

Quick Start

  1. Classify the prompt job: structured output, extraction, RAG, tool use, rewrite, classification, or release workflow.
  2. Start from a template or provider-native prompt feature rather than writing from scratch.
  3. Add explicit output and refusal rules.
  4. Add validation: schema checks, citation checks, post-tool checks, and failure handling.
  5. Add evals before calling the prompt production-ready.

Quick Reference

Cross-Model Notes

  • Prefer provider-native structured outputs, registries, evals, and prompt tooling where available.
  • Ask for final answers, checks, or brief justification, not visible chain-of-thought.
  • Treat retrieved context, tool outputs, and user documents as untrusted data.
  • Run only truly independent tool calls in parallel; keep writes and validation serialized.
  • Keep state compact and resilient to context compression.

Pattern Chooser

Need Pattern Core Controls
Machine-parseable output Structured output schema, JSON-only response, validation
Deterministic field extraction Extractor missing -> null, no transformation, exact schema
Retrieved factual answering RAG workflow relevance check, citation requirement, explicit missing-info behavior
Hidden reasoning Private reasoning / native thinking final answer only, no exposed chain-of-thought
Tool use Tool or agent planner plan, tool gating, validation after each call
Text transformation Rewrite and constrain meaning preservation, style and format rules
Classification or routing Decision tree mutually exclusive branches, stable output format
Prompt release Prompt ops versioning, eval gates, rollback path
Choosing prompt vs RAG vs fine-tune vs distill Escalation decision Prompt → RAG (knowledge gap) → Fine-tune (volume + stable task) → Distill (cost at scale). See references/prompt-vs-finetune.md.

Read the full file on GitHub · 251 lines

Files

What ships with it

31 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. 1mo ago Changed · -36 lines 44c8650defb6
  2. 2mo ago Changed · +3 lines 1c0660da1993
  3. 3mo ago First seen · 284 lines · 43 tokens per session scan A 55fe86a06be6

Subscribe to this mod's changes

ai-prompt-engineering is a skill published in the GitHub repository vasilyu1983/AI-Agents-public (101 stars, last pushed 1mo ago), licensed MIT. It adds 43 tokens to every session and 2,986 once invoked, about $0.0002 per session on Opus 5.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

ai-prompt-engineering compared with skills from other repositories

ai-prompt-engineering next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ai-prompt-engineeringvasilyu1983/AI-Agents-publicSkill1011mo agoMITA43Claude Code, Codex
cortex-prompttonone-ai/tononeSkill842d agoMITA55Claude Code
semantic-compressbjcoombs/ai-native-toolkitSkill37todayApache-2.0A176Claude Code
boost-modulesav/skillsSkill2919d agoMITA86Claude Code, Codex
prompt-engineeringberekvolgyipeter/dotclaudeSkill2yesterdayMITA127Claude Code
prompt-engineeringVersoXBT/claude-initial-setupSkill46mo agoMITA60Claude Code
claude-apiasgeirtj/system_prompts_leaksSkill74kyesterdayCC0-1.0A317Claude Code, Codex