OpenParable
Skip to content
← Back to skills

Prompt Optimization

Agent Building
prompt-optimization

Prompt Optimization is an Agent Skill for agent building published in the proflead/codex-skills-library repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Improve and rewrite user prompts to reduce ambiguity and improve LLM output quality. Use when a user asks to optimize, refine, clarify, or rewrite a prompt for better results, or when the request is about prompt optimization or prompt rewriting.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/proflead/codex-skills-library/blob/HEAD/.codex/skills/prompt-optimization/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/prompt-optimization, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Prompt Optimization

Goal

Improve the user's prompt so Codex (or any LLM) produces better output while preserving intent.

Workflow

  1. Read the user's original prompt carefully.
  2. Identify ambiguity, missing context, or unclear intent.
  3. Rewrite the prompt to remove ambiguity and provide clear instructions.
  4. Retain the core intention of the user's request.
  5. Add relevant constraints (format, length, style) when helpful.

Output format

Provide:

  • Improved prompt
  • Short explanation of what was improved

Constraints

  • Do not assume domain knowledge not in the original prompt.
  • Preserve user intent.

Example triggers

  • “Draft me an email asking for feedback.”
  • “Turn this into a daily to-do list.”
  • $automating-productivity