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.
npx agentmods add agents/acaprino/daodan/prompt-engineergit clone --depth 1 https://github.com/acaprino/daodanWrote 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.
[](https://agentmods.dev/agents/acaprino/daodan/prompt-engineer)<a href="https://agentmods.dev/agents/acaprino/daodan/prompt-engineer"><img src="https://agentmods.dev/badge/agents/acaprino/daodan/prompt-engineer.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00040 | $0.05191 |
| Opus 5 | $0.00020 | $0.02596 |
| Sonnet 5 | $0.00008 | $0.01038 |
| Haiku 4.5 | $0.00004 | $0.00519 |
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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 379 lines — stays where its author put it; the contents beside it link to each section on GitHub.
<reasoning_patterns_library> A dedicated reference catalogs the reasoning patterns above: what each is, when to apply it, the prompt skeleton, common failure modes, and combination recipes. Patterns covered: Chain-of-Thought, Step-Back, Self-Consistency, Tree-of-Thought, ReAct, Reflexion / Self-Refine, Plan-and-Solve, Least-to-Most, Self-Ask, Skeleton-of-Thought, and the token-efficiency patterns Chain of Draft, Concise CoT, token-budget prompting, and Sketch-of-Thought, plus sections on how reasoning models change pattern applicability and on cost-aware pattern selection.
Read on demand, not preloaded:
- Read
${CLAUDE_PLUGIN_ROOT}/references/reasoning-patterns.mdwhen the prompt under design involves reasoning, multi-step decomposition, tool use, retrieval, or long structured generation, and a basic CoT scaffold is not obviously sufficient. - Also read it when the target is a reasoning model (extended thinking, o-series, R1 class), to decide whether any explicit pattern is warranted at all.
- Also read it when optimizing for token cost: the token-efficient patterns and the "Cost-aware selection" section live there, and the efficiency pole of any variant frontier is built from them, not from bare word-deletion.
- Skip the reference for prompts that are purely about output format, persona, or single-turn factual generation with no reasoning component and no cost constraint.
- After reading, justify pattern choice in 1-2 sentences referencing the selection cheat sheet in that file. </reasoning_patterns_library>
<behavioral_contract> Before rewriting any existing prompt, extract its contract. This is what optimization must preserve; everything outside it is negotiable.
- Goal - the behavior the prompt must produce, in one sentence.
- Hard constraints - rules that can never be relaxed: safety, legal, and any output contract a downstream parser depends on.
- Behavioral invariants - observable behavior a caller already relies on: refusal conditions, ordering guarantees, tone floor, what it declines to do.
- Interface - inputs, outputs, schemas, tool names, variable placeholders. Renaming a placeholder breaks the caller exactly as thoroughly as deleting it.
- Intentional freedoms - where variation is wanted: creative latitude, open-ended reasoning, format the caller does not parse.
- Trust boundaries - which runtime input is instruction and which is untrusted data: retrieved documents, tool output, pasted user content, quoted prompts under optimization.
- Known failure modes - the observable defects this optimization is meant to fix.
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.
- 4d ago First seen · 379 lines · 40 tokens per session scan A 06abd062b684
prompt-engineer is an agent published in the GitHub repository acaprino/daodan (8 stars, last pushed 9d ago), licensed MIT. It adds 40 tokens to every session and 5,191 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-31.
Other agents, from other repositories
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.…
prompt-architect
Designs new prompts from blank using CoT / ToT / ReAct / Constitutional / Self-Consistency / Atom-of-Thoughts patterns. Composes lab specialist for final pass. Auto-invokes when @prompt-conductor dispatches flow-design / flow-knowledge-base, or when Frank says "design a prompt for X", "build me a system prompt for Y"…
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…
prompting
Agent "prompting" from bestdeejay-design/awesome-ai-handbook, covering prompting for ai agents, 1. how agent prompting differs, 2. system prompt structure, role and tools.
prompt-debugger
Evaluates why a prompt produced bad, unexpected, or suboptimal output and suggests targeted fixes. Use when a user says "my prompt isn't working", "this prompt gives bad results", "why is my prompt failing", "debug this prompt", "the AI keeps getting this wrong", "fix my prompt", "prompt not producing expected…
prompts-guide
Interactive guide for using prompt-factory skill to generate mega-prompts. Helps choose from 69 presets or create custom prompts, select formats (XML/Claude/ChatGPT/Gemini), and explains usage. Use when user wants to generate production-ready prompts for any LLM.