Transforms casual or voice-transcribed user requests into precise, AI-optimized prompts. Handles mixed languages, vague input, and ambiguity. Reduces task ex...
Turn messy input into structured, AI-optimized prompts on the first try.
Skip if: request is already specific, task is simple/low-stakes, or user says "just do it."
Google's prompt engineering framework — apply to every refined prompt:
ComponentWhat to includeTaskAction verb + specific target. "Summarize the sales report for Q1"ContextBackground, environment, constraints. "Account: jamesxu81@gmail.com, NZ timezone"ReferencesExamples, templates, tone samples. "Match this format: [example]"EvaluateHow to judge the output. "Flag any missing data"IterateHow to improve if result is off
Identify: Intent · Target · Constraints · Gaps · Language
Give the AI a role that matches the task:
"You are a senior Node.js engineer""You are a professional business writer""You are a data analyst specializing in sales metrics""You are a cybersecurity expert reviewing for vulnerabilities"Ask ONE focused question — not multiple.
api/validate.js or api/auth.js?"text
Persona: [Role + expertise relevant to the task]
Task: [Action verb + specific target]
Context: [System, environment, account, paths, dates]
References: [Examples, templates, or few-shot samples when format matters]
Requirements: [Constraints, scope, edge cases, what NOT to do]
Output: [Format, destination, success criteria, level of detail]
Advanced techniques — apply when appropriate:
"Think step by step:" for complex reasoningSee references/techniques.md for when/how to use each technique.
Before executing, verify:
See references/examples.md for complete worked examples including:
Anti-PatternFixToo many requirements in one promptSplit into chained sub-promptsVague success criteria ("write a good report")Define measurable criteriaNo edge case handlingAdd: "If X is missing, do Y"Tweaking temperature instead of the promptImprove prompt structure firstNegative instructions only ("don't do X")Tell it what TO do instead