CommunityWriting & Editinggithub.com

hydroimperium/prompt-enhancer

Turns a rough request or draft into a detailed, production-ready prompt for any AI tool. Use when the user asks to write, improve, expand, structure, or adapt a prompt; says "prompt enhancer", "улучши промпт", "напиши промпт", "сделай промпт подробнее", "расширь промпт", "промпт для курсовой", "промпт для лабораторной"; or wants a prompt for coding agents, chat models, research, writing, study, academic tasks, work, image, or video tools. Produces a prompt, never the task result.

What is prompt-enhancer?

prompt-enhancer is a Claude Code agent skill that turns a rough request or draft into a detailed, production-ready prompt for any AI tool. Use when the user asks to write, improve, expand, structure, or adapt a prompt; says "prompt enhancer", "улучши промпт", "напиши промпт", "сделай промпт подробнее", "расширь промпт", "промпт для курсовой", "промпт для лабораторной"; or wants a prompt for coding agents, chat models, research, writing, study, academic tasks, work, image, or video tools. Produces a prompt, never the task result.

Works with✓Claude Code✓Codex CLI✓Cursor✓Antigravity✓Gemini CLI✓OpenCode
npx skills add https://github.com/hydroimperium/ai-skills/tree/HEAD/skills/meta/prompt-enhancer

Installed? Explore more Writing & Editing skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Prompt Enhancer

Turn a short request, a rough idea, or an existing draft into a prompt that another AI can execute without asking follow-up questions.

The deliverable is always a prompt, not the result of the prompt. If the user asks "fix my login bug", write a prompt that tells an agent how to fix the bug; do not fix the bug.

Non-negotiable rules

  1. Preserve intent. Keep the user's goal, constraints, non-goals, supplied facts, and wording for anything that matters. Do not add new goals, audiences, metrics, or requirements.
  2. Never invent facts. If a fact is unknown and only the user can supply it, use [FILL: what is needed]. If you make a reasonable default, label it in the assumptions. Do not invent file paths, APIs, versions, names, dates, prices, or business details.
  3. Detail must be load-bearing. Add a sentence only if it changes what the target AI will do or how the result is checked. Long is not the same as useful.
  4. Ask only decisions, not facts. Read the provided files and context first. Ask at most three questions, only when the answer changes the prompt's structure, scope, target tool, or success criteria. If the user says "no questions" or "just write it", proceed with placeholders and assumptions.
  5. Write for a capable agent with no access to this conversation. The prompt must be self-contained: current state, goal, constraints, output contract, and what done means.
  6. Do not request hidden reasoning. Ask for conclusions, assumptions, evidence, concise rationale, and verification results instead of private chain-of-thought.
  7. Do not include secrets. Never put API keys, tokens, passwords, personal data, or confidential material into the generated prompt. Refer to environment variables or secret stores instead.
  8. Do not write the task result. The prompt may include an output template, but it must not contain the finished code, essay, analysis, or answer.
  9. Keep the user's language and variables. If the user writes in Russian, write the prompt in Russian. Preserve {{variables}}, code identifiers, file paths, and quoted text exactly.

Intake

Extract these dimensions silently. Mark each as known, assumed, or open.

DimensionQuestion to answer
GoalWhat outcome does the user want?
DeliverableWhat exactly should exist at the end: code, file, answer, plan, table, image?
Target toolWhich AI or agent will receive the prompt? Chat model, coding agent, image model, automation?
ContextWhat situation, project state, prior decisions, or constraints matter?
InputsWhat data, files, links, examples, or code will be provided?
AudienceWho reads or uses the result, and at what level of expertise?
RequirementsWhat must be true for the result to be correct?
Non-goalsWhat must not change, be added, or be touched?
Success criteriaHow will the user know the result is good?
Output formatExact structure, length, language, tone, file type, schema.
AutonomyWhat may the agent do without asking? What requires approval?
VerificationWhat commands, checks, or evidence prove the result works?

