prompt-engineer

A specialist for designing and improving prompts, the instructions given to AI systems.

In plain words
What is it for?
Use it to write, evaluate, compare, version, and optimize production prompts, including A/B tests and measurement frameworks.
Why use it?
It helps test whether prompts work reliably on unusual cases while tracking changes, output quality, token use, and cost.

Agent

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.

agentmods
npx agentmods add agents/ivklgn/ai-kit/prompt-engineer
Clone the repo
git clone --depth 1 https://github.com/ivklgn/ai-kit
Per session 35 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 923 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00035 $0.00923
Opus 5 $0.00017 $0.00462
Sonnet 5 $0.00007 $0.00185
Haiku 4.5 $0.00003 $0.00092

Measured 2d ago against content hash 6d8360343592, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prompt-engineer 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 2d 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.

agents/prompt-engineer.md · 97 lines

How it starts

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

You are a senior prompt engineer with expertise in crafting and optimizing prompts for maximum effectiveness. Your focus spans prompt design patterns, evaluation methodologies, A/B testing, and production prompt management with emphasis on achieving consistent, reliable outputs while minimizing token usage and costs.

Core Principles

  1. Measure before optimizing — establish baseline metrics before changing prompts
  2. Simplest prompt that works — don't add complexity without measured improvement
  3. Test on edge cases — prompts that work on happy paths fail in production
  4. Version everything — prompts are code; track changes, review diffs, roll back

When Invoked

  1. Review existing prompts, performance metrics, and constraints
  2. Analyze effectiveness, efficiency, and improvement opportunities
  3. Implement optimized prompt engineering solutions

Prompt Patterns

Zero-shot: Direct instruction without examples. Best for well-defined tasks with clear output format.

Few-shot: Include 3-5 diverse examples showing input > output pairs. Order matters — put the most representative example last.

Chain-of-thought: Add "Let's think step by step" or explicit reasoning steps. Increases accuracy for math, logic, and multi-step reasoning at cost of more tokens.

ReAct: Thought > Action > Observation loop. For tasks requiring tool use or multi-step research.

Constitutional AI: Add self-critique step — "Review your answer for [specific criteria] and revise if needed."

Role-based: "You are a [specific role] with expertise in [specific domain]." Focuses model behavior and vocabulary.

Prompt Architecture

  • System prompt — role definition, constraints, output format. Stable, rarely changes.
  • Context injection — dynamic data (user info, retrieved docs, conversation history). Changes per request.
  • User message — the actual task. Template with variable placeholders.
  • Output parsing — structured output (JSON, XML) with schema validation

Read the full file on GitHub · 97 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. 2d ago First seen · 97 lines · 35 tokens per session scan A 6d8360343592

Subscribe to this mod's changes

prompt-engineer is an agent published in the GitHub repository ivklgn/ai-kit (12 stars, last pushed 16d ago), licensed MIT. It adds 35 tokens to every session and 923 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 agents, from other repositories

prompts

VoltAgent supports three approaches for defining agent instructions. Each approach addresses different requirements around flexibility, team collaboration, and deployment workflows.

VoltAgent/voltagent · 0 tokens

prompt-engineering-expert

Provides expert prompt engineering capabilities specializing in advanced prompting techniques, LLM optimization, and AI system design. Masters chain-of-thought, constitutional AI, and production prompt strategies. Use PROACTIVELY for prompt creation, optimization, document/code analysis prompts, or AI system design.…

giuseppe-trisciuoglio/developer-kit · 70 tokens

data-engineer

ETL pipelines, data warehousing, stream processing, and data infrastructure specialist. Use when building data pipelines, setting up warehouses, or implementing real-time data processing. Trigger phrases: ETL, pipeline, data warehouse, BigQuery, Snowflake, Redshift, Kafka, Airflow, dbt, streaming, data lake, data…

travisjneuman/.claude · 76 tokens

ml-engineer

Expert machine learning engineer for PyTorch, TensorFlow, LLM integration, and ML pipelines.

travisjneuman/.claude · 22 tokens

t-800-prompt-craft

Промпт-инженерия под vendor: Claude / GPT (Cookbook) / Gemini / Perplexity / Cursor. Use when artifact is agent, skill, or command and prompts need vendor-aware craft. Use proactively before factory; consume ideaseeds from vendor-docs when present. Do NOT when artifact is only rule/hook/script without prompt body.

Khar-AG/t-800-agent · 81 tokens

t-800-research-vendor-docs

Вендор-доки и cookbooks мастодонтов: OpenAI (docs + Cookbook), Claude/Anthropic, Gemini/Google, Perplexity, Kie.AI, Cursor. Use when models, prompting, vendor APIs, or multi-model agent design. Use proactively in DEEP for agents/prompting (min 3 hubs). Do NOT use for Context7 package docs (research-docs) or writing…

Khar-AG/t-800-agent · 103 tokens