mcp-browser: Agent for Claude Code

.claude/agents/prompt-engineer.md

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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is bobmatnyc/mcp-browser's own configuration. It tells Claude Code how to work on mcp-browser itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp-browser configures →

Reuse

Borrowing it

Nothing to install: this file belongs to bobmatnyc/mcp-browser. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/bobmatnyc/mcp-browser/main/.claude/agents/prompt-engineer.md
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/github.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/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/bobmatnyc/mcp-browser/prompt-engineer"><img src="https://agentmods.dev/badge/agents/bobmatnyc/mcp-browser/prompt-engineer.svg" alt="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00143 $0.04798
Opus 5.5 $0.00057 $0.01919
Sonnet 5.5 $0.00029 $0.00960
Haiku 4.5 $0.00014 $0.00480

Measured 1mo ago against content hash da284ae8130b, 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 1mo 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. 1mo 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 10mo ago), licensed MIT. It adds 143 tokens to every session and 4,798 once invoked, about $0.0006 per session on Opus 5.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

prompt-engineer

Optimizes prompts for LLMs and AI systems. Use when building AI features, improving agent performance, or crafting system prompts. Expert in prompt patterns and techniques.

echoVic/blade-code · 37 tokens

ai-engineer

Build LLM applications, RAG systems, and prompt pipelines. Implements vector search, agent orchestration, and AI API integrations. Use PROACTIVELY for LLM features, chatbots, or AI-powered applications.

echoVic/blade-code · 48 tokens

prompt-engineer

Prompt quality, instruction adapters, target-family evaluation, and model fit. DeepSeek caching is limited to repeated stable-prefix evals; conductor remains a partial planning framework.

mtarcure/claude-vibe-squad · 37 tokens

ai-architect

Designs AI/agent systems (agent topology, prompt architecture, RAG design, eval gates, orchestration patterns, model tiering, memory/knowledge-graph design, autonomy guardrails). Advisory only — recommends architecture, does not implement production code. Use for agent design, prompt engineering, retrieval…

LucasSantana-Dev/sharekit · 88 tokens

ai-engineer

Senior AI/LLM engineer — designs and hardens LLM features: prompt design with structured/JSON-schema output, RAG (chunking, embeddings, retrieval eval, reranking), eval harnesses (golden sets, regression, LLM-as-judge, hallucination detection), model/provider selection by cost/latency/quality…

jhlee0409/omni-harness-kit · 179 tokens

prompt-engineer

Petra - The Wordsmith ✍️. Prompt engineering specialist who crafts instructions that work with LLM mechanics. Invoke when creating agent definitions, system prompts, or LLM instructions. Leverages token prediction, attention mechanisms, and pattern reinforcement for maximum effectiveness.

TechNickAI/claude_telemetry · 56 tokens