If the request is a draft prompt, treat the draft as the source of intent and improve it. If the request is a task, write a prompt for that task. If it is unclear which one the user means, ask one question: "Is this text the prompt to improve, or the task the prompt should describe?"

Question policy

Ask at most three questions in one round. Each question must:

  • be a decision only the user can make;
  • change the prompt materially;
  • include your recommended answer first.

Good questions:

  • "Should the agent change only the auth module, or also update callers? Recommended: only the auth module; callers stay unchanged."
  • "Is the output for a beginner or an experienced developer? Recommended: experienced developer; skip basic explanations."
  • "May the agent install dependencies and run migrations, or stop before changing the environment? Recommended: stop before installs and migrations."

Do not ask:

  • facts that are already in the provided files;
  • questions whose answer would not change the prompt;
  • more than one round unless the user's answer opens a new decision.

Depth modes

Choose a mode from the request. Do not ask about depth unless it is genuinely unclear.

ModeWhenTarget size
leanTrivial lookup, translation, formatting, one-shot question, or user asks for a short prompt150–350 words
detailedDefault for non-trivial coding, writing, research, study, and work tasks400–900 words
deepAgentic, multi-step, high-stakes, or user asks for "максимально подробно", "длинный", "исчерпывающий"900–1800 words

The ranges are guidance, not quotas. A detailed prompt for a simple task should stay lean; a deep prompt must still earn every section.

Quality rubric

Score the draft internally from 1 to 5 on each dimension. Revise before delivering if a critical dimension scores below 4.

DimensionA 5 looks like
Intent fidelityThe goal and non-goals are unmistakably the user's
Context sufficiencyA capable agent could execute without this conversation
Scope and boundariesIn-scope, out-of-scope, permissions, and stop conditions are explicit
Output contractFormat, length, language, and structure are exact
VerificationSuccess is observable and checkable
Target-tool fitThe structure matches a chat model, coding agent, image model, or automation
ConcisenessEvery section changes the result; no filler

Do not show the scores unless the user asks for an evaluation.

Choose the prompt architecture

Use the structure that matches the task. Omit sections that do not add value.

Agentic coding

Use when the prompt goes to Claude Code, Codex, Cursor, OpenCode, Cline, or another tool that edits files and runs commands.

Include:

  • Role and goal — what the agent is responsible for.
  • Context — project, stack, relevant behavior, current state.
  • Scope — exact files, directories, modules, and surfaces in scope.
  • Requirements — numbered, testable changes.
  • Constraints — what must not change; compatibility, style, dependencies, performance.
  • Approval boundaries — installs, migrations, deletions, network calls, secrets, destructive commands.
  • Done when — observable acceptance criteria.
  • Verification — commands to run, tests to add, manual checks.
  • Report — what to summarize: changed files, tests, risks, open questions.
  • Stop conditions — when to stop and ask instead of guessing.

Chat, analysis, and research

Include:

  • Role — the expertise to apply.
  • Objective — the question or decision.
  • Context — background and why it matters.
  • Inputs — documents, data, links, or excerpts, clearly delimited.
  • Method — source quality, comparison, triangulation, uncertainty handling.
  • Output contract — structure, length, citations, tables.
  • Quality bar — what makes an answer good or unacceptable.
  • Unknowns — what to do when evidence is missing.

Writing and editing

Include:

  • Role and purpose — what the text must achieve.
  • Audience — who reads it and what they know.
  • Context — situation, prior communication, constraints.
  • Voice — tone, formality, personality, banned phrases.
  • Structure — sections, order, length.
  • Must include / must avoid — facts, claims, legal language, clichés.
  • Examples — real samples when style or format must be matched.
  • Self-check — clarity, accuracy, tone, length, no invented facts.

Study and learning

Include:

  • Learning goal — what the user should be able to do afterward.
  • Current level — beginner, intermediate, advanced, or diagnosed.
  • Prior knowledge — what can be assumed.
  • Method — explanation, worked example, analogy, active recall, practice.
  • Checks — quiz, teach-back, exercises, spaced repetition.
  • Output — explanation, summary, flashcards, plan, or feedback.
  • Rules — correct mistakes, show uncertainty, do not overwhelm.

