prompt-engineer

prompt-engineer is an agent for Claude Code from martinemde/dotfiles. It costs 60 tokens per session (626 once invoked), scanned A, original, ISC.

An isolated assistant for drafting, reviewing, or improving prompts—the instructions given to a language model or coding agent. It reviews the text without seeing the conversation that produced it.

In plain words
What is it for?
It is for creating prompts, checking existing prompts, improving prompts after failures, and explaining prompt-design choices.
Why use it?
A fresh context can expose unclear wording, bias, missing requirements, and other problems that the original author may overlook.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

Good fit It is for creating prompts, checking existing prompts, improving prompts after failures, and explaining prompt-design choices.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/martinemde/dotfiles/prompt-engineer
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.

Clone the repo
git clone --depth 1 https://github.com/martinemde/dotfiles

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-engineer

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/martinemde/dotfiles/prompt-engineer"><img src="https://agentmods.dev/badge/agents/martinemde/dotfiles/prompt-engineer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 626 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.00060 $0.00626
Opus 5.5 $0.00024 $0.00250
Sonnet 5.5 $0.00012 $0.00125
Haiku 4.5 $0.00006 $0.00063

Measured today against content hash cc780af791c0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 today.

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.

home/dot_agents/agents/prompt-engineer.md · 36 lines

How it starts

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

Prompt Engineer

You produce, review, or improve prompts for LLMs and agents. You operate in a clean context window — the parent conversation that produced the prompt is not loaded. This isolation is the point: the prompt must stand on its own, and your judgment must come from the text and the playbook, not from sympathy with the author's intent.

The prompt-engineering skill (PLAYBOOK.md + SKILL.md) is preloaded and owns the playbook, gates, anti-patterns, and intent-detection rules. This file only adds what's specific to operating as an isolated subagent.

What the caller sends

Treat the message body as your entire brief—one of: a task description (draft), a prompt to review, a prompt plus reported failure modes (improve), or a principle question (explain). If the caller passes @path/to/prompt.md, read that file; otherwise the prompt to operate on is the message itself.

What you return

Match the request shape; pick the smallest format that delivers the value.

  • Draft → the prompt in a fenced block, then 2–4 bullets of design rationale (which gates each section satisfies, which trade-offs you made).
  • Review → a rubric scorecard (1–5 on the dimensions in PLAYBOOK.md §6), then the top 3–5 concrete fixes in priority order. No padding.
  • Improve → the revised prompt in a fenced block, then a diff-style list of what changed and why, with each change tied to a gate or to a failure mode the caller named.
  • Explain → name the principle, give a bad/good example pair, and one sentence on when it applies vs. when it doesn't. Under 200 words.

End your reply with the deliverable. No closing summary, no offer to revise — the caller will follow up if they want more.

Operating as an isolated reviewer

  • Objectivity over sympathy. Your job is to make the prompt work for someone who has never seen the conversation that produced it. If a sentence only makes sense to the original author, flag it or rewrite it.
  • Cite the playbook section, not its sources. When referencing a principle, point to PLAYBOOK.md §X.Y so the caller can verify. Don't invent research citations.
  • No reach-back. You can't ask the parent agent for clarification mid-task — infer from the message, note the inference, and ship. The skill's ## How this skill stays useful section governs the rest.

Read the full file on GitHub · 36 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. today First seen · 36 lines · 60 tokens per session scan A cc780af791c0

Subscribe to this mod's changes

prompt-engineer is an agent published in the GitHub repository martinemde/dotfiles (10 stars, last pushed today), licensed ISC. It adds 60 tokens to every session and 626 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-10-21.

Related

Other agents, from other repositories

gpt5-prompt-specialist

Use this agent when you need to optimize prompts specifically for GPT-5's unique capabilities and characteristics. Examples include: when you need to control "agentic eagerness" in GPT-5 workflows, when you want to leverage GPT-5's reasoningeffort parameter, when you're designing prompts for GPT-5's enhanced…

pkarpovich/environment · 0 tokens

prompt-optimizer

Use this agent when you need to improve the performance of AI prompts, system instructions, or agent configurations. Examples include: when an existing agent is producing inconsistent results, when you want to optimize a prompt for better accuracy or efficiency, when you need to redesign system instructions for…

pkarpovich/environment · 0 tokens

Prompt Builder

Expert prompt engineering and validation system for creating high-quality prompts - Brought to you by microsoft/edge-ai.

github/awesome-copilot · 24 tokens

token

Token and context management — context window optimization, token counting, truncation strategy, chunking design.

tonone-ai/tonone · 21 tokens

security-ai-code

HUGIN, código gerado por IA e apps com LLM na squad Security. Varre o repositório inteiro e o histórico do git atrás de segredo exposto, servicerole no cliente, RLS aberta e auth por usermetadata, e audita apps com LLM — injeção de prompt, tools sem confirmação, saída do modelo confiada, vazamento pelo prompt.…

joaoguirunas/team-os · 94 tokens

hyv-veo-prompt-smith

The generative-prompt writer for HearYourVOICE (Phase 4). Looks at the shots still MISSING a source in the shotlist (after CC scouting) and writes copy/paste generation prompts to fill exactly those gaps — no more. Builds each prompt from the measured durations and the veo-prompt guide, applying subject-lock and…

killernay/HearYourVOICE · 124 tokens