Prompt optimization

From proflead/codex-skills-library · View interactive version

Prompt optimization is an AI agent skill from the GitHub repository proflead/codex-skills-library. 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.

How to use this skill

Skill file

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:

Constraints

Example triggers

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.