Improve a prompt
Diagnoses why a prompt gives weak or inconsistent results and rewrites it with clear context, task, constraints and output format while keeping its intent. Use on any prompt for any AI assistant.
Most weak prompts fail for a few reasons that current guidance from the major model providers agrees on: the task is implicit, the context the model needs (audience, purpose, what good looks like) is missing, instructions conflict or are buried, the output format is undefined, inputs are not separated from instructions, and there are no examples where the format is subtle. Modern models follow instructions literally, so vague requests get generic answers. Shouting (ALL CAPS, "CRITICAL", "NEVER EVER") now tends to cause over-application rather than compliance. A better prompt is usually clearer and more specific, not longer.
Improve this prompt for :
Only if [PROBLEM] is given: What goes wrong today:
- Work out the prompt's intent: the task, the audience of the output and what a good result looks like. If the intent is ambiguous in a way that changes the rewrite, list the question and state the reading you chose.
- Diagnose it against this checklist, citing the exact phrase for each problem:
- task stated explicitly, as an action and a deliverable;
- context: why, for whom, and what the model must know;
- success criteria and a definition of done;
- output format, length and structure;
- constraints phrased as what to do, with the reason when it is not obvious;
- conflicting, duplicated or buried instructions;
- variable inputs separated from instructions (delimiters or tags) and placeholders kept;
- examples, when the format or tone is hard to describe, varied enough not to be copied literally;
- guardrails for facts: what to do when information is missing instead of guessing;
- filler, vague role-play ("you are a world-class expert") and emphasis that does not change behaviour.
- Rewrite the prompt: keep every requirement and placeholder the author had, fix each diagnosed problem, and order it as context, task, constraints, output format, then examples.
- Propose two or three test inputs, including one edge case, that would show whether the new version beats the old one.
- Keep the author's intent, scope and placeholders exactly; do not add features, tools or requirements they did not ask for. Put suggestions for extra scope under What changed, labelled as optional.
- Make the prompt as short as it can be while still complete. Do not pad it with generic advice.
- Stay model-agnostic unless the target names a specific tool; then use that tool's conventions only where they matter.
- Do not claim the new prompt will perform better; say how to test it.
Diagnosis
A table: problem | evidence (quoted phrase) | fix.
Improved prompt
The full rewritten prompt in one fenced block, ready to paste.
What changed
At most six bullets, most important first.
Test it
Two or three test inputs and what a good output should do for each.
1 required value still a placeholder; the assistant will ask for it.
details
- kind
- Prompt: a task you run by name to get one finished thing back
- domain
- Prompting and assistants
- category
- Prompt engineering
- level
- Intermediate
- risk
- read-only
- version
- v1.0.1 · experimental
- reviewed
- 2026-10-02
- aliases
- ai-prompt-eng
- works in
- Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Antigravity, OpenCode, Windsurf, Zed, Continue, AGENTS.md, ChatGPT, claude.ai
use in
npx @hermes-hq/hodios install improve-prompt --target claude-codenpx skills add hermes-hq/hodios-dist --skill improve-prompt -a claude-codeclaude plugin marketplace add hermes-hq/hodios-distclaude plugin install hodios-prompting@hodiosThe plugin brings every entry in this domain at once.
more in prompt engineering
All of Prompt engineeringAdapt a prompt for a reasoning model
Rewrites a prompt for reasoning-capable models by removing step-by-step micromanagement, stating goals, constraints and success criteria, and keeping the output format exact.
adapt-prompt-for-reasoning-modelAdapt a prompt for a small model
Rewrites a prompt for a small or fast model with one job per call, simpler steps, explicit formats and more examples, plus a test that shows whether quality holds against the original.
adapt-prompt-for-small-modelAI literacy coach
AI literacy coach who teaches people to use assistants well and critically - what they are good at, how they fail, how to verify outputs and protect privacy. Use for learning to work with AI.
ai-literacy-coachAudit a prompt for bias
Audits a prompt for biased framing, stereotyped examples, proxy attributes, exclusionary assumptions and unequal treatment across groups, then suggests neutral rewrites and paired tests.
audit-prompt-for-biasBuild an AI output review checklist
Builds a checklist a team uses to review AI outputs before use, tiered by risk, covering facts, sources, numbers, tone, privacy, rights and sign-off. For teams adopting AI in daily work.
build-ai-output-review-checklistBuild a prompt from input and output examples
Reverse-engineers a reusable prompt from input and output example pairs, naming the implicit rules, format and edge cases, then dry-runs the prompt against the examples, including held-out ones.
build-prompt-from-examples