prompt-optimizer

prompt-optimizer is a skill for Claude Code, Codex from drvoss/everything-copilot-cli. It costs 54 tokens per session (1,030 once invoked), scanned A, original, MIT.

A prompt-writing tool that turns a rough idea or vague task into one finished prompt ready to paste into a chat-based language model. It produces a clear output shape without blanks or placeholders.

In plain words
What is it for?
Use it to rewrite, improve, or complete prompts for Copilot, Claude, Codex, or another chat-based language model.
Why use it?
It removes the effort of structuring an incomplete request and makes the intended result clearer to the model. It is for chat prompts, not API settings or agent configuration files.

Skill for Claude CodeCodex

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 skills/drvoss/everything-copilot-cli/prompt-optimizer
Any agent
npx skills add drvoss/everything-copilot-cli --skill prompt-optimizer
Clone the repo
git clone --depth 1 https://github.com/drvoss/everything-copilot-cli

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/prompt-optimizer.svg)](https://agentmods.dev/skills/drvoss/everything-copilot-cli/prompt-optimizer)
Your own site
<a href="https://agentmods.dev/skills/drvoss/everything-copilot-cli/prompt-optimizer"><img src="https://agentmods.dev/badge/skills/drvoss/everything-copilot-cli/prompt-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,030 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00054 $0.01030
Opus 5 $0.00027 $0.00515
Sonnet 5 $0.00011 $0.00206
Haiku 4.5 $0.00005 $0.00103

Measured yesterday against content hash 1af3c58c848f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 yesterday.

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.

skills/workflow/prompt-optimizer/SKILL.md · 145 lines

How it starts

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

Prompt Optimizer

Prompt Optimizer turns rough prompting intent into a single reusable prompt that the user can paste directly into a chat interface.

This is for chat-interface prompts only - not API parameter tuning, system prompts, agent files, or full promptware design.

When to Use

  • The user says "rewrite this prompt", "improve this prompt", or "turn this into a prompt"
  • The user has a half-formed idea and wants a strong prompt instead of a direct answer
  • The user pasted a draft prompt and wants it sharpened for quality, structure, or clarity
  • The user wants a reusable prompt they can send to Copilot, Claude, Codex, or another chat LLM

When NOT to Use

Instead of prompt-optimizer Use
The user wants the answer to the task right now answer directly
Designing context packs or task briefs for agents context-engineering
Generating a new SKILL.md for this repository skill-creator

Two Hard Rules

1. No placeholders

Do not output blanks like:

  • [insert X]
  • {topic}
  • <your input here>

The result must be ready to send as-is. No brackets, braces, fill-in-the-blank tokens, or other placeholder syntax should survive in the final prompt.

2. Always ship a finished prompt

There are only two acceptable modes:

  • Case A - real content was provided: bake that content directly into the final prompt
  • Case B - only the task type was described: write a self-contained prompt that asks the next-model turn for the missing inputs

In both cases, the user should be able to copy, paste, and send immediately.

Workflow

1. Identify the real goal

Before rewriting, decide:

  • what output the user wants
  • who the output is for
  • what constraints matter
  • whether this is Case A or Case B

2. Choose the right amount of structure

Use simple prose for simple tasks. Use sections or tags only when the task is complex enough to benefit from them.

Good structure helps. Unnecessary ceremony hurts.

Read the full file on GitHub · 145 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. yesterday First seen · 145 lines · 54 tokens per session scan A 1af3c58c848f

Subscribe to this mod's changes

prompt-optimizer is a skill published in the GitHub repository drvoss/everything-copilot-cli (45 stars, last pushed 8d ago), licensed MIT. It adds 54 tokens to every session and 1,030 once invoked, about $0.0003 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-09-03.

Related

Other skills, from other repositories

prompt-writer

Use when creating, reviewing, or revising prompts, system prompts, developer instructions, agent policies, prompt templates, eval prompts, or skill files consumed by LLMs and AI agents. Routes to OpenAI, Anthropic/Claude, or generic prompt-writing guidance based on the target model/provider.

SNIKO/agent-skills · 64 tokens

promptify

Transform user requests into detailed, precise prompts for AI models. Use when users say "promptify", "promptify this", or explicitly request prompt engineering or improvement of their request for better AI responses.

ivfarias/ceo · 43 tokens

prompt-engineer

Writes, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use when designing prompts for new LLM applications, refactoring existing prompts for better accuracy or token efficiency, implementing chain-of-thought or few-shot…

Jeffallan/claude-skills · 93 tokens

enhance-prompt

Transforms vague UI ideas into polished, Stitch-optimized prompts. Enhances specificity, adds UI/UX keywords, injects design system context, and structures output for better generation results.

google-labs-code/stitch-skills · 41 tokens

prompt-optimization

Improve a prompt on the evaluations workbench through a measured loop. Score the baseline first, then duplicate the target column, form a hypothesis from failing rows, edit the copy's prompt draft, run, compare pass rate and cost, and repeat until the numbers hold. Use when the user asks to optimize or improve a…

langwatch/langwatch · 105 tokens

ideogram4

Prompting patterns for Ideogram 4 text-to-image — best-in-class in-image text rendering and exact color/layout control via structured JSON captions. Use when generating images that need legible on-image text (title cards, thumbnails, logos, signage, CTAs), precise brand colors, or controlled spatial layout. Triggers…

digitalsamba/claude-code-video-toolkit · 99 tokens