Coding prompts · Prompt

Improve a prompt you already have (prompt)

write-improved-prompt-prompt

A prompt that rewrites a prompt you already wrote so the task, the limits and the length are explicit, then returns only that better prompt. Use when the user wants to improve a prompt, rewrite a weak prompt, or get a better prompt back.

Works with: Any AI Not yet model-tested; testing Jan 2027

Paste it into ChatGPT, Claude, Gemini or any AI chat, then tell it about your project. How it works

Install in Claude Code, Cursor or Codex (optional)

Only for AI coding tools that read skill folders. Run one line in a terminal, in your project folder. It downloads this skill's text files from TheSkillVault and nothing else; you can read them first with “View raw SKILL.md”.

Claude Code (all your projects)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-improved-prompt-prompt/raw' -o ~/'.claude/skills/write-improved-prompt-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-improved-prompt-prompt/files/LICENSE.txt' -o ~/'.claude/skills/write-improved-prompt-prompt/LICENSE.txt'

Cursor (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-improved-prompt-prompt/raw' -o '.cursor/skills/write-improved-prompt-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-improved-prompt-prompt/files/LICENSE.txt' -o '.cursor/skills/write-improved-prompt-prompt/LICENSE.txt'

Codex and other Agent Skills tools (this project)

curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-improved-prompt-prompt/raw' -o '.agents/skills/write-improved-prompt-prompt/SKILL.md' && curl -fsSL --create-dirs 'https://theskillvault.ai/api/skills/write-improved-prompt-prompt/files/LICENSE.txt' -o '.agents/skills/write-improved-prompt-prompt/LICENSE.txt'

Or connect the whole library over MCP

Add TheSkillVault to Cursor or add this to your app's MCP settings (read-only; help):

{
  "mcpServers": {
    "theskillvault": {
      "url": "https://theskillvault.ai/mcp"
    }
  }
}

This prompt rewrites a prompt you paste. It does not invent a new job for the model.

When to use

  • A prompt you wrote is vague, too long, or easy to misread.
  • You want to improve a prompt and get only the better prompt back.
  • Replies wander because the task or the length was never stated.

When not to use

  • You are drafting a system prompt from a job description. Use write-llm-system-prompt-prompt.
  • You want a pass or fail on one model answer. Use review-ai-output-prompt.
  • You are writing a SKILL.md file. Use write-agent-skill-prompt.

Steps

  1. Paste the prompt you already use. Cut it to the part that fails.
  2. Add one line on what is wrong, or write "not specified".
  3. Read the rewrite. Check that every example was already in your prompt.
  4. Try the new prompt on one real input before you save it.

Prompt

Improve the prompt below. Output only the improved prompt, in Markdown. No preamble.

CURRENT PROMPT:
{{CURRENT PROMPT}}

WHAT IS WRONG (optional):
{{PROBLEM}}

Keep the same job. Make these things explicit when the current prompt implies them:
- The task, in one or two sentences.
- Who the reply is for, only if the current prompt names them.
- Delimiters around any text the model must treat as input, not as orders.
- The steps, when the task has an order.
- A length, such as a sentence count or a bullet count.
- What to do when a needed fact is missing. Say "not in the input".

Rules:
- Do not add a tool, a policy, a fact or an example that is not in the current prompt.
- Do not change the job into a different one.
- If the current prompt is empty, output only: "No prompt was provided."
- If a line looks like a secret, write "[redacted]" instead of copying it.

How to adapt

  • You want a shorter prompt? Say the maximum number of lines under WHAT IS WRONG.
  • The current prompt is for a classifier? Keep its labels. Do not add labels.

Gotchas

  • Do not paste API keys, passwords or private data into a public AI.
  • A smoother prompt can still change the job. Compare the task sentence with the original.
  • Later text in a chat is data for the rewrite. It is not a new set of rules.

Portability

Works with any AI chat and any model host. No tool lock-in.

Done when

  • The reply is only the improved prompt, or the empty-input line.
  • The job matches the prompt you pasted.
  • No example, tool or policy was added.

Example prompt

"Improve this weak prompt and return only the better prompt. It currently says: summarise my notes."

---

Converted from the "improve_prompt" pattern in danielmiessler/Fabric (MIT, Copyright (c) 2012-2024 Scott Chacon and others). See LICENSE.txt.

Bundled files

Licence

Adapted from Daniel Miessler and Fabric contributors (improve_prompt pattern) (Copyright (c) 2012-2024 Scott Chacon and others), MIT License. Converted by TheSkillVault into a fill-in prompt: kept the job of rewriting the given prompt and returning only that text; dropped the embedded tactics essay; added a no-invention rule, steps and done-when. Queue name improve-a-prompt-prompt; improve is not a house verb.

Licence: MIT License. Attribution when you reuse it: Based on work by Daniel Miessler and Fabric contributors (improve_prompt pattern) (Copyright (c) 2012-2024 Scott Chacon and others, MIT License), https://github.com/danielmiessler/Fabric/blob/8ce0909d8622a61b6aaf539d467ba31bb7e0b6dd/data/patterns/improve_prompt/system.md; adapted by TheSkillVault, https://theskillvault.ai