Refine prompt

From iliaal/whetstone · View interactive version

Refine prompt is an AI agent skill from the GitHub repository iliaal/whetstone. Transforms vague or rough prompts into precise, structured AI instructions. Use when asked to "refine prompt", "improve prompt", "make this prompt better", "promptify", "optimize prompt", "rewrite prompt", "enhance prompt", or "sharpen instructions".

How to use this skill

Skill file

Refining Prompts

Process

  1. Assess — Identify what the prompt is missing:

| Element | Check |

|---------|-------|

| Task | Is the core action explicit and unambiguous? |

| Constraints | Are length, format, tone, and scope defined? |

| Output format | Does it specify the expected structure? |

| Context | Does the model have enough background to act? |

| Examples | Would a demonstration clarify the expected output? |

| Edge cases | Are failure modes and boundary conditions addressed? |

  1. Rewrite — Transform into specification language: precise, imperative, no filler. Treat the prompt as a spec, not conversation.
  1. Validate — Check the rewrite against the assessment table. Every gap identified in step 1 must be addressed.

Rules

Anti-Patterns

| Problem | Fix |

|---------|-----|

| Vague verbs ("look into", "deal with") | Replace with concrete actions ("list", "compare", "extract") |

| Missing output spec | Add explicit format section with example structure |

| Examples contradict instructions | Align examples to match every stated rule |

| Over-engineered from the start | Strip to simplest working version, then add complexity only where output quality requires it |

| Prompt exceeds context with examples | Limit to 2–3 diverse examples; use one simple, one edge case |

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.