Turn a chat into a reusable prompt
Turns a successful chat conversation into a reusable prompt with named variables, the rules learned from your corrections, an output format and a worked example. Use for tasks you repeat with AI.
When a chat finally produces what you wanted, the valuable part is usually not the first request but the corrections: "shorter", "no bullet points", "use our product name, not the code name", "always include the price". Those corrections are the hidden requirements. A reusable prompt captures them up front so next time the first answer is already right, and turns the parts that change each time into named variables.
- Identify the repeatable task in one sentence, and the final answer the user accepted (usually the last one before they stopped correcting or said thanks). If the user never seemed satisfied, or the conversation contains several unrelated tasks, say so and ask which one to capture.
- Mine the corrections. List every instruction the user gave after the first request: explicit corrections, rejected drafts and what replaced them, preferences revealed by the user's edits. Turn each into a positive, general rule ("Keep it under 120 words" rather than "not so long"). Drop corrections that only applied to that one instance.
- Separate what changes from what stays: the specific inputs of this instance (a product name, a client, a draft, a date) become variables with snake_case names, a one-line description and a sensible default where one exists. Everything stable becomes instructions.
- Write the reusable prompt, model-agnostic, in this structure: a short role and context, the task, each variable in its own labelled block holding an upper-case bracketed placeholder that matches its name (the variable product_notes becomes a product notes block containing [PRODUCT_NOTES]), the rules learned, the output format taken from the accepted answer's shape, and an instruction to ask for missing information rather than invent it.
- Build one example from the accepted answer, shortened if long, with any private details replaced by realistic placeholders. Label it as an example of format and quality, not content to copy.
- Suggest how to test it: two or three new inputs to run it on, including one tricky case, and what a good answer must contain.
- Every rule in the prompt must trace to something in the conversation or be marked "(added)" with a reason. Do not invent preferences.
- Remove personal data, credentials, customer names and confidential numbers from the prompt and example; replace them with placeholders and list what you removed.
- Keep the prompt under about 500 words; if the task needs more, say what could move into a separate reference document.
- Write instructions as what to do, not long lists of what to avoid; keep a "do not" only where the conversation shows the model kept doing it.
- Do not use tricks tied to one model or vendor.
What the task is
One sentence, plus which answer you treated as the accepted one.
What the corrections taught
A table: Correction in the chat | Rule in the prompt.
Variables
A table: Name | Description | Default.
Reusable prompt
The full prompt in one fenced code block, ready to copy.
Example
The example input and output, fenced, labelled.
How to test it
Numbered test inputs with what a good answer contains. Then a line listing anything removed for privacy.
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
- Beginner
- made for
- Anyone, personal use, Marketer, Consultant / freelancer, Writer / author
- risk
- read-only
- version
- v1.0.0 · incubating
- reviewed
- 2026-10-02
- 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 turn-chat-into-prompt --target claude-codenpx skills add hermes-hq/hodios-dist --skill turn-chat-into-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.
pairs well with
All of Prompt engineeringImprove 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.
improve-promptCreate few-shot examples
Builds a small set of diverse, representative few-shot examples for a task, including tricky and negative cases, balanced so the model learns the rule rather than copying surface patterns.
create-few-shot-examplesCompress a prompt
Shortens a long prompt while preserving its behaviour, maps every original instruction to where it now lives, reports the real size reduction and lists test inputs to check nothing changed.
compress-promptPrompt engineer
Prompt engineer who writes clear, testable instructions, iterates against real examples and evals, and avoids model-specific tricks. Use for designing, debugging and maintaining prompts.
prompt-engineerAdapt 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-modelBuild a test set for a prompt
Builds a hand-run test set for a prompt with happy, edge and negative inputs, expected behaviour and checkable pass criteria per case, and a scoring sheet to compare prompt versions side by side.
build-prompt-test-set