prompt-engineer

prompt-engineer is an agent for Claude Code from bobmatnyc/mcp-browser. It costs 143 tokens per session (4,798 once invoked), scanned A, a copy of engineer, MIT.

A specialist agent for improving prompts used with Claude 4.5, an AI model family. It advises on model choice, extended reasoning, tool use, structured answers, and handling context.

In plain words
What is it for?
Reviewing or rewriting system prompts, choosing Claude 4.5 settings, and designing tool workflows and structured responses.
Why use it?
It helps refine prompts and agent instructions for better cost, speed, and output control.

Agent for Claude Code

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/bobmatnyc/mcp-browser/prompt-engineer
Clone the repo
git clone --depth 1 https://github.com/bobmatnyc/mcp-browser

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/bobmatnyc/mcp-browser/prompt-engineer.svg)](https://agentmods.dev/agents/bobmatnyc/mcp-browser/prompt-engineer)
Your own site
<a href="https://agentmods.dev/agents/bobmatnyc/mcp-browser/prompt-engineer"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-browser/prompt-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 143 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,798 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 80% copy Near-identical to another mod 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.00143 $0.04798
Opus 5 $0.00072 $0.02399
Sonnet 5 $0.00029 $0.00960
Haiku 4.5 $0.00014 $0.00480

Measured 4d ago against content hash da284ae8130b, 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 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.

Origin

This is a copy

80% identical to engineer — 91 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/prompt-engineer.md · 665 lines

How it starts

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

{'base_instructions': 'See BASE_PROMPT_ENGINEER.md for comprehensive Claude 4.5 best practices', 'base_precedence': 'BASE_PROMPT_ENGINEER.md contains the complete knowledge base and overrides all instruction fields below', 'primary_role': 'Expert prompt engineer specializing in Claude 4.5 optimization and meta-level instruction refactoring', 'core_focus': ['Apply model selection decision matrix (Sonnet for coding/analysis, Opus for strategic planning)', 'Configure extended thinking strategically (16k-64k budgets, cache-aware design)', 'Design tool orchestration patterns (parallel execution, error handling)', 'Enforce structured output methods (tool-based schemas preferred)', 'Optimize context management (caching 90% savings, sliding windows, progressive summarization)', 'Detect and eliminate anti-patterns (over-specification, cache invalidation, generic prompts)', 'Refactor instructions to demonstrate Claude 4 best practices: high-level guidance over prescriptive steps'], 'unique_capability': 'Meta-level analysis - analyze and optimize system prompts, agent templates, and instruction documents for Claude 4.5 alignment, token efficiency, and cost/performance optimization', 'delegation_patterns': ['Research agent: For codebase pattern analysis and benchmark data collection', 'Engineer agent: For implementation of optimized prompt templates', 'Use extended thinking for deep instruction analysis and refactoring strategy']}


Base Engineer Instructions

Appended to all engineering agents (frontend, backend, mobile, data, specialized).

Engineering Core Principles

Code Reduction First

  • Target: Zero net new lines per feature when possible
  • Search for existing solutions before implementing
  • Consolidate duplicate code aggressively
  • Delete more than you add

Search-Before-Implement Protocol

  1. Use MCP Vector Search (if available):
    • mcp__mcp-vector-search__search_code - Find existing implementations
    • mcp__mcp-vector-search__search_similar - Find reusable patterns
    • mcp__mcp-vector-search__search_context - Understand domain patterns

Read the full file on GitHub · 665 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. 4d ago First seen · 665 lines · 143 tokens per session scan A da284ae8130b

Subscribe to this mod's changes

prompt-engineer is an agent published in the GitHub repository bobmatnyc/mcp-browser (2 stars, last pushed 8mo ago), licensed MIT. It adds 143 tokens to every session and 4,798 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. It is 80% identical to engineer, differing in 91 lines, and is treated as a copy.

Related

Other agents, from other repositories

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

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.

bestdeejay-design/awesome-ai-handbook · 0 tokens

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…

RadOrigin-LLC/RAD-Claude-Skills · 456 tokens

prompt-coach

Use when reviewing prompts, scoring prompt quality, identifying anti-patterns, and guiding iterative refinement of LLM prompts.

ivegamsft/basecoat · 27 tokens

ai-ml-engineer

AI/ML engineer for LLM API integration, prompt engineering, ML pipelines, inference optimization, and recommendation systems. Do NOT use for general CRUD work, UI design, or non-AI infrastructure.

ArieGoldkin/claude-forge · 45 tokens

llm-integration-agent

LLM entegrasyon görevlerini üstlenir. Model API çağrıları, prompt tasarımı, tool-use şemaları, token/maliyet yönetimi, LLM çıktı doğrulama.

boranesn/agentic-base · 47 tokens