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 skills add theagenticguy/erpaval --skill meta-prompt-optimizergit clone --depth 1 https://github.com/theagenticguy/erpavalWrote 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/skills/theagenticguy/erpaval/meta-prompt-optimizer)<a href="https://agentmods.dev/skills/theagenticguy/erpaval/meta-prompt-optimizer"><img src="https://agentmods.dev/badge/skills/theagenticguy/erpaval/meta-prompt-optimizer.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.1 | $0.00230 | $0.02264 |
| Opus 5 | $0.00115 | $0.01132 |
| Sonnet 5 | $0.00046 | $0.00453 |
| Haiku 4.5 | $0.00023 | $0.00226 |
Grade A, and why
meta-prompt-optimizer 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 8d 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 — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Contents
| File | When to load |
|---|---|
references/opus-4-7-principles.md |
Core prompting principles and the 4.7-specific behavior shifts |
references/rubric.md |
Scoring rubric — shared with the prompt-critic agent |
references/rewriting-patterns.md |
Before/after transformation patterns with worked examples |
references/target-types.md |
Type-specific guidance (CLAUDE.md, agents, commands, Jinja2, Pydantic/Zod) |
The prompt-critic agent in this plugin shares the same rubric and is the right tool when the user wants a scored assessment without a rewrite.
Meta-prompt optimizer
Audit and rewrite prompts so they work well on Claude Opus 4.7. Every run produces two deliverables: a scored audit (what's wrong and why) and a rewritten prompt that applies the fixes.
The guidance is grounded in Anthropic's official prompting best-practices doc for the Claude 4.x family, with emphasis on the Opus 4.7-specific behavior shifts (literal instruction following, adaptive thinking, effort-driven calibration, dialed-back emphasis language, positive framing).
The three modes
The user's request determines which mode to run.
| Mode | Trigger | Output |
|---|---|---|
| Audit only | "review this prompt", "critique this", "is this any good?", "score this" | Structured audit report (pass/fail per rubric item + notes) |
| Audit + rewrite | "improve this", "rewrite for 4.7", "optimize this", "fix this prompt" | Audit report + revised prompt + changelog |
| Draft from intent | "write a system prompt that…", "draft an agent for…", "give me a CLAUDE.md for…" | New prompt written against the rubric from the start |
What ships with it
12 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- evals/evals.json 8.7 KB
- evals/fixtures/bad-agent.md 1.5 KB
- evals/fixtures/bad-claude-md.md 2.2 KB
- evals/fixtures/bad-jinja-template.j2 958 B
- evals/fixtures/bad-zod-tools.ts 1.1 KB runs code
- evals/fixtures/okayish-system-prompt.txt 662 B
- evals/trigger-eval-reviewed.json 4.1 KB
- evals/trigger-eval.json 4.1 KB
- references/opus-4-7-principles.md 9.6 KB
- references/rewriting-patterns.md 13 KB
- references/rubric.md 9.2 KB
- references/target-types.md 15 KB
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.
- 8d ago First seen · 185 lines · 230 tokens per session scan A 6bb2e596813b
meta-prompt-optimizer is a skill published in the GitHub repository theagenticguy/erpaval (28 stars, last pushed 3mo ago), licensed MIT. It adds 230 tokens to every session and 2,264 once invoked, about $0.0011 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.
Other skills, from other repositories
langchain-context
Answers questions about the LangChain Python ecosystem — the langchain-ai/langchain monorepo (langchain-core, v1 agents, langchain-classic, in-tree partners, text-splitters) plus companion repos LangGraph, LangSmith SDK, Deep Agents, out-of-tree partner monorepos langchain-google and langchain-aws, and the…
ai-integration
Guidelines for building AI-powered features into applications. Covers tool-use agent patterns, Anthropic API integration, prompt engineering for app-internal agents, and best practices. Referenced by planner and generators. Not directly user-invocable.
agent-platform-prompt-management
Manages and orchestrates prompts in Agent Platform. Use when you need to create, list, retrieve, version, or delete managed prompts in Agent Platform. Don't use for model training, model deployment to endpoints, or managing non-Agent Platform prompts.
ai-engineering-toolkit
6 production-ready AI engineering workflows: prompt evaluation (8-dimension scoring), context budget planning, RAG pipeline design, agent security audit (65-point checklist), eval harness building, and product sense coaching.
gemini-api-dev
Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation, video generation, streaming responses, background research tasks, function calling, structured output, or migrating from the old generateContent API. Covers SDK usage and best…
skill-meta-prompt
Craft better prompts using proven optimization techniques — use when your prompt needs refinement.