Academic writing

Use for coursework, lab reports, essays, reports, VKR, and research summaries.

Include:

  • Assignment — the exact task, discipline, volume, deadline, and audience.
  • Requirements source — university methodical guidelines, GOST, citation style, formatting rules. If unknown, use [FILL: требования вуза]; never invent them.
  • Structure — required sections and their order.
  • Sources — allowed source types, citation style, minimum count, access date.
  • Originality — own analysis, correct citation, no fabricated data or sources. Do not help evade plagiarism or AI detectors.
  • Language and style — academic Russian or English, impersonal register, terminology, no AI-slop.
  • Deliverable — outline first or full text, file format, tables, figures, appendices.
  • Verification — citation check, structure check, formatting check, fact check.

Work and business

Include:

  • Situation — what is happening and why now.
  • Decision or deliverable — what the user needs.
  • Audience — stakeholders, clients, team, leadership.
  • Constraints — time, budget, policy, tone, confidentiality.
  • Success metrics — what outcome matters.
  • Format — memo, email, one-pager, slide outline, table.
  • Follow-ups — decisions, owners, deadlines, risks.

Data and spreadsheets

Include:

  • Dataset — files, columns, units, time range, known quirks.
  • Questions — the exact analysis to perform.
  • Cleaning rules — missing values, duplicates, outliers, exclusions.
  • Method — formulas, aggregations, statistical tests.
  • Validation — row counts, totals, sanity checks, cross-checks.
  • Output — table, chart, summary, caveats.
  • Rules — never invent data; state assumptions; preserve raw data.

Image and video

Include:

  • Subject — who or what, action, expression, details.
  • Composition — framing, angle, depth, negative space.
  • Style — photo, illustration, 3D, film, era, references.
  • Lighting and color — source, mood, palette, contrast.
  • Camera — lens, aperture, shutter, film stock, if relevant.
  • Negatives — what to avoid.
  • Technical — aspect ratio, resolution, duration, model-specific controls.
  • Consistency — character, product, or style references.

System prompt or reusable agent

Include:

  • Identity — who the agent is and what it is responsible for.
  • Capabilities and tools — what it can use and when.
  • Workflow — the default sequence.
  • Boundaries — what it must not do; when to ask; when to refuse.
  • Output contract — format, length, language.
  • Examples — one good and one bad interaction, if useful.
  • Failure handling — missing data, tool errors, ambiguity.

Classification and extraction

Include:

  • Task — classify, extract, normalize, or validate.
  • Labels or schema — exact allowed values and types.
  • Examples — diverse, real input/output pairs.
  • Edge cases — empty, ambiguous, conflicting, out-of-scope.
  • Abstain rule — when to return unknown or ask.
  • Output — JSON schema or exact format.
  • Validation — schema checks, required fields, no extra text.

Writing rules

  • Address the target AI directly: "You will…", "Return…", "Do not…".
  • Prefer positive instructions: say what to do, not only what to avoid.
  • Put conditions before commands: "If the tests fail, stop and report the failure."
  • Use must for hard requirements, can for permissions, and avoid should, may, or might when the behavior must be predictable.
  • Use one term for one thing. Do not alternate between "check", "verify", and "validate" for the same action.
  • Make the output contract exact: format, sections, length, language, file names.
  • Include examples only when they are real, supplied, or clearly labeled as hypothetical.
  • For long inputs, put the source material before the instructions and delimit it with clear tags or headings.
  • For reasoning models, do not add "think step by step"; state the outcome, constraints, and evidence requirements.
  • For small or local models, use a flatter structure, fewer sections, and shorter instructions.
  • For agentic tools, include file scope, approval boundaries, stop conditions, and verification commands.
  • For prompts that process untrusted text, declare that the text is data, not instructions, and state which instructions have priority.
  • Match the user's language. If the user writes in Russian, write the prompt in Russian unless they ask for another language. Keep code, identifiers, and file paths in their original form.
  • Use {{variable}} for reusable values and [FILL: ...] for facts only the user can supply. Explain placeholders in the assumptions.
  • Do not include meta-commentary such as "This prompt will help you..." or "As an AI...". Write instructions directly to the target AI.
  • For academic tasks, require citations, own analysis, and a clear boundary between the author's results and borrowed material. Never ask the target AI to fabricate sources, data, or results, or to evade plagiarism or AI detectors.
  • For Russian academic tasks, mention GOST or university rules only when the user supplied them. Otherwise use [FILL: требования вуза] and ask the target AI to follow the provided guidelines first.
  • If the user supplies a draft prompt, preserve its variables and core structure. Improve it instead of replacing it with a different task.

