prompt-optimizer

Analyze raw prompts and rewrite them into Codex-ready instructions with workflow and acceptance criteria.

Updated Jun 24, 2026
One-click install
npx skills add https://github.com/mostafa-ismail-2004/codex-plugin --skill prompt-optimizer-mostafa-ismail-2004
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-optimizer
Source: https://github.com/mostafa-ismail-2004/codex-plugin/tree/main/skills/prompt-optimizer
Command: npx skills add https://github.com/mostafa-ismail-2004/codex-plugin --skill prompt-optimizer-mostafa-ismail-2004

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps users transform a vague or incomplete prompt into a clear, actionable request that fits Codex workflows. It identifies intent, gaps, scope, and missing context so the user gets a stronger prompt instead of a direct execution.

Core Features & Use Cases

  • Prompt analysis: Breaks down the original request into intent, scope, and workflow needs.
  • Codex component matching: Recommends the right commands, skills, and agents for the task.
  • Clarification handling: Detects missing context such as tech stack, testing needs, and acceptance criteria.
  • Optimized output: Produces a full ready-to-paste prompt and a shorter quick version for experienced users.

Quick Start

Paste your draft prompt and ask this Skill to optimize it for Codex.

Frequently Asked Questions about prompt-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize a vague prompt for coding tasks?

To optimize a vague prompt, this Skill analyzes the raw request to identify intent, scope, and missing context, then rewrites it into clear, actionable instructions with defined acceptance criteria.

What is prompt optimization for AI workflows?

Prompt optimization for AI workflows is the process of refining incomplete requests into structured plans that specify tech stack, testing needs, and workflow steps for reliable execution.

How do I clarify missing context in an AI prompt?

To clarify missing context, the Skill detects gaps in your draft such as unspecified testing requirements or tech stack details and explicitly requests them before generating the final output.

Can I get a shorter version of an optimized prompt?

Yes, you can get a shorter version. The Skill produces a full ready-to-paste optimized prompt alongside a condensed quick version designed for experienced users.

Does prompt optimization recommend commands and agents for tasks?

Yes, prompt optimization recommends commands and agents. It matches your clarified intent to appropriate commands, skills, and agents while suggesting model selection for the task.

What is the best way to structure a prompt for research and testing?

The best way to structure a prompt for research and testing is to define explicit intent, workflow steps, and acceptance criteria, which this Skill generates automatically from your draft.