prompt-optimization

prompt-optimization is a skill for Claude Code, Codex from proflead/codex-skills-library. It costs 51 tokens per session (217 once invoked), scanned A, original, no licence file.

A prompt editor for making instructions to language models clearer and less ambiguous. A prompt is the request or set of instructions given to an AI model.

In plain words
What is it for?
Use it to optimize, refine, clarify, or rewrite prompts for better AI output.
Why use it?
It helps reduce misunderstandings and improve the quality of the model’s responses.

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/proflead/codex-skills-library/prompt-optimization
Any agent
npx skills add proflead/codex-skills-library --skill prompt-optimization
Clone the repo
git clone --depth 1 https://github.com/proflead/codex-skills-library

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/proflead/codex-skills-library/prompt-optimization.svg)](https://agentmods.dev/skills/proflead/codex-skills-library/prompt-optimization)
Your own site
<a href="https://agentmods.dev/skills/proflead/codex-skills-library/prompt-optimization"><img src="https://agentmods.dev/badge/skills/proflead/codex-skills-library/prompt-optimization.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 217 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00051 $0.00217
Opus 5 $0.00026 $0.00109
Sonnet 5 $0.00010 $0.00043
Haiku 4.5 $0.00005 $0.00022

Measured 5d ago against content hash e3a3208e3063, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

prompt-optimization 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 5d 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.

.codex/skills/prompt-optimization/SKILL.md · 34 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 5d ago First seen · 34 lines · 51 tokens per session scan A e3a3208e3063

Subscribe to this mod's changes

prompt-optimization is a skill published in the GitHub repository proflead/codex-skills-library (140 stars, last pushed 1mo ago), with no licence file. It adds 51 tokens to every session and 217 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-08-30.

Related

Other skills, from other repositories

encoding-fix-script-first

Enforce script-only text encoding fixes in any repository. Use when files contain mojibake, broken Cyrillic/UTF-8 text, or UTF-8 BOM issues, and require Codex to run the bundled scripts/fixmojibake.py instead of manual or ad-hoc encoding edits.

erida34/encoding-fix-codex-skill · 69 tokens

better-prompt

当用户明确要求"优化 prompt"、"改进提示词"、"润色指令"或"将简陋 prompt 转换为最佳实践版本"时使用。基于 OpenAI 和 Anthropic 官方最佳实践,对用户提供的简陋 prompt 进行结构化优化,输出符合社区标准的高质量版本。.

huangwb8/skills · 76 tokens

prompt-programming

当用户明确要求“把 prompt 改写成伪代码”“将提示词翻译成可编程自然语言”“输出具有程序结构的人类语言指令”或直接提到 prompt-programming 时使用。将用户原始 prompt 翻译为一种简洁、严谨、可组合的 Prompt Program 方言:形式上像假代码,语义上仍是人类自然语言。.

huangwb8/skills · 91 tokens

boostprompt

Use quando uma necessidade de negócio ou técnica precisar de discovery estruturado em pt-BR e de um prompt de implementação autocontido.

AirtonLira/boostprompt · 30 tokens

token-saver

Minimize token consumption & maximize prompt cache hit rate. Use when user asks to save tokens, reduce cost, improve cache hit rate, or be more concise.

lokikill123/codex-token-skills · 36 tokens

find-skills

检索已安装技能并给出使用方法。.

BigBlueBaby/codex2dsh · 15 tokens