Prompt Optimizer Codex is a reusable skill package that transforms vague requests into execution-ready prompts and can optionally execute them end-to-end.
Core methods:
- Lightweight grounding research
- Targeted clarification questions
- EARS (Easy Approach to Requirements Syntax) requirement rewriting
- DevBooks-style phased routing and acceptance gates
- Autonomous execution loop with bounded retries
SKILL.md: Main skill contract and workflowreferences/ears-cheatsheet.md: EARS patterns and rewrite checklistreferences/clarification-playbook.md: Clarification-question strategyreferences/devbooks-integration-patterns.md: Routing and gate patterns borrowed from spec-coding workflowsreferences/high-quality-prompt-patterns.md: Extracted benchmark patterns from high-performing engineering promptsagents/openai.yaml: Agent metadata
- Clone this repository.
- Copy the folder into your Codex skills directory.
- Trigger it in chat with:
$prompt-optimizer-codex 优化下这个 prompt
optimize-only
- Output optimized prompt package only.
optimize-and-run
- Output optimized prompt package and execute it with an evidence-based report.
The skill outputs, in order:
- Original Request Summary
- Gaps Detected
- Clarification Questions (only when unresolved decisions remain)
- EARS Requirements
- Optimized Prompt
- Assumptions and Risks
- Execution Report (only in run mode)
- Requirements are testable and atomic.
- Conditions and thresholds are explicit.
- Ambiguous language is converted into measurable constraints.
- In run mode, each step includes acceptance evidence.
Run local validation:
pwsh ./scripts/validate.ps1- Add domain-specific prompt profiles
- Add bilingual output presets
- Add automated requirement-quality checks
- Add reusable execution report templates for common workflows
MIT