Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 14 KB
Bundled scripts: none
Path: skills/ai-llm/optimize-prompt-goal/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Overview
  2. Workflow
  3. Phase 0: Create Todo List (TodoWrite immediately)
  4. Phase 1: Input Validation
  5. Phase 2: Initial Verification
  6. Phase 3: Optimization Loop (Verifier-Driven)
  7. Optimization Techniques
  8. Goal Achievement Fixes
  9. Error Prevention Fixes
  10. Efficiency Fixes
  11. Resolution Strategy
  12. Phase 4: Output
  13. Key Principles
  14. Edge Cases
Ships with 1 file
  • metadata.json
Commands it runs
Optimize a prompt file for its goal
Optimize inline prompt
Optimize a skill file
More from claude-skill-registry
All skills →
About this skill
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.

Keep going