Prompt Optimizer (EARS)
Turns vague requests into precise, testable specifications and structured prompts using EARS syntax.
What it does
Rewrites loose requests like "build me a dashboard" into rigorous specs using EARS (Easy Approach to Requirements Syntax), a requirements methodology from Rolls-Royce. It runs a six-step workflow:
- Diagnose weaknesses in the original ask (too broad, missing triggers, unmeasurable wording)
- Convert to the five EARS patterns (
When <trigger>, the system shall <action>) - Ground the spec in domain theories (GTD, BJ Fogg's B=MAT, Gestalt, Zero Trust — 40+ catalogued)
- Extract concrete examples with real data, including error and edge cases
- Generate a full Role / Skills / Workflows / Examples / Formats prompt
- Present results as original → issues → EARS spec → enhanced prompt
Reference files (ears_syntax.md, domain_theories.md, examples.md, advanced_techniques.md) load only on demand, keeping context usage lean.
Who it's for
- Anyone whose AI-generated code keeps missing the mark because the request was fuzzy
- PMs and BAs writing PRDs or user stories that must be testable
- People who want to learn prompt engineering systematically instead of by guesswork
- Teams formalizing non-functional requirements or multi-stakeholder needs
Examples
Example 1 — Anti-procrastination app
In: "Create a reminder app with task management"
Out: atomic requirements such as "When a deadline is within 30 minutes AND the user has not started, the system shall send a notification with a sound alert", plus GTD/BJ Fogg grounding and a ready-to-run prompt
Example 2 — Password reset security
In: "I need a forgot-password flow"
Out: conditional and unwanted-behavior EARS statements for token TTL, retry limits and audit logging, justified by Zero Trust and Defense in Depth
Example 3 — E-commerce product page
In: "Make the product page look nice"
Out: layout rules from Hick's Law and Gestalt principles, realistic data samples (Laptop, $999, stock 15) and a deliverable checklist
· · · Install guide · · ·
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the prompt-optimizer folder from the GitHub repo daymade/claude-code-skills into my ~/.claude/skills/prompt-optimizer/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/daymade/claude-code-skills.git && mkdir -p ~/.claude/skills && cp -r claude-code-skills/prompt-optimizer ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal (Terminal on macOS/Linux, Git Bash or WSL on Windows).
- Create the skills directory if it doesn't exist:
mkdir -p ~/.claude/skills - Clone the repository:
git clone https://github.com/daymade/claude-code-skills.git - Copy just this skill:
cp -r claude-code-skills/prompt-optimizer ~/.claude/skills/ - Verify the
references/folder came along:ls ~/.claude/skills/prompt-optimizer - Restart Claude Code, then say something like "optimize this prompt/requirement" to trigger the skill.
- If it doesn't activate, run
/skillsto confirm it was detected.