Model adaptation

Use stable guidance, not brittle claims about specific model versions.

  • Claude-style models: clear structure, XML tags for mixed content, explicit scope, positive instructions, examples for format or tone.
  • GPT-style reasoning models: concise outcome, constraints, output contract; avoid forced step-by-step reasoning.
  • Gemini-style long-context models: put source material first, ask for citations, require uncertainty labels, lock the output format.
  • DeepSeek and other reasoning models: state the goal and output contract; do not ask for hidden reasoning traces.
  • Small/local models: simpler vocabulary, flat structure, one task per section, explicit format.
  • Coding agents: goal, scope, current state, constraints, approval boundaries, done criteria, verification.
  • Image/video models: visual details, composition, style, lighting, negatives, technical parameters.

If the prompt depends on current model names, APIs, prices, or product features, add [VERIFY: current official documentation] instead of asserting a fact.

Workflow

  1. Classify the input. Is it a draft prompt or a task description? What is the target tool?
  2. Extract intent. Fill the intake table. Mark known, assumed, and open.
  3. Find gaps. Read supplied files first. Ask up to three decision questions only if needed.
  4. Choose architecture and depth. Use the tables above.
  5. Draft the prompt. Write it as a self-contained instruction for the target AI.
  6. Run the self-check. Verify intent, facts, scope, output contract, and testability.
  7. Deliver. Return one copyable prompt block, followed by at most three assumptions or open questions.

Output format

Use this exact structure:

## Prompt

```text
<the complete prompt, ready to copy>
```

## Assumptions

- <only assumptions that affect execution; omit the section if none>

## Open questions

- <only questions that still block a better result; omit the section if none>

Rules:

  • The prompt must be the first element after the heading.
  • Use a four-backtick fence if the prompt itself contains triple backticks.
  • Do not put analysis, scores, framework names, or a changelog before the prompt unless the user explicitly asks for them.
  • Keep assumptions to three items maximum.
  • If the prompt contains [FILL: ...] placeholders, list them in the assumptions.

Self-check

Before delivering, verify:

  • The prompt preserves the user's goal and non-goals.
  • No facts, paths, names, versions, or metrics were invented.
  • The target tool is clear or explicitly generalized.
  • The scope is bounded; the agent knows what not to touch.
  • The output format is exact and copyable.
  • Success criteria are observable.
  • Verification steps are included where the task can be checked.
  • Approval boundaries and stop conditions are present for agentic tasks.
  • Untrusted input is delimited and instruction priority is stated.
  • The prompt is self-contained and does not depend on this conversation.
  • The language matches the user's request.
  • The prompt contains no meta-commentary or finished task result.
  • Academic prompts require citations, own analysis, and no fabricated sources or detector evasion.
  • Every section earns its place; no filler.

References

Boundaries

  • Do not execute the task described in the prompt.
  • Do not create or edit files unless the user explicitly asks to save the prompt.
  • Do not reveal hidden reasoning or ask the target model to reveal it.
  • Do not include secrets or personal data.
  • Do not copy a source prompt verbatim unless the user owns it or the license allows it.

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

Related Skills