ai-prompt-engineering

ai-prompt-engineering is a skill for Codex from vasilyu1983/AI-Agents-public. It costs 43 tokens per session (2,805 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 Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Claude Code; mentions Codex.

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: 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 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,805 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.02805
Opus 5 $0.00022 $0.01403
Sonnet 5 $0.00009 $0.00561
Haiku 4.5 $0.00004 $0.00281

Measured 12d ago against content hash 55fe86a06be6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/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.

frameworks/shared-skills/skills/ai-prompt-engineering/SKILL.md · 284 lines

How it starts

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

Prompt Engineering — Operational Skill

Use this skill for production prompt design: schema-first outputs, tool and RAG prompts, prompt hardening, evals, and release workflows. Keep it operational. If the main problem is architecture, retrieval quality, deployment, or inference cost, route to the deeper adjacent skill.

ASCII Flow

prompt job
  |
  v
pattern choice
  structured output | extraction | RAG | tool use | rewrite | classify | release
  |
  v
prompt contract
  inputs + role/task + context rules + output schema + refusal/failure behavior
  |
  v
validation
  schema checks + citation/tool checks + eval cases + regression gate
  |
  v
released prompt
  versioned artifact + rollout notes + rollback path

When to Use This Skill

  • designing or refactoring prompts for production LLM systems
  • structured outputs, extraction schemas, or response contracts
  • prompt debugging, prompt hardening, or prompt review
  • prompt evals, regression suites, and rollout criteria
  • tool-use or RAG prompt patterns
  • multimodal prompts for image, document, audio, or video inputs

Route Elsewhere

  • agent architecture and orchestration -> ai-agents
  • retrieval quality and chunking -> ai-rag
  • broader LLM lifecycle and model strategy -> 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

  • Pattern selection -> ## Pattern Chooser
  • Reusable prompt shapes -> ## Minimal Prompt Skeletons
  • Release hardening -> ## Production Checklist
  • Deeper references and templates -> ## Navigation

Read the full file on GitHub · 284 lines

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. 12d 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 (87 stars, last pushed 10d ago), licensed MIT. It adds 43 tokens to every session and 2,805 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

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

boost-modules

Create custom modules for Harbor Boost, an optimizing LLM proxy. Use when building Python modules that intercept/transform LLM chat completions—reasoning chains, prompt injection, structured outputs, artifacts, or custom workflows. Triggers on requests to create Boost modules, extend LLM behavior via proxy, or…

av/skills · 86 tokens

prompt-engineering

Expert prompt engineering guidance with proven techniques and anti-patterns. Invoke this skill whenever writing, editing, reviewing, or refining any prompt that will be interpreted by an AI model — system prompts, agent instructions, tool-use prompts, command templates, multi-step task prompts, or agentic workflows.…

berekvolgyipeter/dotclaude · 127 tokens

prompt-engineering

Prompt engineering patterns for Claude including system prompts, few-shot examples, chain-of-thought, structured output, templates, and prefilling. Use when the user is writing prompts, designing system instructions, extracting structured data, building prompt templates, or optimizing Claude responses for quality and…

VersoXBT/claude-initial-setup · 60 tokens

outlines

Outlines: structured JSON/regex/Pydantic LLM generation.

NousResearch/hermes-agent · 17 tokens

guidance

Constrain LLM output with grammars; guarantee valid JSON.

NousResearch/hermes-agent · 16 tokens