CommunityRédaction et éditiongithub.com

prompt-sharpener

Rewrites the user's rough request into a sharper prompt, using context from the current chat, past chats and memory, and shows it with its assumptions before doing any work. Use whenever the user starts a message with "sharpen" or "/sharpen", asks to improve, rewrite, fix or polish a prompt, asks "what should I ask Claude", or has turned on sharpen mode with "sharpen on" in the current chat. Do not run it after "sharpen off".

Qu'est-ce que prompt-sharpener ?

prompt-sharpener is a Claude Code agent skill that rewrites the user's rough request into a sharper prompt, using context from the current chat, past chats and memory, and shows it with its assumptions before doing any work. Use whenever the user starts a message with "sharpen" or "/sharpen", asks to improve, rewrite, fix or polish a prompt, asks "what should I ask Claude", or has turned on sharpen mode with "sharpen on" in the current chat. Do not run it after "sharpen off".

Compatible avec✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/Madmanius/prompt-sharpener/tree/HEAD/prompt-sharpener

Installed? Explore more Rédaction et édition skills: steipete/notion, langchain-ai/langchain, bytedance/podcast-generation · View all 6 →

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Prompt Sharpener

Turn a rough request into a prompt that gets better work on the first try. Show it, then wait for the user's go.

Vague requests make Claude guess: who the audience is, how long, what format, what "good" looks like. Each guess is a chance to miss. This skill moves those guesses into the open before any work starts, where the user can fix them in seconds.

Switch

  • "sharpen " or "/sharpen ": sharpen that one request.
  • "sharpen on": sharpen every substantive request in this chat. Confirm in one line.
  • "sharpen off": stop. Confirm in one line.
  • Skip short factual questions, greetings and replies to your own questions even when sharpen mode is on. They gain nothing from a rewrite.

Step 1: Gather context (keep it fast)

Use only what is cheap to get and changes the prompt:

  1. The current chat: earlier messages, files the user shared, decisions already made.
  2. Memory: the user's profile, preferences and any memory file whose description matches the request.
  3. Past chats: if past-chat search tools are available and the request refers to something not in this chat ("my app", "the deck", "like last time"), run one or two short keyword searches.

Stop after these. Do not run web searches or read documents at this stage; the sharpened prompt can tell Claude to do that during the real work.

Step 2: Write the sharpened prompt

Apply Anthropic's prompting guidance (docs.claude.com, prompt engineering overview). Cover each point only where it changes the result:

  1. Goal and why: what the output is for and who reads it. Context about purpose lets Claude make good judgment calls.
  2. Inputs: the facts, files and constraints Claude should use, pulled from Step 1. Name them; don't make Claude hunt.
  3. Output: format, length, structure and tone, in concrete terms ("one-page doc, 5 sections", not "brief").
  4. Success criteria: 2–4 checks the result must pass.
  5. Examples or boundaries: a sample of what good looks like, or what to avoid, if the user has given one or the task is easy to get wrong.

Use XML tags (<context>, <task>, <output>) only when the prompt has several distinct parts. Write instructions in plain, direct language. Keep the user's own wording for anything they were specific about.

Never put secrets, API keys, passwords or any real person's personal data (customers, merchants, job candidates, employees: names, phone numbers, emails, addresses, salaries, ID numbers) into the sharpened prompt. Use placeholders such as {first_name} or "Candidate A" instead. Context gathering may surface these details from past chats; use them to understand the task, then leave them out of the prompt.

Step 3: Show it and wait

Use exactly this shape:

**Sharpened prompt**
```
<the sharpened prompt>
```

**Assumptions** (fix any that are wrong)
1. <assumption you made>
2. ...

**Reply "go" to run it, or tell me what to change.**

Rules for this step:

  1. List at most 5 assumptions, most consequential first. Only list guesses, not facts the user stated.
  2. If one missing fact would change the whole prompt (for example, which review a deck is for, or whether the audience is a client or the CEO), ask only that one question and show no prompt yet. A prompt built on that guess would be mostly wrong, and the user would have to read it to find out. Write the sharpened prompt after they answer.
  3. Do not start the task. The user's go is the trigger.

Step 4: Run it

When the user says "go" (or "yes", "run it", "do it"), carry out the sharpened prompt, including any edits they made. If they edit an assumption, update the prompt silently and run it; don't show it again unless the change was large.

Example

User: sharpen write a linkedin post about our new feature

Assistant:

Sharpened prompt

Write a LinkedIn post announcing [feature name] for [product].

Audience: [who follows the company page, e.g. D2C founders and ops leads].
Goal: get readers to try the feature; include one clear call to action with [link].

Cover: the problem it solves in one line, what it does, one concrete benefit with a number if available.
Format: 120–180 words, short paragraphs, no more than 3 hashtags, no emojis in the first line.
Tone: confident and plain; no hype words like "revolutionary".

Check before finishing: the first line works on its own as a hook; no confidential figures appear.

Assumptions (fix any that are wrong)

  1. It's for the company page, not your personal profile.
  2. The audience is merchants, not investors.
  3. You have a link for the call to action.

Reply "go" to run it, or tell me what to change.

Skills associés