optimize-prompt-goal
Optimizes prompts for goal effectiveness - ensures instructions serve the stated goal, prevents missteps, improves efficiency. Use when asked to optimize a prompt for its goal, improve goal alignment, or make a prompt more effective at achieving its purpose.
npx skills add majiayu000/claude-skill-registry --skill optimize-prompt-goal --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Optimize Prompt Goal Iteratively optimize prompt for alignment with stated goal and likelihood of achieving intended outcomes through analysis and verification loops. ## Overview This skill transforms goal-misaligned prompts into effective ones through: 1. **Verification First** - `prompt-goal-verifier` checks for issues before any changes 2. **Optimization** - Apply targeted fixes based on verifier feedback 3. **Re-verification** - Verify fixes, iterate if issues remain (max 5 iterations) 4. **Output** - Atomic replacement only after verification passes **Loop**: Read → Verify → (Exit if optimal) → Optimize based on feedback → Re-verify → (Iterate if issues) → Output **Key principle**: Don't try to optimize in one pass. The verifier drives all changes - if it finds no issues, the prompt is already optimal. **Required tools**: This skill requires Task tool to launch the verifier agent. If Task is unavailable, report error: "Task tool required for verification loop." This skill uses TodoWrite to track progress. If TodoWrite is unavailable, track progress internally and proceed without external todo tracking. ## Workflow ### Phase 0: Create Todo List (TodoWrite immediately) Create
- Overview
- Workflow
- Phase 0: Create Todo List (TodoWrite immediately)
- Phase 1: Input Validation
- Phase 2: Initial Verification
- Phase 3: Optimization Loop (Verifier-Driven)
- Optimization Techniques
- Goal Achievement Fixes
- Error Prevention Fixes
- Efficiency Fixes
- Resolution Strategy
- Phase 4: Output
- Key Principles
- Edge Cases
Optimize a prompt file for its goal Optimize inline prompt Optimize a skill file
What does the optimize-prompt-goal skill do?
Optimizes prompts for goal effectiveness - ensures instructions serve the stated goal, prevents missteps, improves efficiency. Use when asked to optimize a prompt for its goal, improve goal alignment, or make a prompt more effective at achieving its purpose.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill optimize-prompt-goal --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
