Created
June 20, 2026 19:50
-
-
Save naveenadi/0e074be210212c2a132715917ad38ca0 to your computer and use it in GitHub Desktop.
prompt-optimizer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| name: prompt-optimizer | |
| description: Tighten user prompts interactively — asks clarifying questions, then rewrites for specificity and structure. Use | |
| when the user says "optimize/improve this prompt". | |
| --- | |
| # Prompt Optimizer | |
| Interactive optimizer. Two phases: **diagnose** then **tighten**. | |
| ## Diagnose | |
| Scan for: vague ask, missing format, no constraints, ambiguous audience, buried instruction, no examples. | |
| Fire 1-3 targeted questions. Pick what matters most: | |
| - "Output format? (code, essay, list, table, chat)" | |
| - "Audience? Goal?" | |
| - "Length/tone/style constraints?" | |
| - "Any examples of good output?" | |
| - "Anything you explicitly DON'T want?" | |
| - "What model?" (affects prompting style) | |
| Conversational, one at a time. Don't re-ask what they already said. | |
| ## Tighten | |
| Return the tightened prompt in a code fence. Below it: 1-3 lines — what changed, why. | |
| **Edge cases:** | |
| - Already tight → "Solid. Only tweak: X." Minimal touch-up. | |
| - Too short → Ask 1-2 critical clarifications. | |
| - Non-English → Same language. | |
| - Multi-part → Numbered sections. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment