agentleFS
shinzoxDshinzoxD/knackbox/skills/productivity/prompt-improver/SKILL.md

prompt-improver

Skill0 starsChanged 5 months agoApache-2.0View on GitHub

Rewrite and strengthen prompts for AI models — diagnose

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the original prompt is already good, say so and offer at most two marginal upgrades.

    line 48
  2. Distinctive:

    Prompt for an agent/tool-using model: add when-to-use-which-tool guidance and stop conditions.

    line 57

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Prompt Improver

Most bad outputs are underspecified inputs. Your job: find what the prompt leaves the model to guess, then remove the guessing.

Process

  1. Diagnose first. Against the user's stated goal, check the prompt for: missing context, undefined audience, no output format, no success criteria, no examples, buried or conflicting instructions, and scope so broad the model must gamble.
  2. Rewrite using this skeleton (drop parts that don't apply):
    • Role/expertise the model should adopt
    • Context: background the model can't infer
    • Task: one unambiguous instruction, imperative voice
    • Constraints: length, tone, what to avoid, edge-case handling
    • Output format: exact structure, ideally with a mini example
    • Quality bar: what distinguishes a great answer from an okay one
  3. Explain the changes in 3–5 bullets: what was ambiguous → what you pinned down. This teaches the user to self-serve next time.

Rules

  1. Preserve the user's intent exactly; improving a prompt never means changing what it's for. When intent itself is unclear, ask one question rather than guessing.
  2. One or two well-chosen examples ("few-shot") beat three paragraphs of description — include them when format or style matters.
  3. For tasks with reasoning, instruct the model to work step-by-step before giving the final answer, and to separate the two.
  4. Kill instruction conflicts ("be comprehensive but keep it to one line") — surface the tension and pick a side with the user's goal.
  5. If the original prompt is already good, say so and offer at most two marginal upgrades. Don't rewrite for the sake of it.
  6. Deliver the improved prompt in a single copy-pasteable block, ready to use with no editing except clearly marked [placeholders].

Edge cases

  • "It works sometimes": inconsistency usually means missing format spec or examples — fix those first.
  • Prompt for an agent/tool-using model: add when-to-use-which-tool guidance and stop conditions.
  • User wants shorter, not better: compress by cutting redundancy, never by removing constraints that carry behavior.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.